Zend_Gdata_HttpClient::setClientLoginToken PHP Method

setClientLoginToken() public method

Sets the ClientLogin token used for authentication
public setClientLoginToken ( string $token ) : Zend_Gdata_HttpClient
$token string The token
return Zend_Gdata_HttpClient Provides a fluent interface
    public function setClientLoginToken($token)
    {
        $this->_clientLoginToken = $token;
        return $this;
    }

Usage Example

Example #1
0
 public function picasaDelete($photoId)
 {
     $token = $this->get_login_token();
     $client = new Zend_Gdata_HttpClient();
     $client->setAuthSubToken($token);
     $client->setClientLoginToken($token);
     $gphoto = new Zend_Gdata_Photos($client);
     $photoQuery = $gphoto->newPhotoQuery();
     $photoQuery->setUser($this->config['user']);
     $photoQuery->setAlbumId($this->config['album_id']);
     $photoQuery->setPhotoId($photoId);
     $photoQuery->setType('entry');
     $entry = $gphoto->getPhotoEntry($photoQuery);
     $gphoto->deletePhotoEntry($entry, true);
 }
All Usage Examples Of Zend_Gdata_HttpClient::setClientLoginToken