-
Notifications
You must be signed in to change notification settings - Fork 0
Description
HI,
I am run the code and get the "$_GET['code']". But after that for getting access token have this error.
Fatal error: Uncaught exception 'RuntimeException' with message 'Error creating resource: [message] fopen(): Unable to find the wrapper "https" - did you forget to enable it when you configured PHP? [file] C:\xampp\htdocs\erp_apis\gplus\vendor\guzzlehttp\guzzle\src\Handler\StreamHandler.php [line] 287 [message] fopen(https://www.googleapis.com/oauth2/v4/token): failed to open stream: Invalid argument [file] C:\xampp\htdocs\erp_apis\gplus\vendor\guzzlehttp\guzzle\src\Handler\StreamHandler.php [line] 287' in C:\xampp\htdocs\erp_apis\gplus\vendor\guzzlehttp\guzzle\src\Handler\StreamHandler.php:227 Stack trace: #0 C:\xampp\htdocs\erp_apis\gplus\vendor\guzzlehttp\guzzle\src\Handler\StreamHandler.php(291): GuzzleHttp\Handler\StreamHandler->createResource(Object(Closure)) #1 C:\xampp\htdocs\erp_apis\gplus\vendor\guzzlehttp\guzzle\src\Handler\StreamHandler.php(52): GuzzleHttp\Handler\StreamHandler->createStream(Object(GuzzleHttp\Psr7\Request), Array) #2 C:\xampp\htdocs\erp_apis\gplus\vendor\guzzlehttp\guzzle\src\Pr in C:\xampp\htdocs\erp_apis\gplus\vendor\guzzlehttp\guzzle\src\Exception\RequestException.php on line 51
Any solutions for this? Thanks in advance.