Please help me  ! 

  i move my project use oauth 2 !

 i have accesstoken and refreshtoken ! 

 this is my code 

    var p_parameters = new Google.GData.Client.OAuth2Parameters();
              string CLIENT_ID = 
"7lokaoo0p7jo98nocarj1t4k2kvffu64.apps.googleusercontent.com";
              string CLIENT_SECRET = "fbxez3qxOMvZ4Euk";
              string SCOPE = "https://picasaweb.google.com/data/ 
https://spreadsheets.google.com/feeds/";;
              //string REDIRECT_URI = "urn:ietf:wg:oauth:2.0:oob";
              string REDIRECT_URI = 
"http://localhost:16189/onb.vn/google/default.aspx";; <<<< localhost
 
              p_parameters.ClientId = CLIENT_ID;
              p_parameters.ClientSecret = CLIENT_SECRET;
              p_parameters.RedirectUri = REDIRECT_URI;
              p_parameters.Scope = SCOPE;
              p_parameters.TokenType = "refresh";
              p_parameters.AccessType = "offline";

              p_parameters.AccessToken = 
"4/D-kWN2aa6S-KyamLe_IJMfXd918aalPLzT-YCBU.Iv4R-gCjfYAagrKXntQAax3OyppLmwI";
              p_parameters.RefreshToken = 
"1/6KCXYnrcewnKJOSGUAX3vVcsvALpPa4O5-II";
        
              var requestFactory = new 
Google.GData.Client.GOAuth2RequestFactory("test", "Test", p_parameters);

  if i use code to get list file is ok
  
  SpreadsheetsService myService = new SpreadsheetsService("You App Name"); 
//create your old service
              myService.RequestFactory = requestFactory;

              Google.GData.Spreadsheets.SpreadsheetQuery query = new 
Google.GData.Spreadsheets.SpreadsheetQuery();
              SpreadsheetFeed feed = myService.Query(query);

              // Iterate through all of the spreadsheets returned
              string a = "";
              foreach (SpreadsheetEntry entry in feed.Entries)
              {
                  // Print the title of this spreadsheet to the screen
                  a = a + entry.Title.Text;
              }
              lt_text.Text = a;  >> print list file


 now i usde to list all album but alway return 403

PicasaService service = new PicasaService("My app");//Name of Your 
Application name.any thing you can give
service.RequestFactory = requestFactory;
AlbumQuery query = new AlbumQuery(PicasaQuery.CreatePicasaUri("default"));
PicasaFeed feed = service.Query(query); <<<<<<<<<< error 403

  please help me ! i try a lot but can;t solved ! 

   

  
         

-- 
You received this message because you are subscribed to the Google Groups 
"Google Picasa Web Albums API" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-picasa-data-api.
For more options, visit https://groups.google.com/d/optout.

Reply via email to