API - Getting the token

56 views
Skip to first unread message

Aleksander Panchenko

unread,
Jul 31, 2019, 11:37:24 AM7/31/19
to phrasea-devel
Hallo,
I’m trying to connect to the API, I can successfully get the authorization code, but when I use it to get the token, i'm getting an error:
{
"error": "invalid_request"
}

I used the documentation from you’re website: https://docs.phraseanet.com/4.0/en/Devel/API/V1/Authentication.html
There is a screenshot of postman in attachment. 
Can you help me to find what is wrong?
Thanks in advance!
screenshot.png

Gaspard Jacobson

unread,
Aug 2, 2019, 5:13:33 PM8/2/19
to phrasea-devel
Hi Aleksander,

Could you provide more details on how you registered your application to get your API credentials and the general purpose of your application.

It seems that you generated your API credentials using the  online demo of Phraseanet which is not recommended while working in a development environment.

For development purpose we recommend that you generate your credentials after setting up your Phraseanet either by downloading our shipped VM available at https://www.phraseanet.com/en/download/
or by cloning one of the last branch available on github and follow the documentation for building your environment using Vagrant or Docker.

If you are using Docker, you first need to build the images in your workspace (see documentation) and clone the Phraseanet Docker Stack at your disposal at https://github.com/alchemy-fr/phraseanet-docker.

Get in touch if you have any questions.

Gaspard J
Alchemy
Reply all
Reply to author
Forward
0 new messages