Reputation: 2361
I send http-post to tweet to Twitter by https://api.twitter.com/1.1/statuses/update.json api But the response show an error:
array(1) { ["errors"]=> array(1) { [0]=> array(2)
{ ["message"]=> string(23) "Bad Authentication data" ["code"]=> int(215) } } }
How to fix and can tweet to Twitter using the API? Thanks so much.
Note: I don't want to use 3rd library, just API Twitter Api to do that.
Upvotes: 0
Views: 1028
Reputation:
One of the following is probably true:
update.json
endpoint to indicate your authorization.The oAuth protocol is required for applications which interact with the Twitter API, and is quite complex to implement. Unless you are a big sucker for pain and suffering, you should strongly consider using an existing implementation rather than trying to build your own.
Upvotes: 1