1 follower Follow

Making the post request to obtain API token

Hi all,

Having a little trouble getting this post request to return anything. I was wondering if you could give me a hand. It may even been a PHP problem:

Here is the code:

It has access granted and the code is returned: $this->code

I'm now building a request with all of the parameters in mind in order to get the token: 

URL:*Request body: grant_type=authorization_code&client_id=YOUR_APP_ID&redirect_uri=YOUR_URL&client_secret=YOUR_APP_SECRET&code=THE_AUTHORIZATION_CODE*

$result comes back empty.

Any ideas? :)

James Trusler Answered

Please sign in to leave a comment.



Hi James,

You're making things much harder than you need to. We have a PHP client that you can use so you don't have to deal with the HTTP requests directly.

Read about the client and download from: 

The download comes with two complete authentication examples in the /examples/ folder that you can build from.

Andreas Haugstrup Pedersen 0 votes
Comment actions Permalink

Hahah, my profile picture *sighs*... Does this app make my chin look big? .. hahaha!

James Trusler 0 votes
Comment actions Permalink