Question

I try the guide here: Path Developers Docs

I can get access token from Path API. But I can not send post photo request "POST /1/moment/photo".

Does anyone can do it?

I used gtw-oauth2 to get access token from Path API.

Was it helpful?

Solution

If you see the request format

POST /oauth2/access_token HTTP/1.1
Host: partner.path.com
Content-Type: application/x-www-form-urlencoded
Content-Length: <LENGTH>

grant_type=authorization_code&client_id=CLIENT&client_secret=SECRET&code=CODE

Content-Length line is not required, in getting permanent access token

code=CODE - was very confusing, and i see you can get temporary access token, but can't get permanent access token, in this line, capital CODE MUST BE REPLACED WITH TEMPORARY ACCESS TOKEN

don't change grant_type=authorization_code only

I think this will help you a lot

OTHER TIPS

POST /oauth2/access_token HTTP/1.1 Host: partner.path.com Content-Type: application/x-www-form-urlencoded Content-Length:

grant_type=authorization_code&client_id=CLIENT&client_secret=SECRET&code=CODE

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top