i want to schedule my post on specific time frame on twitter. my web app authenticated properly and i have user access token and user access secret and i have a permission of ads-api. but when i post my call on ads api here’s link (POST https://ads-api.twitter.com/9/accounts/myaccountid/scheduled_tweets?as_user_id=myuserid&scheduled_at=2018-01-01) its give me 401 unauthorized error.my oauth headers are fine including oauth_nonce , oauth_signature,oauth_signature_method,oauth_token etc. can any one help me regarding this issue…thanks in advance

The guide Making Authenticated Requests provides instructions on making successful API requests. We strongly recommend using an existing library that generates OAuth 1.0a and that you verify this requests succeeds using either Twurl or Postman.

I have found the issue. Twitter documentation guide , twitter schedule tweet post API describe you can send data with parameter’s , but twitter API didn’t accept the post call with parameters. Schedule Tweet Post API required data in API body.
here’s the example :-
POST https://ads-api.twitter.com/10/accounts/18ce54d4x5t/scheduled_tweets?as_user_id=756201191646691328&media_keys=3_917438348871983104&scheduled_at=2018-01-01

it’s confussing.because twitter should send response with 400 bad request but it says 401 unauthorize call.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.