How to upload Photo?

Oct 22, 2013 at 3:11 PM
I want to be able to associate a photo with a published tweet. Is there anyway to do this in the current API? If so some direction to the right spot would be greatly appreciated.

Thanks
Coordinator
Oct 22, 2013 at 6:21 PM
Edited Oct 22, 2013 at 6:28 PM
Hello there,

Tweetinvi does not currently provide this feature and this it will require an important update to provide it because it implies allowing Multi-Part Requests and consequently updating how the WebRequest are being generated.

As a result I have added a new Task (https://tweetinvi.codeplex.com/workitem/1882) that will be completed for the 0.9.0.0 release (which I would expect to be started within 2 months).

If you are willing to do it on your own, you will need to be quite familiar on how to perform and generate oAuth WebRequest.
You will be able to find the "simple" current generator of WebRequest in class OAuthWebRequestGenerator.

You will also be able to find documentation on how to create the WebRequest here : https://dev.twitter.com/docs/api/1.1/post/statuses/update_with_media.

I have check if this feature exist in any other Twitter library for C# but you might want to have a look to these if you are not familiar with the construction of WebRequests.

In either case, I am eager to know how you will managed to perform this, so please keep me up to date concerning this question.

Kind Regards,
Linvi
Oct 22, 2013 at 8:12 PM
Thanks for the quick reply. I'll let you know what I figure out.