Sorry, correction, one of the albums wasn't of public access :p  My fault.

So my exact problems are the following:

1.  The returned album IDs don't match the ones at the URL when I see them
in my browser
2.  The returned album size is always 7 for both albums, when I really have
3 pics on one album and 2 on the other one.
*3.  When I try to retrieve the photos the code returns nothing (I tried
with the returned IDs as well as the ones in the URL).  THIS POINT IS THE
CRITICAL ONE FOR ME.*

Everything else is OK: thumbnail, owner id, description...



2010/11/8 Natalia de Dios <[email protected]>

> Robson,
>
> I'm using the latest Java library (version 1.6.0_22).
>
> I had already looked the orkut-os-client, I managed to run the sample
> through "ant", but getting an error building my own project on Eclipse.
> BTW, it has very few documentation, and seems very complicated to handle all
> the OAuth thing compared to the OpenSocial:
> *"AuthScheme scheme = new OAuth2LeggedScheme (CONSUMER_KEY,
> CONSUMER_SECRET);"*  -  And go on coding.  Apart from that, I want to
> write code for other containers too (MySpace, hi5...), so I would prefer
> using OpenSocial for this.
>
> On the other hand, I'm not interested in 3-legged-scheme...  Of course I'll
> use orkut-os-client and 3legged if there is no other opcion but I would
> prefer not using it.
>
> So, is this a bug that I should report? Am I doing something wrong?? Or is
> it simply imposible to achieve what I want to this way?
>
> Thank you so much for your answer.
>
>
> 2010/11/5 Robson Dantas <[email protected]>
>
> Natalia,
>>
>> Can you please tell us which Java library are you using ?
>>
>> BTW, consider looking this:
>> http://code.google.com/p/orkut-os-client/
>>
>> Think the best way to interact with orkut right now, is using 3legged
>> oauth library.
>>
>> -Robson Dantas
>>
>> 2010/11/4 Natalia de Dios <[email protected]>
>>
>>> Hi all,
>>>
>>> I'm trying to get info about my albums and pics from Orkut.  I
>>> currently have 2 albums, 5 pics in total.
>>>
>>> When I query for my albums, the code returns just one album.  With an
>>> album ID that doesn't correspond to any of mines, a thumbnail
>>> corresponding to my profile photo and it says that the album isn't
>>> empty and has 7 photos (the album owner ID corresponds to mine, is
>>> OK).  Then, when I query for pics into that album (using the returned
>>> ID), it returns nothing.
>>>
>>> I tried copying the returned ID on Orkut's URL, but it doesn't find
>>> any album.  Also tried to manually insert my real album IDs into the
>>> code for getting the photos, and no photo is returned.  Here's my
>>> code:
>>>
>>>
>>>
>>>                        Request request2 = AlbumsService.getAlbums();
>>>                        Response resp2 = client.send(request2);
>>>                        List<Album> albums = resp2.getEntries();
>>>
>>>                        Iterator<Album> i = albums.iterator();
>>>                        Album alb;
>>>                        String id = "";
>>>                        while (i.hasNext()){
>>>                                alb = (Album)i.next();
>>>                                id = alb.getId();
>>>                                System.out.println("ID: "+id);
>>>                                System.out.println("Owner ID:
>>> "+alb.getOwnerId());
>>>                                System.out.println("Thumbnail:
>>> "+alb.getThumbnailUrl());
>>>                                System.out.println("Size: "+alb.size());
>>>                                System.out.println("Empty:
>>> "+alb.isEmpty()+"\n\n");
>>>                        }
>>>
>>>
>>>                Request request3 = MediaItemsService.getMediaItems(id);
>>>                Response resp3 = client.send(request3);
>>>                List<MediaItem> photos = resp3.getEntries();
>>>
>>>                Iterator<MediaItem> i2 = photos.iterator();
>>>                MediaItem photo;
>>>                while (i2.hasNext()){
>>>                        photo = (MediaItem)i2.next();
>>>                        System.out.println("Photo: "+photo.THUMBNAIL_URL);
>>>                }
>>>
>>>
>>>
>>> Am I missing something??  I'd really appreciate your help with this.
>>>
>>> Thanks in advance.
>>>
>>> --
>>> You received this message because you are subscribed to the Google Groups
>>> "OpenSocial Application Development" group.
>>> To post to this group, send email to [email protected].
>>> To unsubscribe from this group, send email to
>>> [email protected]<opensocial-api%[email protected]>
>>> .
>>> For more options, visit this group at
>>> http://groups.google.com/group/opensocial-api?hl=en.
>>>
>>>
>>  --
>> You received this message because you are subscribed to the Google Groups
>> "OpenSocial Application Development" group.
>> To post to this group, send email to [email protected].
>> To unsubscribe from this group, send email to
>> [email protected]<opensocial-api%[email protected]>
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/opensocial-api?hl=en.
>>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"OpenSocial Application Development" 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/opensocial-api?hl=en.

Reply via email to