TweetSharp SendTweetWithMediaOptions exaple

BrandonJ

New Member
Anyone here tried tweeting with an image using TweetSharp? I tried the following:\[code\]Dictionary<string, Stream> imageDict = new Dictionary<string, Stream>();imageDict.Add(imagePath, imageStream);// I'm getting an error with the line below.// It's saying I have some invalid arguments. :(status = service.SendTweet(new SendTweetWithMediaOptions() { Status = readerMsg.Message, Images = imageDict });\[/code\]But the last line is giving me an invalid argument error with no helpful reason why.I tried looking at their GitHub page but the sample only illustrates how to post a simple text message.
 
Back
Top