Post Image¶
It posts image on twitter with text passed in tweet
and image path in image_path
.
body: returns data
success_score: api success rate
errors: errors encountered in api
Here is the code:-
-
twitter.
post_image
(image_path='C:/Users/image.png', tweet='Hi...')¶ - Parameters
image_path (str) – Image file path which needs to be posted on twitter
tweet (str) – Tweet or description
- Returns
{“body”: {}, “success_score”: “100”, “errors”: []}
- Return type
dict