I want to write a program that would set my twitter avatar to a random picture in a folder. I know ho开发者_JS百科w to pick out random files, but how do I make them upload to twitter?
Thanks.
You would need to use Twitter's REST API service. There is one service in particular that will help you: POST account/update_profile_image.
Note that the API is expecting multipart form data, not a URL.
精彩评论