{"action":"created","issue":{"url":"https://api.github.com/repos/sagarrabadiya/outlook-php/issues/6","repository_url":"https://api.github.com/repos/sagarrabadiya/outlook-php","labels_url":"https://api.github.com/repos/sagarrabadiya/outlook-php/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/sagarrabadiya/outlook-php/issues/6/comments","events_url":"https://api.github.com/repos/sagarrabadiya/outlook-php/issues/6/events","html_url":"https://github.com/sagarrabadiya/outlook-php/issues/6","id":368046530,"node_id":"MDU6SXNzdWUzNjgwNDY1MzA=","number":6,"title":"Not getting renewed access token using refresh token.","user":{"login":"active123456","id":43812130,"node_id":"MDQ6VXNlcjQzODEyMTMw","avatar_url":"https://avatars2.githubusercontent.com/u/43812130?v=4","gravatar_id":"","url":"https://api.github.com/users/active123456","html_url":"https://github.com/active123456","followers_url":"https://api.github.com/users/active123456/followers","following_url":"https://api.github.com/users/active123456/following{/other_user}","gists_url":"https://api.github.com/users/active123456/gists{/gist_id}","starred_url":"https://api.github.com/users/active123456/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/active123456/subscriptions","organizations_url":"https://api.github.com/users/active123456/orgs","repos_url":"https://api.github.com/users/active123456/repos","events_url":"https://api.github.com/users/active123456/events{/privacy}","received_events_url":"https://api.github.com/users/active123456/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-10-09T05:31:14Z","updated_at":"2018-10-09T05:56:14Z","closed_at":null,"author_association":"NONE","body":"use GuzzleHttp\\Client;\r\n private function getToken($grantType,$code){\r\n        try{       \r\n            $parameterName = $grantType;\r\n            if (strcmp($parameterName, 'authorization_code') == 0) {\r\n                $parameterName = 'code';\r\n            }\r\n            $httpClient = new \\GuzzleHttp\\Client();        \r\n            $params = [\r\n                \"grant_type\" => $grantType,\r\n                $parameterName => $code,\r\n                \"redirect_uri\" => REDIRECT_URI_OUTLOOK,\r\n                \"scope\" => implode(\" \", ['openid', 'offline_access']),\r\n                \"client_id\" => APP_ID_OUTLOOK,\r\n                \"client_secret\" => APP_PASSWORD_OUTLOOK\r\n            ];              \r\n            \r\n            $response = $httpClient->post(\"https://login.microsoftonline.com/common/oauth2/v2.0/token\",\r\n                                        ['form_params' => $params]);\r\n            $token = $response->getBody()->getContents();\r\n            return $token;\r\n        } catch (Exception $e) {\r\n        } \r\n    }\r\n\r\n  getToken('refresh_token',$refreshToken);"},"comment":{"url":"https://api.github.com/repos/sagarrabadiya/outlook-php/issues/comments/428069629","html_url":"https://github.com/sagarrabadiya/outlook-php/issues/6#issuecomment-428069629","issue_url":"https://api.github.com/repos/sagarrabadiya/outlook-php/issues/6","id":428069629,"node_id":"MDEyOklzc3VlQ29tbWVudDQyODA2OTYyOQ==","user":{"login":"active123456","id":43812130,"node_id":"MDQ6VXNlcjQzODEyMTMw","avatar_url":"https://avatars2.githubusercontent.com/u/43812130?v=4","gravatar_id":"","url":"https://api.github.com/users/active123456","html_url":"https://github.com/active123456","followers_url":"https://api.github.com/users/active123456/followers","following_url":"https://api.github.com/users/active123456/following{/other_user}","gists_url":"https://api.github.com/users/active123456/gists{/gist_id}","starred_url":"https://api.github.com/users/active123456/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/active123456/subscriptions","organizations_url":"https://api.github.com/users/active123456/orgs","repos_url":"https://api.github.com/users/active123456/repos","events_url":"https://api.github.com/users/active123456/events{/privacy}","received_events_url":"https://api.github.com/users/active123456/received_events","type":"User","site_admin":false},"created_at":"2018-10-09T05:56:14Z","updated_at":"2018-10-09T05:56:14Z","author_association":"NONE","body":"I am not getting any errors.Just that new refresh token and id token is returned."}}
{"actor":{"display_login":"active123456"}}