photos.get

Sep 10, 2008 at 7:48 AM
Hi,
I'm trying to retrieve all the photos uploaded by a certain user.
my code:
 IList<album> albums = API.photos.getAlbums(API.uid);  
 IList<photo> photos = API.photos.get(API.uid.ToString(), albums[0].aid,null);

the albums are returned with photos.getAlbums, but photos.get does not return anything.
what am i doing wrong?

thanks