Skip to content

Commit eba5e5b

Browse files
committed
Updated Oauth2.php
1 parent 792e5ec commit eba5e5b

1 file changed

Lines changed: 5 additions & 16 deletions

File tree

src/Google/Service/Oauth2.php

Lines changed: 5 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -143,13 +143,13 @@ class Google_Service_Oauth2_Userinfo_Resource extends Google_Service_Resource
143143
* (userinfo.get)
144144
*
145145
* @param array $optParams Optional parameters.
146-
* @return Google_Service_Oauth2_Userinfo
146+
* @return Google_Service_Oauth2_Userinfoplus
147147
*/
148148
public function get($optParams = array())
149149
{
150150
$params = array();
151151
$params = array_merge($params, $optParams);
152-
return $this->call('get', array($params), "Google_Service_Oauth2_Userinfo");
152+
return $this->call('get', array($params), "Google_Service_Oauth2_Userinfoplus");
153153
}
154154
}
155155

@@ -181,13 +181,13 @@ class Google_Service_Oauth2_UserinfoV2Me_Resource extends Google_Service_Resourc
181181
* (me.get)
182182
*
183183
* @param array $optParams Optional parameters.
184-
* @return Google_Service_Oauth2_Userinfo
184+
* @return Google_Service_Oauth2_Userinfoplus
185185
*/
186186
public function get($optParams = array())
187187
{
188188
$params = array();
189189
$params = array_merge($params, $optParams);
190-
return $this->call('get', array($params), "Google_Service_Oauth2_Userinfo");
190+
return $this->call('get', array($params), "Google_Service_Oauth2_Userinfoplus");
191191
}
192192
}
193193

@@ -286,7 +286,7 @@ public function getVerifiedEmail()
286286
}
287287
}
288288

289-
class Google_Service_Oauth2_Userinfo extends Google_Model
289+
class Google_Service_Oauth2_Userinfoplus extends Google_Model
290290
{
291291
public $email;
292292
public $familyName;
@@ -298,7 +298,6 @@ class Google_Service_Oauth2_Userinfo extends Google_Model
298298
public $locale;
299299
public $name;
300300
public $picture;
301-
public $timezone;
302301
public $verifiedEmail;
303302

304303
public function setEmail($email)
@@ -401,16 +400,6 @@ public function getPicture()
401400
return $this->picture;
402401
}
403402

404-
public function setTimezone($timezone)
405-
{
406-
$this->timezone = $timezone;
407-
}
408-
409-
public function getTimezone()
410-
{
411-
return $this->timezone;
412-
}
413-
414403
public function setVerifiedEmail($verifiedEmail)
415404
{
416405
$this->verifiedEmail = $verifiedEmail;

0 commit comments

Comments
 (0)