Wednesday, September 28, 2011

Google+ Perl Starter

Google+ has a page which listed some languages libraries.

Downloads

So, I created Google+ Perl Starter like other libraries.

http://code.google.com/p/google-plus-perl-starter/

The starter has two samples both PSGI application and command-line script.

If you're trying to implement your application written in Perl, please see the starter.

Enjoy!

Tuesday, September 27, 2011

Added Blogger API Sample

Updated Wed Sep 28 01:52:22 PDT 2011. Oops, I forgot a notice for everyone. You may need to request your quota for Blogger JSON API via Google APIs Console. Please check your console.


I added Blogger API sample on github. The sample shows blog object, post ids and URL for this blog.

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

You can try the sample like below.

 # Edit Simple API Access Key instead <YOUR API KEY>
 $ vim eg/blogger/cli_public_access.pl
 $ perl -I lib eg/blogger/cli_public_access.pl

Also, I updated sample wiki page.

Enjoy!

Monday, September 26, 2011

Added WebFonts API Sample

I added WebFonts API sample on github. The sample is listing available font families.

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

You can try the sample like below.

 # Edit Simple API Access Key instead <YOUR API KEY>
 $ vim eg/webfonts/cli_public_access.pl
 $ perl -I lib eg/webfonts/cli_public_access.pl

Also, I updated sample wiki page.

Enjoy!

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!

Thursday, September 22, 2011

Just Released!

Hello Perl mongers,

I'm happy to say this. I just pushed Google API Perl Client to github right now.

https://github.com/comewalk/google-api-perl-client/

If you try this module, you can run like below.

 $ git clone git://github.com/comewalk/google-api-perl-client.git
 $ cd google-api-perl-client
 $ perl -I lib eg/urlshortener/cli_public_access.pl

Also, I put psgi app.

 $ plackup eg/urlshortener/sample.psgi

If you embed this module in your application, you may need both Client ID and Client secret for private access. You can get Client ID and Client secret at Google APIs Console. Please replace "<YOUR CLIENT ID>" and "<YOUR CLIENT SECRET>" to your ones.

Samples list is following page at Google Project Hosting. I'll add more API samples later.

http://code.google.com/p/google-api-perl-client/wiki/Samples

Also, this module is using Google Project Hosting. The URL is below.

http://code.google.com/p/google-api-perl-client/

I'll update this blog for announcements of Google API Perl Client. If you're interested in this module, please add this blog to your feed reader.

If you have any questions or suggestions, please feel free let me know at Google Groups google-api-perl-client.

Enjoy!