Here is a very simple example;
You can also add a media as a clone. This will reupload the media but it will make sure that the media has not been used for 2 publication (which is not authorized by the Twitter REST API).
I don't remember the reason I decided to not directly authorize developers to AddMedia from a media object without cloning it. I guess I wanted to make sure the operation did not fail.
What do you think about this decision?
Cheers,
Linvi
var binary = newbyte[10]; var tweetWithMedia = Tweet.CreateTweetWithMedia("hello", binary); tweetWithMedia.AddMedia(binary2); var success = tweetWithMedia.Publish();
var media = Upload.UploadBinary(binary);
tweetWithMedia.AddMediaAsAClone(media);
What do you think about this decision?
Cheers,
Linvi