【发布时间】:2015-09-17 02:38:28
【问题描述】:
我正在使用 TweetInvi 在 Twitter 上发布视频。
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();
推文发布成功。但视频文件丢失。 我使用了来自 tweetinvi twwet with media的代码
提前致谢。
【问题讨论】:
-
我使用了 tinytwitter github.com/SnapStreamJason/TinyTwitter。视频上传工作正常。