Hi again, After updating the gdata-core-1.0 library, I started having exceptions (noMethodFoundException)...
Did a couple of searches and discovered that I had to update the Guava library. Just get the latest release from below: *https://code.google.com/p/guava-libraries/* Also, remember to remove the google-collections-1.0.jar lib from your project/app. It seems to be outdated anyway! :) Have fun, Gizmo On Monday, June 1, 2015 at 7:02:10 PM UTC+2, [email protected] wrote: > > Hi guys! > > I have found the updated gdata-core-1.0.jar library which contains the > setOauth2Credentials() method that some of us might be looking for!:) > > Here it is: > > http://mvnrepository.com/artifact/com.google.gdata/core/1.47.1 > > Just rename the downloaded file into: gdata-core-1.0.jar > > For some reason, there are other libraries which reference this particular > filename... > > Have fun! :) > > As soon as I get my code working, I will post for everyone to use! :) > > Cheers, > Gizmo > > Em segunda-feira, 1 de junho de 2015 08:18:01 UTC+2, Yuval Avni escreveu: >> >> can someone send a link to the new gdata-core-1.0.jar ? >> >> can someone share a working example with Picasa and OAuth 2? >> >> i used the following in java to get album list: >> PicasawebService myService = new PicasawebService("MY_APP"); >> ... >> myService.setUserCredentials(username, password); >> URL feedUrl = new URL("https://picasaweb.google.com/data/feed/api/user/" >> + usernameshort+ "?kind=album"); >> UserFeed myUserFeed = myService.getFeed(feedUrl, UserFeed.class); >> int pages = myUserFeed.getTotalResults()/1000 ; >> >> for (int i=1;i<=(pages+1);i++){ >> String urlStr = "https://picasaweb.google.com/data/feed/api/user/" + >> usernameshort+ "?kind=album&start-index="+(((i*1000)+1)-1000); >> feedUrl = new URL(urlStr); >> myUserFeed = myService.getFeed(feedUrl, UserFeed.class); >> >> for (AlbumEntry myAlbum : myUserFeed.getAlbumEntries()) { >> String AlbumDescription = myAlbum.getDescription().getPlainText(); >> // DO SOMETHING >> } >> } >> >> >> >> now this code doesn't work anymore. >> >> Thanks. >> >> On Friday, September 12, 2014 at 6:36:07 PM UTC+3, Bmeist wrote: >>> >>> I am trying to follow the instructions here: >>> https://developers.google.com/accounts/docs/OAuth2ServiceAccount so I >>> can get my application to access my private photos. When I go to the >>> google developer console (https://console.developers.google.com/), I do >>> not see Picasa listed as an API. So that had my questioning whether I was >>> on the right track or not. >>> >>> Can someone please verify that I am on the right track using >>> https://developers.google.com/accounts/docs/OAuth2ServiceAccount ? >>> >>> Thanks! >>> >> -- 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.
