Spotify-Playground / spotify-API

0 stars 0 forks source link

[Spotify] API request용 access 토큰 발급 받기 #8

Open hooniegit opened 11 months ago

hooniegit commented 11 months ago

참고 링크 : https://developer.spotify.com/documentation/web-api

클라이언트 ID 및 클라이언트 시크릿 조회하기

스크린샷 2023-07-23 오후 9 04 52

API 접속 토큰 발행 명령어

$ curl -X POST "https://accounts.spotify.com/api/token" \
     -H "Content-Type: application/x-www-form-urlencoded" \
     -d "grant_type=client_credentials&client_id=[클라이언트 ID]&client_secret=[클라이언트 시크릿]"
{"access_token":"[API 접속 토큰]","token_type":"Bearer","expires_in":3600}