728x90 반응형 KAKAO1 카카오 로그인 (python에 붙이기) import requests import json host = 'kapi.kakao.com' admin_key = 'admin key' user_id = '유저 아이디' def getAllUsers(): headers = { 'Host': host, 'Authorization': f'KakaoAK {admin_key}', 'Content-Type': 'application/x-www-form-urlencoded;charset=utf-8' } res = requests.get(f'https://{host}/v1/user/ids', headers=headers) print(res.json()) def getUserInfo(): headers2 = { 'Host': host, 'Authorization': f.. 2020. 3. 23. 이전 1 다음 728x90