친구 목록 결과가 아무것도 없습니다

  1. 서로 카카오톡에 친구 추가를 하고 메시지를 보냅니다.
    애플리케이션에 친구를 팀멤버로 초대하고 editor권한을 줍니다.
    친구계정으로 developer 계정을 만들고 정상적으로 로그인해서 애플리케이션 팀멥버에 초대된걸 확인합니다.
    동의학목 consent item 에서 권한들을 설정 합니다 (메시지, 친구, 등)

  2. https://kauth.kakao.com/oauth/authorize?response_type=code&client_id={}&redirect_uri={}&scope=talk_message+friends

이 주소로 가서 로그인하고 허락을 받고 code를 받았습니다.

  1. https://kauth.kakao.com/oauth/token

data = {
“grant_type” : “authorization_code”,
“client_id” : KAKAO_API_KEY,
“redirect_uri” : “https://thejakeyoon.com”,
“code” : KAKAO_CODE,
“scope” : “talk_message friends”

}

response = requests.post(url, data = data)

토큰을 받고 “scope” : "talk_message friends"을 확인했습니다.

  1. url = "https://kapi.kakao.com/v1/api/talk/friends"
    headers = {‘Authorization’ : ‘Bearer {}’.format(KAKAO_ACCESS_TOKEN)}
    response = requests.get(url, headers = headers)
    print(response.text)

결과는 아무것도 없습니다. 다른 스레드도 보고 여러변 시도해도 계속 아무것도 없습니다.

{“elements”:[],“total_count”:0,“after_url”:null,“result_id”:“zbnYtN-As4axiL6Ks4K75NHo3eXR5brIrcqj0KTBs9ay7YvqnPOB6Jz5ppfIqcWp9p3yrdvoAg”,“favorite_count”:0}

도와주세요…

친구가 access token을 받고 기다리니 이제 되네요
친구가 애플리케이션에 로그인만 아니라 code 와 토큰도 받아야되네요

네, 아래 체크 리스트도 참고해주세요~

1개의 좋아요