owner : ahrtears54@nate.com
app name: Auto arxiv
친구 목록 가져오기를 시도하고있습니다.
조건 4가지
-카카오톡 친구일것
-목록을 내려받는 서비스에 가입한 사용자 일것
-친구목록 제공에 동의한 사용자일것
-(검수 전) 팀 멤버로 등록되어 있을 것
를 만족하였고 다음의 명령어를 입력하였으나 결과가 0으로 나옵니다.
정상적인 친구 목록을 가져오려면 어떤 작업을 추가로하여야하나요?
curl -v GET “https://kapi.kakao.com/v1/api/talk/friends” -H “Authorization: Bearer [appkey]”
- Could not resolve host: GET
- Closing connection 0
curl: (6) Could not resolve host: GET - Trying 203.133.166.33…
- TCP_NODELAY set
- Connected to kapi.kakao.com (203.133.166.33) port 443 (#1)
- ALPN, offering http/1.1
- successfully set certificate verify locations:
- CAfile: /Users/han_mini/anaconda3/ssl/cacert.pem
CApath: none - TLSv1.3 (OUT), TLS handshake, Client hello (1):
- TLSv1.3 (IN), TLS handshake, Server hello (2):
- TLSv1.2 (IN), TLS handshake, Certificate (11):
- TLSv1.2 (IN), TLS handshake, Server key exchange (12):
- TLSv1.2 (IN), TLS handshake, Server finished (14):
- TLSv1.2 (OUT), TLS handshake, Client key exchange (16):
- TLSv1.2 (OUT), TLS change cipher, Change cipher spec (1):
- TLSv1.2 (OUT), TLS handshake, Finished (20):
- TLSv1.2 (IN), TLS handshake, Finished (20):
- SSL connection using TLSv1.2 / ECDHE-RSA-AES256-GCM-SHA384
- ALPN, server accepted to use http/1.1
- Server certificate:
- subject: C=KR; ST=Jeju-do; L=Jeju-si; O=Kakao Corp.; CN=*.kakao.com
- start date: Jul 9 00:00:00 2018 GMT
- expire date: Oct 8 12:00:00 2020 GMT
- subjectAltName: host “kapi.kakao.com” matched cert’s “*.kakao.com”
- issuer: C=US; O=DigiCert Inc; OU=www.digicert.com; CN=Thawte TLS RSA CA G1
- SSL certificate verify ok.
GET /v1/api/talk/friends HTTP/1.1
Host: kapi.kakao.com
User-Agent: curl/7.63.0
Accept: /
Authorization: Bearer [appkey]
< HTTP/1.1 200 OK
< Date: Sun, 23 Aug 2020 15:27:44 GMT
< Server: Apache
< Quota-Type: INC_AND_CHECK
< Content-Type: application/json;charset=UTF-8
< Content-Length: 156
<
- Connection #1 to host kapi.kakao.com left intact
{“elements”:[],“total_count”:0,“after_url”:null,“result_id”:“zbnYtN-AsYm4jr-KuoO36Nzr3-7W4b7Mqc6n1KDFt9K26Y_umPeF7Jj9opPMrcGt8pn2qd_sFg”,“favorite_count”:0}
추가로 scope에도 friends는 나옵니다.
{“access_token”: “–”, “token_type”: “bearer”, “refresh_token”: “–”, “expires_in”: 21599, “scope”: “talk_message profile friends”, “refresh_token_expires_in”: 5183999}