如何在ios中订阅Youtube频道?

时间:2016-04-15 06:41:13

标签: swift youtube oauth-2.0 subscription

我尝试使用以下网址

  

POST" https://www.googleapis.com/youtube/v3/subscriptions?part=snippet&fields=contentDetails,etag,id,kind,snippet,subscriberSnippet&key=(myClientId)&access_token=(myAccessTocken

Request Body : {"snippet":{"resourceId":{"\(myChannelId)","kind":"youtube#channel"}}}

But fail to with Error code : 

"errors" : [
      {
        "domain" : "global",
        "reason" : "authError",
        "locationType" : "header",
        "location" : "Authorization",
        "message" : "Invalid Credentials"
      }

0 个答案:

没有答案