I have tried a lots of my effort from last two days but why I can’t get the solution.
I have tried submitting html form with you given reference document API
https://dev.twitter.com/rest/public/uploading-media-multiple-photos but I am getting the error in json (I am using json to post the form) like:
{
errors:[
{
message: "Bad Authentication data",
code: 215
}]
}
Please help me to solve this issue I think I am not doing any wrong action in form submission if I am doing wrong then please suggetst me. and I also checked with DHC client from Chrome browser
my input parameter is:
{
"entities": { "hashtags": [], "media":
[ { "display_url": "pic.twitter.com/fxmuQN9JL9",
"expanded_url": "http://twitter.com/FLOTUS/status/449660889793581056/photo/1",
"id": 449660809380380673,
"id_str": "449660809380380673",
"indices": [ 121, 143 ],
"media_url": "http://pbs.twimg.com/media/Bj2EH6yIQAEYvxu.jpg",
"media_url_https": "https://pbs.twimg.com/media/Bj2EH6yIQAEYvxu.jpg",
"sizes": { "large": { "h": 426, "resize": "fit", "w": 640 },
"medium": { "h": 399, "resize": "fit", "w": 600 },
"small": { "h": 226, "resize": "fit", "w": 340 },
"thumb": { "h": 150, "resize": "crop", "w": 150 } }, "type": "photo",
"url": "http://t.co/fxmuQN9JL9" } ],
"symbols": [], "urls": [],
"user_mentions": [] },
"extended_entities": { "media":
[ { "display_url": "pic.twitter.com/fxmuQN9JL9",
"expanded_url": "http://twitter.com/FLOTUS/status/449660889793581056/photo/1",
"id": 449660809380380673,
"id_str": "449660809380380673",
"indices": [ 121, 143 ],
"media_url": "http://pbs.twimg.com/media/Bj2EH6yIQAEYvxu.jpg",
"media_url_https": "https://pbs.twimg.com/media/Bj2EH6yIQAEYvxu.jpg",
"sizes": { "large": { "h": 426, "resize": "fit", "w": 640 },
"medium": { "h": 399, "resize": "fit", "w": 600 },
"small": { "h": 226, "resize": "fit", "w": 340 },
"thumb": { "h": 150, "resize": "crop", "w": 150 } },
"type": "photo",
"url": "http://t.co/fxmuQN9JL9" },
{ "display_url": "pic.twitter.com/fxmuQN9JL9",
"expanded_url": "http://twitter.com/FLOTUS/status/449660889793581056/photo/1", },
"id": 449660806754738177,
"id_str": "449660806754738177",
"indices": [ 121, 143 ],
"media_url": "http://pbs.twimg.com/media/Bj2EHxAIIAE8dtg.jpg",
"media_url_https": "https://pbs.twimg.com/media/Bj2EHxAIIAE8dtg.jpg",
"sizes": { "large": { "h": 426, "resize": "fit", "w": 640 },
"medium": { "h": 399, "resize": "fit", "w": 600 },
"small": { "h": 226, "resize": "fit", "w": 340 },
"thumb": { "h": 150, "resize": "crop", "w": 150 } },
"type": "photo",
"url": "http://t.co/fxmuQN9JL9" },
{ "display_url": "pic.twitter.com/fxmuQN9JL9",
"expanded_url": "http://twitter.com/FLOTUS/status/449660889793581056/photo/1",
"id": 449660808537333761,
"id_str": "449660808537333761",
"indices": [ 121, 143 ],
"media_url": "http://pbs.twimg.com/media/Bj2EH3pIYAE4LQn.jpg",
"media_url_https": "https://pbs.twimg.com/media/Bj2EH3pIYAE4LQn.jpg",
"sizes": { "large": { "h": 427, "resize": "fit", "w": 640 },
"medium": { "h": 400, "resize": "fit", "w": 600 },
"small": { "h": 227, "resize": "fit", "w": 340 },
"thumb": { "h": 150, "resize": "crop", "w": 150 } },
"type": "photo", "url": "http://t.co/fxmuQN9JL9" },
{ "display_url": "pic.twitter.com/fxmuQN9JL9",
"expanded_url": "http://twitter.com/FLOTUS/status/449660889793581056/photo/1",
"id": 449660877097406464,
"id_str": "449660877097406464",
"indices": [ 121, 143 ],
"media_url": "http://pbs.twimg.com/media/Bj2EL3DIEAAzGAX.jpg",
"media_url_https": "https://pbs.twimg.com/media/Bj2EL3DIEAAzGAX.jpg",
"sizes": { "large": { "h": 426, "resize": "fit", "w": 640 },
"medium": { "h": 399, "resize": "fit", "w": 600 },
"small": { "h": 226, "resize": "fit", "w": 340 },
"thumb": { "h": 150, "resize": "crop", "w": 150 } },
"type": "photo", "url": "http://t.co/fxmuQN9JL9" } ] }
}
and action on this URL "upload.twitter.com/1.1/media/upload.json"
content type is: “multipart/form-data”.
And one more thing you have deprecated your services then please suggest me the paid version of your API to POST media. Please help me as soon as possible.