Monday, September 26, 2011

Added Analytics API Sample

I added Analytics API sample on github. The sample is calling management.accounts.list API.

https://github.com/comewalk/google-api-perl-client/blob/master/eg/analytics/cli_private_access.pl

You can try the sample like below.

 # Edit Client ID and Client Secret
 $ vim eg/analytics/cli_private_access.pl
 $ perl -I lib eg/analytics/cli_private_access.pl

Also, I updated sample wiki page.

Oops, I forgot to mention changes.

  • Implemented nested resource.
    For example, Analytics API Discovery Resource Document has nested resource section like below.
     "resources": {
      "management": {
       "resources": {
        "accounts": {
         "methods": {
          "list": {
    
    Then this module supported nested resource for now :)

Thanks!

No comments:

Post a Comment