문제

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.

도움이 되었습니까?

해결책

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

다른 팁

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top