Ejemplo n.º 1
0
 /**
  * Set the OAuth 2.0 access token using the string that resulted from calling authenticate()
  * or apiClient#getAccessToken().
  * @param string $accessToken JSON encoded string containing in the following format:
  * {"access_token":"TOKEN", "refresh_token":"TOKEN", "token_type":"Bearer",
  *  "expires_in":3600,"id_token":"TOKEN", "created":1320790426}
  */
 public function setAccessToken($accessToken)
 {
     if ($accessToken == null || 'null' == $accessToken) {
         $accessToken = null;
     }
     $this->auth->setAccessToken($accessToken);
 }