AdsUser::GetOAuth2Info PHP Метод

GetOAuth2Info() публичный Метод

Gets the OAuth2 info for this user.
public GetOAuth2Info ( ) : array
Результат array the OAuth2 info for this user
    public function GetOAuth2Info()
    {
        return $this->oauth2Info;
    }

Usage Example

Пример #1
0
 /**
  * Checks to see if an ads user is authenticating with OAuth 2 or not.
  *
  * @param AdsUser $user the AdsUser to test
  * @return boolean true if using OAuth 2, false otherwise
  */
 public static function IsUsingOAuth2(AdsUser $user)
 {
     // AdsUser doesn't have ClientLogin information on it, only the subclasses
     // do, so we can only check for absence of OAuth 2 here.
     return $user->GetOAuth2Info() !== NULL;
 }
All Usage Examples Of AdsUser::GetOAuth2Info