开发者

How do I set my avatar in Twitter programmatically?

开发者 https://www.devze.com 2023-03-26 17:21 出处:网络
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?

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

精彩评论

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

关注公众号