{"action":"opened","issue":{"url":"https://api.github.com/repos/googleads/googleads-php-lib/issues/464","repository_url":"https://api.github.com/repos/googleads/googleads-php-lib","labels_url":"https://api.github.com/repos/googleads/googleads-php-lib/issues/464/labels{/name}","comments_url":"https://api.github.com/repos/googleads/googleads-php-lib/issues/464/comments","events_url":"https://api.github.com/repos/googleads/googleads-php-lib/issues/464/events","html_url":"https://github.com/googleads/googleads-php-lib/issues/464","id":306012822,"number":464,"title":"cURL error 7: Failed to connect to www.googleapis.com port 443: Connection refused ","user":{"login":"dvrsdheeraj","id":26809990,"avatar_url":"https://avatars0.githubusercontent.com/u/26809990?v=4","gravatar_id":"","url":"https://api.github.com/users/dvrsdheeraj","html_url":"https://github.com/dvrsdheeraj","followers_url":"https://api.github.com/users/dvrsdheeraj/followers","following_url":"https://api.github.com/users/dvrsdheeraj/following{/other_user}","gists_url":"https://api.github.com/users/dvrsdheeraj/gists{/gist_id}","starred_url":"https://api.github.com/users/dvrsdheeraj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dvrsdheeraj/subscriptions","organizations_url":"https://api.github.com/users/dvrsdheeraj/orgs","repos_url":"https://api.github.com/users/dvrsdheeraj/repos","events_url":"https://api.github.com/users/dvrsdheeraj/events{/privacy}","received_events_url":"https://api.github.com/users/dvrsdheeraj/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-03-16T17:23:30Z","updated_at":"2018-03-16T17:23:30Z","closed_at":null,"author_association":"NONE","body":"Hello,\r\nI am using google api ,when I try to get user information curl is throwing the error \"Failed to connect to www.googleapis.com port 443: Connection refused\" .\r\n\r\ncode is as follows\r\ngcallback.php:\r\n\r\nsetAccessToken($_SESSION['access_token']); else if (isset($_GET['code'])) { $token = $gClient->fetchAccessTokenWithAuthCode($_GET['code']); $_SESSION['access_token'] = $token; } else { header('Location: login.php'); exit(); } $oAuth = new Google_Service_Oauth2($gClient); $userData = $oAuth->userinfo_v2_me->get(); $_SESSION['id'] = $userData['id']; $_SESSION['email'] = $userData['email']; $_SESSION['gender'] = $userData['gender']; $_SESSION['picture'] = $userData['picture']; $_SESSION['familyName'] = $userData['familyName']; $_SESSION['givenName'] = $userData['givenName']; header('Location: index.php'); exit(); ?>\r\nconfig.php:\r\n\r\nsetClientId(\"1086598902122-v1qctbnc5oil1mtncs0bo15snrvssbdc.apps.googleusercontent.com\"); $gClient->setClientSecret(\"FXoySmm4_QIspGvSw5TyCA-6\"); $gClient->setApplicationName(\"CPI Login Tutorial\"); $gClient->setRedirectUri(\"http://127.0.0.1/google/g-callback.php\"); $gClient->addScope(\"https://www.googleapis.com/auth/plus.login https://www.googleapis.com/auth/userinfo.email\"); ?>\r\nplease give me solution for this\r\n\r\n![curl](https://user-images.githubusercontent.com/26809990/37535119-d6644cb2-296c-11e8-90e7-f1fe0e117608.png)\r\n"}}
{"actor":{"display_login":"dvrsdheeraj"}}