I cannot post an image to Twitter. I followed the following example
https://docs.oneall.com/api/resources/users/write-to-users-wall/It contained an image section but after posting I only see text, no image. I know Twitter API supports post images.
Please advise how to post images to Twitter or make changes to oneall code to allow us to post images.
Thank you
Answers
to post an image you must use the uploads section:
"uploads":[ { "name": "#upload_file_name#", "data": "#upload_file_data#" } ]
#upload_file_name#
The name of the file to be uploaded,
Example: image.png
#upload_file_data#
The base64 encoded representation of the file data,
Example:
<?php $data = base64_encode(file_get_contents('image.png')); ?>