access_token \uc774 \uc720\ud6a8\ud558\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4.

티스토리 API 사용 중에 access_token \uc774 \uc720\ud6a8\ud558\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4. 오류가 발생하였나요?

access_token

{"tistory":{"status":"400","error_message":"access_token \uc774 \uc720\ud6a8\ud558\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4. []"}}

access_token 이 유효하지 않습니다. 부분을 유니코드로 표현한 것입니다.

티스토리 API에서 access_token은 다음의 과정으로 발급 요청할 수 있습니다.

  • "인증 요청 및 코드 발급"으로 인증절차 진행 (URL => https://www.tistory.com/oauth/authorize)
  • 리디렉션 처리 이후 획득한 인증 코드(authorization code)에 대하여, GET https://www.tistory.com/oauth/access_token URL을 을 통해 액세스 토큰 발급 요청
GET https://www.tistory.com/oauth/access_token?
  client_id={client-id}
  &client_secret={client-secret}
  &redirect_uri={redirect-uri}
  &code={code}
  &grant_type=authorization_code

댓글