Tweetsharp와는 반대로 Tweetinvi이 활발하게 개발 중입니다. https://github.com/linvi/tweetinvi/wiki/Tweets :이 라이브러리와 당신은 실제로 당신은 문서의 트윗을 게시하는 방법에 대한 자세한 정보를 찾을 수있는 트윗을
// Setup the credentials of the account to use
Auth.SetUserCredentials("CONSUMER_KEY", "CONSUMER_SECRET", "ACCESS_TOKEN", "ACCESS_TOKEN_SECRET");
// Upload the image/video that you want to attach to your Tweet (up to 4 images)
byte[] binary = File.ReadAllBytes(filePath);
var media = Upload.UploadImage(binary);
// Publish your tweet
var tweet = Tweet.PublishTweet("This is my awesome photo!", new PublishTweetOptionalParameters
{
Medias = new List<IMedia> { media }
});
// The variable tweet now contains all the information provided by Twitter.
을 게시 할 수 있습니다.
Tweetinvi github 프로젝트는 찾고자하는 것을 정확하게 수행하는 예제 프로젝트 (Examplinvi.Web)를 제공합니다.
여기에서 찾을 수 있습니다 :
이 귀하의 질문에 답을 알려 주시기 바랍니다. 또한 내가 도서관의 주요 개발자임을 주목하십시오.
나는 이것을 시도했지만 Tweet.PublishTweet이 작동하지 않습니다. 오류가 발생하지 않습니다. 다른 방법이 있습니다.이 링크를 사용하여 ""http://www.twitter.com/intent/tweet?text= "+ TextBox1.Text"내 요구 사항을 충족했습니다. –