Hi,

Thanks!

now i am getting error on loading photos by album.
I got error of 404 remote server return an error: not found

  public void photos()
    {
        string albumName = (string)Session["AlbumName"];

        string p = "[EMAIL PROTECTED]";
        string pwd ="xyz";

        PicasaService myService = new PicasaService("exampleCo-
exampleApp-1");
        myService.setUserCredentials(p,pwd);

        GAuthSubRequestFactory authFactory = new
GAuthSubRequestFactory("lh2", "exampleCo-exampleApp-1");
        authFactory.Token = (String)Session["token"];

        myService.RequestFactory = authFactory;

        /* Get photos */

        PhotoQuery  PQuery = new
PhotoQuery(PicasaQuery.CreatePicasaUri(p,albumName));  // I got error
at this line
        PQuery.NumberToRetrieve = 10;
        PicasaFeed feed = myService.Query(PQuery);
    }


On Oct 18, 8:59 pm, Frank Mantek <[EMAIL PROTECTED]> wrote:
> Can you try removing this line:
>
> >        service.setUserCredentials("x", "y");
>
> Below you are adding the client login header and the authsubrequest  
> header at the same time. I venture to guess that this throws something  
> off..
>
> Frank Mantek
> Google
>
> On Oct 17, 2008, at 1:20 PM, Me. wrote:
>
>
>
>
>
> > Hi
>
> > I am new for Picasa i am just trying to do take photos from Picasa.
> > But i got 403 Forbidden error at PicasaFeed feed =
> > service.Query(query);
>
> > My code is :
>
> >        PicasaService myService = new PicasaService("exampleCo-
> > exampleApp-1");
> >        myService.setUserCredentials("[EMAIL PROTECTED]",
> > "blackro$e");
> >        GAuthSubRequestFactory authFactory = new
> > GAuthSubRequestFactory("lh2", "exampleCo-exampleApp-1");
> >        authFactory.Token = (String)Session["token"];
> >        PicasaService service = new
> > PicasaService(authFactory.ApplicationName);
> >        service.RequestFactory = authFactory;
> >        service.setUserCredentials("[EMAIL PROTECTED]",
> > "blackro$e");
> >        AlbumQuery query = new
> > AlbumQuery(PicasaQuery.CreatePicasaUri("default"));
> >        Response.Write(query.Uri.ToString());
>
> >        PicasaFeed feed = service.Query(query);  // I got error at
> > this line
>
> >        foreach (PicasaEntry entry in feed.Entries)
> >        {
> >            Console.WriteLine(entry.Title.Text);
> >            AlbumAccessor ac = new AlbumAccessor(entry);
> >            Console.WriteLine(ac.NumPhotos);
> >        }- Hide quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
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