[PHP] Cannot execute multiple requests

oauth
php
api

#1

I am currently using oauth for making two requests:

  • /statuses/user_timeline.json
  • /statuses/show/{id}.json

Both requests work separately but I can’t get them to work one after the other.
The second request always get a “Could not authenticate” response.

The signature is different for both request as documented in the API.

Any leads?

Thank you!


#2

I’m not 100% sure but you can try to re authenticate after each request instead of using the same authentication token for both.


#3

Thank you for your reply.
That’s what I meant when saying "The signature is different for both request as documented in the API."
Still not luck unfortunately.
Are you thinking about something else maybe ?


#4

Please post example code that demonstrates the issue.


#5

Hi. Issue solved now. Thank you.


#6

Please post the solution so other people having similar issues may benefit.


#7

One extra parameter in the base string signature that wasn’t meant to be.