Guzzle Curl Error 60 SSL unable to get local issuer

后端 未结 11 1745
刺人心
刺人心 2020-12-14 16:00

Trying to use the YouTube API v3 to get some video(s) information, using Guzzle in Symfony2 using Service Descriptors.

When I run the script, I get this:

11条回答
  •  不思量自难忘°
    2020-12-14 16:38

    With Guzzle 6+ you have to set it on the client request options array.

    $response = $client->request('GET', 'https://example.com/v1/WebHooks', 
                ['verify' => false,
                'headers' => ['Authorization' => "ApiKey $apiKey"]
            ]);
    

提交回复
热议问题