Home>

Experts! I have a website, with SSL protocol,

I want to withdraw comments on this site on YouTube. Online https://console.cloud.google.com/apis/credentials.I created a KEY API (marked with a green check mark as active)

Next, I create a link of the species:

In [ID] I drive the ID of the target video, and in [Key] your API key, as the result, it was expected to see something without errors, such as JSON. And it turns out this:

{
  "Error": {
    "Code": 403,
    "Message": "SSL IS REQUIRED TO PERFORM THIS OPERATION.",
    "Errors": [
      {
        "Message": "SSL IS REQUIRED TO PERFORM THIS OPERATION.",
        "Domain": "Global",
        "REASON": "sslrequired"
      }
    ],
    "Status": "permission_denied"
  }
}

tried to get an answer via file_get_contents, but in response False

How can I get a certain array with comments and pain off on my site?

What you drive -the code show

InDevX2021-07-19 16:48:13

$ Get= File_Get_Contents ('googaapais.com/youtube/v3/...); VAR_DUMP ($ GET);

4 kilograms2021-07-19 17:01:29

@INDEVX can be seen certainly not ice, but I looked at this option. When you go on a bare link, the ssl error is also issued although there are no problems with it on the site

4 kilograms2021-07-19 17:08:05

https: //Add at the beginning of the link

InDevX2021-07-19 17:15:02

@INDEVX has shifts, when you go on a naked link of the format "https: //..." gives JSON an answer with another error) Now say that not a valid API Key .. Although copying from the console

4 kilograms2021-07-19 17:19:43