开发者

How do I set my avatar in Twitter programmatically?

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜