01. 인가 코드 받기
GET <https://accounts.google.com/o/oauth2/auth>
Query Parameter
Request
GET <https://accounts.google.com/o/oauth2/auth>?
client_id={client_id}&
redirect_uri={redirect uri}&
scope=https://www.googleapis.com/auth/youtube&
response_type=code&
access_type=offline
Response
http://{redirect uri}code={인가 code 정보}
02. 엑세스 토큰 요청
POST <https://accounts.google.com/o/oauth2/token>
Query Parameter
Request
POST /o/oauth2/token HTTP/1.1
Host: accounts.google.com
Content-Type: application/x-www-form-urlencoded
code={인가 code}
client_id={client_id}&
client_secret={client_secret}&
redirect_uri={redirect uri}&
grant_type=authorization_code
Response
{
"access_token" : "{access_token}",
"token_type" : "Bearer",
"expires_in" : 3600,
"refresh_token" : "{refresh_token}"
}
03. Playlist 목록 API
GET <https://www.googleapis.com/youtube/v3/playlists>
Query Parameter
Request