Wow!

Thank You very much!
I spent many hours searching this method...

Jordi Corbella

On 10 February 2011 20:05, Detlev Schwabe <[email protected]> wrote:

> Only "unlisted" (aka "Anyone with the link") albums really need an authkey.
> Your code below seems to just create an album with the default
> visibility/access.
> You should make a call to setGphotoAccess on the $entry, before you
> actually make the insertAlbumEntry call. Set the value to "private".
>
> When you create a private album, the returned album entry will contain a
> <link rel='alternate' ...> element that points to the album's web page. The
> URL will then also contain the authkey.
> The link is accessible from $albumEntry via the getAlternateLink method.
>
>
>
>
> On Sat, Feb 5, 2011 at 1:08 PM, pazjordi <[email protected]> wrote:
>
>> I would need get the authkey of a Picasa album so that anyone could
>> access through the url:
>> https://picasaweb.google.com/<user>/<album name>?authkey=xyz
>>
>> I create the album with the Zend libraries in that way:
>>
>>       $pass="psw";
>>
>>        $serviceName = Zend_Gdata_Photos::AUTH_SERVICE_NAME;
>>        $client = Zend_Gdata_ClientLogin::getHttpClient($user, $pass,
>> $serviceName);
>>
>>        $gp = new Zend_Gdata_Photos($client);
>>
>>
>>        $entry = new Zend_Gdata_Photos_AlbumEntry();
>>        $entry->setTitle($gp->newTitle($mytitle));
>>        $entry->setSummary($gp->newSummary($mytitle));
>>
>>        $albumEntry = $gp->insertAlbumEntry($entry);
>>
>> And it works, but now...how can I get the authkey? Is there any
>> method?
>> I would like to get the authkey and save it in a database so that I
>> could create the url to access my albums.
>>
>> Thank you in advance
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Google Picasa Web Albums API" group.
>> To post to this group, send email to
>> [email protected].
>> To unsubscribe from this group, send email to
>> [email protected].
>> For more options, visit this group at
>> http://groups.google.com/group/google-picasa-data-api?hl=en.
>>
>>
>  --
> You received this message because you are subscribed to the Google Groups
> "Google Picasa Web Albums API" group.
> To post to this group, send email to
> [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/google-picasa-data-api?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Picasa Web Albums API" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-picasa-data-api?hl=en.

Reply via email to