Hi,
By the way, I don't know why I did not even mentioned it. This can already be done with Tweetinvi. It is just not implemented as a proper method.
You can use the following code:
Cheers,
Linvi
By the way, I don't know why I did not even mentioned it. This can already be done with Tweetinvi. It is just not implemented as a proper method.
You can use the following code:
byte[] file = File.ReadAllBytes("filepath"); var media = Upload.UploadBinary(file); var query = string.Format("https://api.twitter.com/1.1/account/update_profile_image.json?media_id={0}", media.UploadedMediaInfo.MediaId); var success = TwitterAccessor.TryExecutePOSTQuery(query);
Linvi