javaee-esprit / google-api-java-client

Automatically exported from code.google.com/p/google-api-java-client
0 stars 0 forks source link

Why a max of 3 results? #817

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Regarding the sample picasaweb client 
http://samples.google-api-java-client.googlecode.com/hg/picasa-cmdline-sample/in
structions.html?r=default

I succeeded in running but only saw a few albums out of many.

The number of albums is limited to 3 in this piece of code in PicasaClient.java:
 public UserFeed executeGetUserFeed(PicasaUrl url) throws IOException {
    url.kinds = "album";
    url.maxResults = 3;
    return executeGet(url, UserFeed.class);
  }

Just wondering WHY? Took me a while to realize that the code caused the limit, 
not the runtime environment.

Installed todays version, assume it is v1.15.0-rc (July 19, 2013).
Using Eclipse (todays version, think it is 4.3)

Original issue reported on code.google.com by ketil.da...@gmail.com on 19 Jul 2013 at 3:30

GoogleCodeExporter commented 9 years ago
This is just sample code. It's for demonstration purposes only. You can feel 
free to change the code in PicasaClient.java. We encourage developers to make 
changes to the code to learn how the different components work. 

The instructions for the sample contain the following:

cd google-api-java-client-samples/shared/gdata/shared-sample-gdata
mvn source:jar install
cd ../shared-sample-picasa
mvn source:jar install

Instead, after you cd into the "shared-sample-picasa" directory, you can first 
edit PicasaClient.java. 

<editor> src/main/java/com/google/api/services/picasa/PicasaClient.java

Once you've made your desired changes, continue with the instructions as normal.

mvn source:jar install

Original comment by ngmic...@google.com on 19 Jul 2013 at 3:58