Hey, so im working with the following endpoint to follow a user and i have a bad request error, the :id param is my id and the target user id is my alt’s id.
what code / library are you using?
Im using postman in that screenshot, if thats what you mean.
Are you maybe adding oauth parameters as URL parameters instead of HTTP headers?
If you are talking abt url params like callback, then no, my callback url is empty. I only put consumer key and secret and access token and token secret.
No, i mean in creating your postman URL and parameters and HTTP headers - what does that look like?
This is the endpoint POST friendships/create | Docs | Twitter Developer Platform so the request has to be a POST, and the oAuth stuff has to be in HTTP headers - there should not be any URL parameters for oauth there, for example, this is wrong: /1.1/friendships/create.json?user_id=2244994945&oauth_signature_method="HMAC-SHA1"... because oauth_signature_method should be in HTTP headers.
1 Like
Sorry for the late respond, yea i put everything in the http headers, the only thing i put in url is my id in :id path
I would maybe try GitHub - twitter/twurl: OAuth-enabled curl for the Twitter API for making arbitrary calls to the API instead of Postman - I always has problems with it too
system
Closed
#9
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.