我正在使用 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 的代码
提前致谢。