Python/파이썬 프로젝트
2021. 4. 14.
카카오 api 토큰 발급
1. 토큰 발급받기 import requests import json url = 'https://kauth.kakao.com/oauth/token' rest_api_key = '자신의 REST API 키' redirect_uri = 'https://example.com/oauth' authorize_code = '-7sSp7Xxqw2QAew7-rctWJtZT4ycERTzQM_nylg8bX0OxFcgGegkA9jaVvPLEVOX_FrkxQo9dRoAAAF2qFCIsA' data = { 'grant_type':'authorization_code', 'client_id':rest_api_key, 'redirect_uri':redirect_uri, 'code': authorize_code, } response ..