{"action":"closed","issue":{"url":"https://api.github.com/repos/google/google-api-php-client/issues/755","labels_url":"https://api.github.com/repos/google/google-api-php-client/issues/755/labels{/name}","comments_url":"https://api.github.com/repos/google/google-api-php-client/issues/755/comments","events_url":"https://api.github.com/repos/google/google-api-php-client/issues/755/events","html_url":"https://github.com/google/google-api-php-client/issues/755","id":117957510,"number":755,"title":"Google Calendar: Receiving empty objects after successful authentication. The code was working fine before.","user":{"login":"mrajabtech","id":4452859,"avatar_url":"https://avatars.githubusercontent.com/u/4452859?v=3","gravatar_id":"","url":"https://api.github.com/users/mrajabtech","html_url":"https://github.com/mrajabtech","followers_url":"https://api.github.com/users/mrajabtech/followers","following_url":"https://api.github.com/users/mrajabtech/following{/other_user}","gists_url":"https://api.github.com/users/mrajabtech/gists{/gist_id}","starred_url":"https://api.github.com/users/mrajabtech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrajabtech/subscriptions","organizations_url":"https://api.github.com/users/mrajabtech/orgs","repos_url":"https://api.github.com/users/mrajabtech/repos","events_url":"https://api.github.com/users/mrajabtech/events{/privacy}","received_events_url":"https://api.github.com/users/mrajabtech/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-11-20T03:20:06Z","updated_at":"2015-11-21T03:49:16Z","closed_at":"2015-11-21T03:49:16Z","body":"Google client object request:\r\n```\r\n\t$client = new Google_Client();\r\n\t$client->setAuthConfigFile(APPPATH.'libraries/google_client_key.json');\r\n\t$client->setDeveloperKey(\"AIzaSyCyeM0_0x_g********\");\r\n\t$client->addScope(Google_Service_Calendar::CALENDAR);\r\n\t$client->setAccessType(\"offline\");\r\n\t$client->setAccessToken($ACCESS_TOKEN); //Using $client->refreshToken($client->getRefreshToken()); to make sure $ACCESS_TOKEN is valid\r\n```\r\n\r\n**Google client object response:** `print_r($client);`\r\n```\r\n\tGoogle_Client Object\r\n\t(\r\n\t\t[auth:Google_Client:private] => Google_Auth_OAuth2 Object\r\n\t\t\t(\r\n\t\t\t\t[assertionCredentials:Google_Auth_OAuth2:private] => \r\n\t\t\t\t[state:Google_Auth_OAuth2:private] => \r\n\t\t\t\t[token:Google_Auth_OAuth2:private] => Array\r\n\t\t\t\t\t(\r\n\t\t\t\t\t\t[access_token] => ya29.MgLmVbAJKVDOncwKQOA3JDJb92SPA5qUfm_QR0Veg6OUu_gnsoVcJ-M9EB1tI5ch9jTD\r\n\t\t\t\t\t\t[token_type] => Bearer\r\n\t\t\t\t\t\t[expires_in] => 3600\r\n\t\t\t\t\t\t[refresh_token] => 1/NMX6NaEiRhtRQaOCzRkTs**********\r\n\t\t\t\t\t\t[created] => 1447986888\r\n\t\t\t\t\t)\r\n\r\n\t\t\t\t[client:Google_Auth_OAuth2:private] => Google_Client Object\r\n\t *RECURSION*\r\n\t\t\t)\r\n\r\n\t\t[io:Google_Client:private] => \r\n\t\t[cache:Google_Client:private] => \r\n\t\t[config:Google_Client:private] => Google_Config Object\r\n\t\t\t(\r\n\t\t\t\t[configuration:protected] => Array\r\n\t\t\t\t\t(\r\n\t\t\t\t\t\t[application_name] => \r\n\t\t\t\t\t\t[auth_class] => Google_Auth_OAuth2\r\n\t\t\t\t\t\t[io_class] => Google_IO_Curl\r\n\t\t\t\t\t\t[cache_class] => Google_Cache_File\r\n\t\t\t\t\t\t[logger_class] => Google_Logger_Null\r\n\t\t\t\t\t\t[base_path] => https://www.googleapis.com\r\n\t\t\t\t\t\t[classes] => Array\r\n\t\t\t\t\t\t\t(\r\n\t\t\t\t\t\t\t\t[Google_IO_Abstract] => Array\r\n\t\t\t\t\t\t\t\t\t(\r\n\t\t\t\t\t\t\t\t\t\t[request_timeout_seconds] => 100\r\n\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t[Google_Logger_Abstract] => Array\r\n\t\t\t\t\t\t\t\t\t(\r\n\t\t\t\t\t\t\t\t\t\t[level] => debug\r\n\t\t\t\t\t\t\t\t\t\t[log_format] => [%datetime%] %level%: %message% %context%\r\n\t\t\t\t\t\t\t\t\t\t[date_format] => d/M/Y:H:i:s O\r\n\t\t\t\t\t\t\t\t\t\t[allow_newlines] => 1\r\n\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t[Google_Logger_File] => Array\r\n\t\t\t\t\t\t\t\t\t(\r\n\t\t\t\t\t\t\t\t\t\t[file] => php://stdout\r\n\t\t\t\t\t\t\t\t\t\t[mode] => 416\r\n\t\t\t\t\t\t\t\t\t\t[lock] => \r\n\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t[Google_Http_Request] => Array\r\n\t\t\t\t\t\t\t\t\t(\r\n\t\t\t\t\t\t\t\t\t\t[disable_gzip] => \r\n\t\t\t\t\t\t\t\t\t\t[enable_gzip_for_uploads] => \r\n\t\t\t\t\t\t\t\t\t)\r\n\r\n\t\t\t\t\t\t\t\t[Google_Auth_OAuth2] => Array\r\n\t\t\t\t\t\t\t\t\t(\r\n\t\t\t\t\t\t\t\t\t\t[client_id] => 68362050403-7t1tj0sib54r8***********.apps.googleusercontent.com\r\n\t\t\t\t\t\t\t\t\t\t[client_secret] => YUR70PmD*********0Givr\r\n\t\t\t\t\t\t\t\t\t\t[redirect_uri] => http://app.artlive*********\r\n\t\t\t\t\t\t\t\t\t\t[developer_key] => AIzaSyCyeM0_0x_goBOIZ*********8\r\n\t\t\t\t\t\t\t\t\t\t[hd] => \r\n\t\t\t\t\t\t\t\t\t\t[prompt] => \r\n\t\t\t\t\t\t\t\t\t\t[openid.realm] => \r\n\t\t\t\t\t\t\t\t\t\t[include_granted_scopes] => \r\n\t\t\t\t\t\t\t\t\t\t[login_hint] => \r\n\t\t\t\t\t\t\t\t\t\t[request_visible_actions] => \r\n\t\t\t\t\t\t\t\t\t\t[access_type] => offline\r\n\t\t\t\t\t\t\t\t\t\t[approval_prompt] => auto\r\n\t\t\t\t\t\t\t\t\t\t[federated_signon_certs_url] => https://www.googleapis.com/oauth2/v1/certs\r\n\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t[Google_Task_Runner] => Array\r\n\t\t\t\t\t\t\t\t\t(\r\n\t\t\t\t\t\t\t\t\t\t[initial_delay] => 1\r\n\t\t\t\t\t\t\t\t\t\t[max_delay] => 60\r\n\t\t\t\t\t\t\t\t\t\t[factor] => 2\r\n\t\t\t\t\t\t\t\t\t\t[jitter] => 0.5\r\n\t\t\t\t\t\t\t\t\t\t[retries] => 0\r\n\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t[Google_Service_Exception] => Array\r\n\t\t\t\t\t\t\t\t\t(\r\n\t\t\t\t\t\t\t\t\t\t[retry_map] => Array\r\n\t\t\t\t\t\t\t\t\t\t\t(\r\n\t\t\t\t\t\t\t\t\t\t\t\t[500] => -1\r\n\t\t\t\t\t\t\t\t\t\t\t\t[503] => -1\r\n\t\t\t\t\t\t\t\t\t\t\t\t[rateLimitExceeded] => -1\r\n\t\t\t\t\t\t\t\t\t\t\t\t[userRateLimitExceeded] => -1\r\n\t\t\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t[Google_IO_Exception] => Array\r\n\t\t\t\t\t\t\t\t\t(\r\n\t\t\t\t\t\t\t\t\t\t[retry_map] => Array\r\n\t\t\t\t\t\t\t\t\t\t\t(\r\n\t\t\t\t\t\t\t\t\t\t\t\t[6] => -1\r\n\t\t\t\t\t\t\t\t\t\t\t\t[7] => -1\r\n\t\t\t\t\t\t\t\t\t\t\t\t[28] => -1\r\n\t\t\t\t\t\t\t\t\t\t\t\t[35] => -1\r\n\t\t\t\t\t\t\t\t\t\t\t\t[52] => -1\r\n\t\t\t\t\t\t\t\t\t\t\t)\r\n\r\n\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t[Google_Cache_File] => Array\r\n\t\t\t\t\t\t\t\t\t(\r\n\t\t\t\t\t\t\t\t\t\t[directory] => C:\\Windows\\TEMP/Google_Client\r\n\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t)\r\n\t\t\t\t\t)\r\n\t\t\t)\r\n\t\t[logger:Google_Client:private] => \r\n\t\t[deferExecution:Google_Client:private] => \r\n\t\t[requestedScopes:protected] => Array\r\n\t\t\t(\r\n\t\t\t\t[0] => https://www.googleapis.com/auth/calendar\r\n\t\t\t)\r\n\t\t[services:protected] => Array\r\n\t\t\t(\r\n\t\t\t)\r\n\t\t[authenticated:Google_Client:private] => \r\n\t)\r\n```\r\n\r\n**Google_Service_Calendar_Settings request:**\r\n```\r\n        $cal_service = new Google_Service_Calendar($client);\r\n        $cal_id = \"primary\";\r\n        $settings = $cal_service->settings->listSettings();\r\n```\r\n\r\n**Google_Service_Calendar_Settings response(weird empty values. Same happens for all responses eg. `$cal_service->events->listEvents($cal_id, $optParams);`** `print_r($settings)`\r\n```\r\n\tGoogle_Service_Calendar_Settings Object\r\n\t(\r\n\t\t[collection_key:protected] => items\r\n\t\t[internal_gapi_mappings:protected] => Array\r\n\t\t\t(\r\n\t\t\t)\r\n\t\t[etag] => \r\n\t\t[itemsType:protected] => Google_Service_Calendar_Setting\r\n\t\t[itemsDataType:protected] => array\r\n\t\t[kind] => \r\n\t\t[nextPageToken] => \r\n\t\t[nextSyncToken] => \r\n\t\t[account_table_name] => \r\n\t)\r\n```\r\nPlease help. Thank you!"}}