0
我正在使用TweetInvi在Twitter上发布视频。用Tweetinvi上传视频
TwitterCredentials.SetCredentials(token.Token,token.TokenSecret,ConfigurationManager.AppSettings["ConsumerKey"], ConfigurationManager. AppSettings["ConsumerSecret"]);
var filePath = string.Format("{0}content\\participant\\video\\{1}.{2}", Request.PhysicalApplicationPath, p.video, "mp4");
byte[] file1 =System.IO.File.ReadAllBytes(filePath);
var tweet = Tweetinvi.Tweet.CreateTweet(message);
tweet.AddMedia(file1, "video");
var success = tweet.Publish();
Tweet成功发布。但视频文件丢失。 我已使用 tweetinvi twwet with media的代码
在此先感谢。
我用tinytwitter https://github.com/SnapStreamJason/TinyTwitter。视频uplaod工作正常。 –