How to get current user's profile information in YouTube Data API v3

前端 未结 2 1747
耶瑟儿~
耶瑟儿~ 2021-01-02 07:14

In V2 you could hit the /api/users/default path to get infomation such as the user\'s username. This is documented here: https://developers.google.com/youtube/2

2条回答
  •  感情败类
    2021-01-02 07:55

    In v3, user info is basically channel info. By doing a channels->list "https://developers.google.com/youtube/v3/docs/channels/list", you will get the information under 'snippet.channelId' "https://developers.google.com/youtube/v3/docs/channels#snippet.channelId"

提交回复
热议问题