Ok, once again having trouble with Twitter API. ( Didn’t had any problems using same functionality for other social websites, btw, so you have something to think about )
Trying to upload something to Twitter TON Api using CURL ( PHP ). Here is the log:
POST /1.1/ton/bucket/ta_partner.json HTTP/1.1 Host: ton.twitter.com User-Agent: TwitterOAuth v0.2.0-beta2 Accept: */* Content-Type: text/plain X-Ton-Expires: Tue, 06 Sep 2016 19:55:15 GMT Content-Length: 424 Authorization: OAuth oauth_body_hash="xxx", oauth_consumer_key="xxx", oauth_nonce="xxx", oauth_signature="xxx", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1472586915", oauth_token="xxx", oauth_version="1.0" * upload completely sent off: 424 out of 424 bytes < HTTP/1.1 403 Forbidden
What could be wrong here is
oauth_body_hash , because I added it as experiment by looking at other forum posts and don’t know the exact value it should have, but I couldn’t find any information about this variable. Other variables are correct, though.
Any help would be appreciated.
I just tried to upload with twurl and it worked perfectly fine. So my only guess is that I was setting incorrect
oauth_body_hash in my curl request.
Can someone please explain what the value of
oauth_body_hash should be?