service_app_admin_key = ‘’
headers = {
‘Authorization’: f’Bearer {service_app_admin_key}’
}
url = ‘https://kapi.kakao.com/v1/api/talk/friends’
response = requests.get(url, headers=headers)
if response.status_code == 200:
users = response.json()
print(“애플리케이션 내 사용자 정보:”, users)
else:
print(f"요청 실패, 상태 코드: {response.status_code}“)
print(f"응답 내용: {response.text}”)