Like many others, I’ve been killing braincells trying to get oauth to work on MAMP. So instead, I went to my native language (python) and got my access token and access token secret for Tumblr in a jiffy. I still want to write something in php to post to tumblr, but I’m stuck on figuring out what the URL is that I need to be posting to.
I know the url is
https://api.tumblr.com/v2/blog/test.tumblr.com/post
What I’m stuck on is where I put the access tokens in the url. My guess was:
I’ve tried variations of that, but nothing really seemed to work. Perhaps this was a problem with the headers? Do I absolutely need to install the php oauth client and write something on that?
Thanks for your help!
In short, yes.
The parameters you are passing there are in the URL (
HTTP_GET). They need to be in theAuthorizationheader instead.A typical
HTTP_GETlooks like:A typical OAuth might look like:
This is not the only request – there are calls to initialise a temporary token prior to this request as well hence the endpoints given in the Tumblr API:
Example partially from RFC for OAuth – 1.2 Example