I have read several topics about how to use the API, including the topic of Youtube Api which is used to display video lists, but that did not make me successful.
this is the API that I want to use
POST https://www.googleapis.com/youtube/v3/subscriptions?part=snippet&key=[YOUR_API_KEY] HTTP/1.1
Authorization: Bearer [YOUR_ACCESS_TOKEN]
Accept: application/json
Content-Type: application/json
{
“snippet”: {
“resourceId”: {
“kind”: “youtube#channel”,
“channelId”: “UC_x5XG1OV2P6uZZ5FSM9Ttw”
}
}
}
Source : Subscriptions: insert | YouTube Data API | Google for Developers

