tag:blogger.com,1999:blog-62916203381814322452024-03-13T09:13:32.259-07:00Google APIs Perl Client Blogshigetahttp://www.blogger.com/profile/09215551887990736126noreply@blogger.comBlogger19125tag:blogger.com,1999:blog-6291620338181432245.post-85564943971219430432021-11-08T07:54:00.001-08:002021-11-08T07:55:37.405-08:00Bump version to 0.15<p>Hi, I uploaded version 0.15 to CPAN.</p>
<p>This version is included following pull requests.</p>
<ul style="text-align: left;">
<li><a href="https://github.com/comewalk/google-api-perl-client/pull/28" target="_blank">Update discovery template #28</a></li>
</ul>
<p>By <a href="https://github.com/comewalk/google-api-perl-client/pull/28" target="_blank">#28</a>,
discovery URL template was changed like below.</p>
<ul style="text-align: left;">
<li>0.14 or earlier: https://www.googleapis.com/discovery/v1/apis/{api}/{apiVersion}/rest</li>
<li>0.15: https://{api}.googleapis.com/$discovery/rest?version={apiVersion}</li>
</ul>
<p>This version will not be affected by this change.</p>
<p></p>
<p>If you have any questions or suggestions, please feel free let me know or <a href="https://github.com/comewalk/google-api-perl-client/issues" target="_blank">create an issue on GitHub</a>.</p>shigetahttp://www.blogger.com/profile/09215551887990736126noreply@blogger.com0tag:blogger.com,1999:blog-6291620338181432245.post-70238100903496125352014-10-18T03:42:00.000-07:002014-10-18T09:30:14.636-07:00Bump version to 0.14<p><b>Update</b><br/>: I'm implementing new version 0.15. Please wait for a while. Sorry for the inconvenience.</p><br />
<br />
<p>Hello, I merged following pull requests. Thank you for your contributions, <a href="https://github.com/razsh">razsh</a>, <a href="https://github.com/richieforeman">richieforeman</a> and <a href="https://github.com/ljanvier">ljanvier</a>.</p><br />
<ul><li><a href="https://github.com/comewalk/google-api-perl-client/pull/14">allow no redirect_uri to support cross-client exchange request #14</a></li>
<li><a href="https://github.com/comewalk/google-api-perl-client/pull/15">Add SignedJWT support and Reseller API sample to Perl Client Library. #15</a></li>
<li><a href="https://github.com/comewalk/google-api-perl-client/pull/16">calendar event deletion #16</a></li>
</ul><br />
<p>By #14, redirect_uri parameter is not required. It related to <a href="https://developers.google.com/accounts/docs/CrossClientAuth">Cross-client authorizetion</a>.</p><br />
<p>By #15, we can use Signed JWT. See also: <a href="https://developers.google.com/accounts/docs/OAuth2ServiceAccount">Using OAuth 2.0 for Server to Server Applications</a>.</p><br />
<p>#16 may be affected your application. Before this change, if an API returns 204 (No Content), execute method returned undef. After this change, execute method returns 1 in 204 response.</p><br />
<p>These updates will be uploaded CPAN soon.</p><br />
<p>If you have any questions or suggestions, please feel free let me know or <a href="https://github.com/comewalk/google-api-perl-client/issues">create an issue on GitHub</a>.</p><br />
<p>Thanks!</p>shigetahttp://www.blogger.com/profile/09215551887990736126noreply@blogger.com0tag:blogger.com,1999:blog-6291620338181432245.post-81639051353458878692013-11-26T08:21:00.001-08:002013-11-26T08:21:58.419-08:000.13 has been releasedHello, I uploaded Google::API::Client 0.13 to CPAN right now.<br />
<br />
I merged <a href="https://github.com/comewalk/google-api-perl-client/pull/12">pull request #12</a> from <a href="https://github.com/chylli">chylli</a>. Thank you for your contribution!<br />
<br />
So far, Google::API::OAuth2::Client supports parameters both approval_prompt and access_type. (see also: <a href="https://developers.google.com/accounts/docs/OAuth2WebServer">Using OAuth 2.o for Web Server Application</a>)<br />
<br />
If you have any suggestions or contributions, please feel free let me know or send pull requests.<br />
<br />
Thanks!shigetahttp://www.blogger.com/profile/09215551887990736126noreply@blogger.com0tag:blogger.com,1999:blog-6291620338181432245.post-88471684579999032912013-11-23T01:35:00.001-08:002013-11-23T01:35:40.501-08:00CPAN!Hello, I uploaded Google::API::Client to CPAN!<br />
<br />
<a href="http://search.cpan.org/dist/Google-API-Client/">http://search.cpan.org/dist/Google-API-Client/</a><br />
<br />
via cpanm<br />
<pre>cpanm Google::API::Client
</pre><br />
via Carton, you will write below in cpanfile<br />
<pre>requires 'Google::API::Client', 0.12;
</pre>or, you can try latest version like below.<br />
<pre>requires 'Google::API::Client';
</pre><br />
Currently, I am trying to write PhotoHunt application written in Perl like <a href="https://developers.google.com/+/photohunt/">here</a>.<br />
<br />
Then, probably I will update Google::API::Client more convenient for you. Stay tuned!<br />
<br />
Thanks!shigetahttp://www.blogger.com/profile/09215551887990736126noreply@blogger.com0tag:blogger.com,1999:blog-6291620338181432245.post-71939461349186012862013-11-09T02:11:00.000-08:002013-11-09T02:12:49.386-08:00Google::API::Client 0.10 has been releasedHello,<br />
<br />
I've just updated Google::API::Client to 0.10. <br />
<br />
Tagged at GitHub: <a href="https://github.com/comewalk/google-api-perl-client/releases/tag/0.10">https://github.com/comewalk/google-api-perl-client/releases/tag/0.10</a><br />
<br />
Although I announced in <a href="http://google-api-perl-client.blogspot.jp/2013/11/preparing-upload-to-cpan.html">previous post</a>, I renamed OAuth2 module from OAuth2::Client to Google::API::OAuth2::Client.<br />
If you are using this module, and if you will update your environment, please change your code.<br />
Thank you for your patience.<br />
<br />
And I uploaded 0.10 to CPAN! (Currently the module is not available)<br />
<br />
I will let you know Google::API::Client is available on CPAN.<br />
<br />
Thanks!shigetahttp://www.blogger.com/profile/09215551887990736126noreply@blogger.com0tag:blogger.com,1999:blog-6291620338181432245.post-32672799374722643102013-11-06T09:00:00.002-08:002013-11-06T09:00:42.284-08:00Preparing upload to CPANHello,<br />
<br />
I received the request several times, upload this module to CPAN. In these day, in Perl world, cpanm and Carton are useful tools for installing modules. And these tools use CPAN. I think it's time to upload this module to CPAN.<br />
<br />
I filed an issue on GitHub below.<br />
https://github.com/comewalk/google-api-perl-client/issues/8<br />
<br />
Also, it includes important changes. My module has OAuth2::Client. But I think it's not good namespace for CPAN world. I should rename the module to Google::API::OAuth2::Client. I filed it at #9.<br />
https://github.com/comewalk/google-api-perl-client/issues/9<br />
<br />
Both of them will be solved soon.<br />
<br />
I will let you know after fixing them and uploading to CPAN here and mailing list.<br />
<br />
Thanks!shigetahttp://www.blogger.com/profile/09215551887990736126noreply@blogger.com0tag:blogger.com,1999:blog-6291620338181432245.post-32564297881501727122012-08-03T07:46:00.001-07:002012-08-03T07:46:29.896-07:00Updated to 0.07<p>Unfortunatelly, this module didn't work update methods, POST / PUT / PATCH / DELETE. So far, it works well :)</p><br />
<p>You can see a sample like below.</p><pre>$ git clone https://github.com/comewalk/google-api-perl-client.git
$ cd google-api-perl-client
$ cat eg/calendar/events.pl
# QuickAdd
say '=== QuickAdd ===';
my $quickadded_event = $service->events->quickAdd(
calendarId => $calendar_id,
text => 'Appointment at Somewhere on June 3rd 10am-10:25am',
)->execute({ auth_driver => $auth_driver });
say $quickadded_event->{id};
# Recurring events
say '=== Make recurring events via patch ===';
$service->events->patch(
calendarId => $dest_calendar_id,
eventId => $quickadded_event->{id},
body => {
start => {
timeZone => 'Asia/Tokyo',
},
end => {
timeZone => 'Asia/Tokyo',
},
recurrence => [
'RRULE:FREQ=WEEKLY;UNTIL=20120831T100000Z',
],
}
)->execute({ auth_driver => $auth_driver });
say $quickadded_event->{updated};
</pre><br />
<p>Enjoy!</p>shigetahttp://www.blogger.com/profile/09215551887990736126noreply@blogger.com0tag:blogger.com,1999:blog-6291620338181432245.post-22224069752525680552012-07-31T09:47:00.001-07:002012-07-31T09:51:22.036-07:00Updated to 0.06<p>I fixed <a href="https://github.com/comewalk/google-api-perl-client/pull/5">the issue #5</a> which reported by <a href="https://github.com/uehatsu">uehatsu</a>. (Thank you!) Then I updated version to 0.06.</p><br />
<p>And I added <a href="https://github.com/comewalk/google-api-perl-client/tree/master/eg/calendar">a few calendar API samples</a>.</p><br />
<p>You can run like below.</p><pre>$ git clone https://github.com/comewalk/google-api-perl-client.git
$ cd google-api-perl-client
$ perl -I lib eg/calendar/calendarlist.pl
</pre><br />
<p>Enjoy!</p>shigetahttp://www.blogger.com/profile/09215551887990736126noreply@blogger.com3tag:blogger.com,1999:blog-6291620338181432245.post-46048044760661558652012-02-13T08:50:00.000-08:002012-02-13T08:50:50.374-08:00Updated to 0.05Hi folks,<br />
<br />
I was working hard in these months. How are you?<br />
<br />
<a href="https://github.com/uechoco">uechoco</a> and <a href="https://github.com/gnustavo">gnustavo</a> sent pull requests on <a href="https://github.com/comewalk/google-api-perl-client">github</a>.<br />
Then I applied them, and updated to 0.05.<br />
<br />
uechoco, gnustavo, thank you for your contributions!<br />
<br />
If you have any contributions, I welcome patches from you :)<br />
<br />
Thanks!shigetahttp://www.blogger.com/profile/09215551887990736126noreply@blogger.com3tag:blogger.com,1999:blog-6291620338181432245.post-56666427578245186872011-12-02T05:39:00.001-08:002011-12-02T06:00:13.632-08:00Fwd: Checking Google APIs Discovery ServiceI'm too late here. I'm a little busy in these days. In the near future, I'll build a <a href="http://code.google.com/apis/calendar/">Calendar API v3</a> sample. And I'll try to brush up this module as more useful.<br />
<br />
I posted an entry on my blog. I just quoted that whole paragraph into this blog.<br />
<br />
<blockquote><pre><code>
$ cp $services.txt $services_yesterday.txt
$ curl -s https://www.googleapis.com/discovery/v1/apis?fields=items/id | grep id > services.txt
$ cat services.txt
"id": "adsense:v1"
"id": "analytics:v2.4"
"id": "analytics:v3"
"id": "audit:v1"
"id": "blogger:v2"
"id": "books:v1"
"id": "calendar:v3"
"id": "customsearch:v1"
"id": "discovery:v1"
"id": "freebase:v1-sandbox"
"id": "freebase:v1"
"id": "groupssettings:v1"
"id": "latitude:v1"
"id": "moderator:v1"
"id": "orkut:v2"
"id": "pagespeedonline:v1"
"id": "plus:v1"
"id": "prediction:v1.2"
"id": "prediction:v1.3"
"id": "prediction:v1.4"
"id": "shopping:v1"
"id": "siteVerification:v1"
"id": "taskqueue:v1beta1"
"id": "tasks:v1"
"id": "translate:v2"
"id": "urlshortener:v1"
"id": "webfonts:v1"
$ diff -bu $services_yesterday.txt $services.txt
</code></pre><br />
<p>I'm checking this everyday. I can find that Google add or remove APIs. You know how to use API Discovery resource like this :)</p></blockquote><br />
<p><small>via <a href="http://blog.comewalk.com/2011/12/checking-google-apis-discovery-service.html">blog.comewalk.com</a></small></p>shigetahttp://www.blogger.com/profile/09215551887990736126noreply@blogger.com0tag:blogger.com,1999:blog-6291620338181432245.post-41533587366037276622011-10-26T10:08:00.000-07:002011-10-26T10:08:45.291-07:00Added AdSense Management API sample<p>I just added <a href="https://code.google.com/apis/adsense/management/">AdSense Management API</a> sample in <a href="https://github.com/comewalk/google-api-perl-client">github</a></p><br />
<a href="https://github.com/comewalk/google-api-perl-client/blob/master/eg/adsense/">https://github.com/comewalk/google-api-perl-client/blob/master/eg/adsense</a><br />
<br />
<p>This sample is inspired by <a href="https://groups.google.com/d/topic/google-api-python-client/uTwk1_uYSL0/discussion">a thread in google-api-python-client group</a>. Thanks!</p><br />
<br />
<p>So, you can try the sample like below.</p><pre> $ git clone git://github.com/comewalk/google-api-perl-client.git
$ cd google-api-perl-client.git
# Edit Client ID and Client Secret in client_secrets.json
$ vim eg/adsense/client_secrets.json
$ ls eg/adsense/*.pl | xargs -n 1 perl -I lib
</pre><br />
<p>Then you will see like this.</p><pre>Ad client for product xxxx with ID aaa-bbb-1234567890 was found
Supports reporting: true and 'Yes' or 'No'
Done
Wide character in print at eg/adsense/adunits_list.pl line 39.
Ad unit with code NNNNNNNNNN, name 300x250, 作成済み 10/06/07 and status INACTIVE was found
Done
Custom channel with code NNNNNNNNN and name http://www.s14u.info/mt/ was found
Done
== aaa-bbb-1234567890 ==
DATE PAGE_VIEWS AD_REQUESTS AD_REQUESTS_COVERAGE CLICKS AD_REQUESTS_CTR COST_PER_CLICK AD_REQUESTS_RPM EARNINGS
2011-01-24 1 1 1 0 0 N/A 0 0
2011-01-29 1 1 1 0 0 N/A 0 0
2011-03-31 2 2 1 0 0 N/A 0 0
2011-06-07 1 1 1 0 0 N/A 0 0
2011-06-09 1 1 1 0 0 N/A 0 0
2011-07-12 2 2 1 0 0 N/A 0 0
2011-08-04 18 18 1 0 0 N/A 0 0
2011-08-28 10 10 1 0 0 N/A 0 0
2011-08-29 11 11 1 0 0 N/A 0 0
2011-08-30 4 4 1 0 0 N/A 0 0
2011-09-08 1 1 1 0 0 N/A 0 0
2011-09-16 3 3 1 0 0 N/A 0 0
2011-09-26 2 2 1 0 0 N/A 0 0
Done
URL channel with URL pattern comewalk.example.com was found
Done
</pre><br />
<p>Also, I updated <a href="http://code.google.com/p/google-api-perl-client/wiki/Samples">sample wiki page</a>.</p><br />
<p>Enjoy!</p>shigetahttp://www.blogger.com/profile/09215551887990736126noreply@blogger.com0tag:blogger.com,1999:blog-6291620338181432245.post-58051346393954276012011-10-23T08:13:00.000-07:002013-11-09T02:02:38.187-08:00Support client_secrets.json file format<p>Joe Gregorio mentioned google-api-python-client has supported ClientSecrets at <a href="https://plus.google.com/u/0/118148240205592032989/posts/LzYfZfk6Z9i">his Google+</a>.</p><br />
<p>Then google-api-perl-client has supported the format.</p><br />
<p>Please see following sample.<br />
<br />
<a href="https://github.com/comewalk/google-api-perl-client/blob/master/eg/plus/plus_with_clientsecrets.pl">https://github.com/comewalk/google-api-perl-client/blob/master/eg/plus/plus_with_clientsecrets.pl</a></p><br />
<pre>my $client = Google::API::Client->new;
my $service = $client->build('plus', 'v1');<a href="http://code.google.com/p/google-api-python-client/wiki/ClientSecretsSupport"></a>
my $file = "$FindBin::Bin/client_secrets.json";
my $auth_driver = Google::API::OAuth2::Client->new_from_client_secrets($file, $service->{auth_doc});
</pre><br />
<br />
<p>See Also:</p><dl><dt>The file format is (loosely) defined here:</dt>
<dd><a href="http://code.google.com/p/google-api-python-client/wiki/ClientSecrets">http://code.google.com/p/google-api-python-client/wiki/ClientSecrets</a></dd>
<dt>The oauth2client/google-api-python-client support is explained here:</dt>
<dd><a href="http://code.google.com/p/google-api-python-client/wiki/ClientSecretsSupport">http://code.google.com/p/google-api-python-client/wiki/ClientSecretsSupport</a></dd> </dl><br />
<p>Thank you for your waiting for a while. I was a little bit busy in these days for <a href="http://yapcasia.org/2011/">YAPC::Asia Tokyo 2011</a>, <a href="http://www.google.com/events/developerday/2011/tokyo/">Google Developer Day 2011 Tokyo</a> and so on.</p><br />
<p>Enjoy!</p>shigetahttp://www.blogger.com/profile/09215551887990736126noreply@blogger.com0tag:blogger.com,1999:blog-6291620338181432245.post-75381155819804518862011-10-04T20:32:00.000-07:002011-10-04T21:07:33.150-07:00Search Is Available In Google+ API<p>Google <a href="http://googleplusplatform.blogspot.com/2011/10/google-apis-now-with-search-and-more.html">announced</a> that Google+ API has search method.</p>
<br />
<p>Okay, <a href="https://github.com/comewalk/google-api-perl-client/">Google APIs Perl Client</a> can call search API. I don't need to change any code. It's great point of <a href="http://code.google.com/apis/discovery/">Google APIs Discovery Service</a>. Then I can use search method. So I created a command-line sample. </p>
<p>I created two types. The one is with OAuth2, other is with Simple API Access.</p>
<br />
<h4><b>With OAuth2</b></h4>
<p>You can see <a href="https://github.com/comewalk/google-api-perl-client/blob/master/eg/plus/search.pl">the script at github</a>.</p>
<p>Try like below</p>
<pre>
$ git clone git://github.com/comewalk/google-api-perl-client.git
$ cd google-api-perl-client
$ vim eg/plus/search.pl
</pre>
<p>You need to edit <YOUR CLIENT ID> and <YOUR CLIENT SECRET>. Your CLIENT ID and CLIENT SECRET is at <a href="https://code.google.com/apis/console/">API Console</a>.</p>
<p>Okay, let's run the script</p>
<pre>
$ perl -I lib eg/plus/search.pl
Go to the following link in your browser:
https://accounts.google.com/o/oauth2/auth?client_id=<i><b><YOUR CLIENT ID></b></i>&redirect_uri=urn:ietf:wg:oauth:2.0:oob&response_type=code&scope=https://www.googleapis.com/auth/plus.me
Enter verification code:
</pre>
<p>The script requires verification code. Please copy and paste the link from your console to your browser. Then your browser shows confirm page. </p>
<div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjHbFuD69MKE13XCkOa6eXsXrbFMhonGiN0Ke0I-UH-0ceP5CxFmxxggvXQQ4yBgvOJMMEhacglUY6TePkoS2_hI30ZLcf-MOySeUGX8lzfs6IjpfxpgCrjX2ZLnRUIBPsOH0s9WuOhJLQ/s1600/requesting_permission.png" imageanchor="1" style=""><img border="0" height="127" width="200" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjHbFuD69MKE13XCkOa6eXsXrbFMhonGiN0Ke0I-UH-0ceP5CxFmxxggvXQQ4yBgvOJMMEhacglUY6TePkoS2_hI30ZLcf-MOySeUGX8lzfs6IjpfxpgCrjX2ZLnRUIBPsOH0s9WuOhJLQ/s200/requesting_permission.png" /></a></div>
<p>If you allow the access, you can get the code. Please paste the verification code to your console, then push return key.</p>
<p>You should see a result on your console like below.</p>
<pre>
$VAR1 = {
'items' => [
{
'displayName' => 'Vic Gundotra'
},
{
'displayName' => 'Vic Ted'
},
{
'displayName' => 'Mark Lastiwka'
},
{
'displayName' => 'shreekrishna kc'
}
]
};
$VAR1 = {
'items' => [
{
'object' => {
'content' => 'Quirky and delicious recipes illustrated by artists from around the world? Yes, please!'
}
},
{
'object' => {
'content' => 'I am finally putting together a holiday cookie e-book. It will have plenty of great ideas, recipes, and pictures. Hoping to have it available on both kindle and as an ebook next week.'
}
},
{
'object' => {
'content' => 'I love this gorgeous fall weather! I'm gonna light my new gingerbread cookie candle and do some baking. I bought 3 pumpkins yesterday for some great fall recipes!'
}
},
{
'object' => {
'content' => 'Yesterday's Vegan MoFo post - Three Applelicious recipes: Apple Fritters, Apple Crisp, and an Apple Pie Hummus: <a href="http://blog.prairievegan.com/2011/10/mofoer-monday-appleicious-recipes-from.html" >http://blog.prairievegan.com/2011/10/mofoer-monday-appleicious-recipes-from.html</a>'
}
},
{
'object' => {
'content' => 'Came home from work with crushing headache. Slept for an hour and a half, and then made-- two (2) burgers for dinner, followed by lots (many) of Black Forest Chocolate Cookies. Am feeling much better now.'
}
},
{
'object' => {
'content' => 'Saw this all over the net and couldn't find the original post till now ...'
}
},
{
'object' => {
'content' => 'These look delicious. I might even be able to make them!'
}
},
{
'object' => {
'content' => 'An ultimate collection of cookies recipe now available on iPhone and iPad <a href="http://goo.gl/mi2YP" >http://goo.gl/mi2YP</a>'
}
},
{
'object' => {
'content' => 'REALLY?'
}
}
]
};
</pre>
<br />
<h4><b>With Simple API Access</b></h4>
<p>Also I create <a href="https://github.com/comewalk/google-api-perl-client/blob/master/eg/plus/search_simple.pl">a sample</a>.</p>
<p>Try like below</p>
<pre>
$ git clone git://github.com/comewalk/google-api-perl-client.git
$ cd google-api-perl-client
$ vim eg/plus/search_simple.pl
</pre>
<p>You need to edit <YOUR SIMPLE API ACCESS KEY> instead your Simple API Access key. Your key is at <a href="https://code.google.com/apis/console/">API console</a>, too.</p>
<pre>
$ perl -I lib eg/plus/search_simple.pl
</pre>
<p>You don't need to get verification code. Yeah, it's simple. You will see same results as with OAuth2.</p>
<br />
<h4><b>Conclusion</b></h4>
<p>I didn't need to change any code in Google APIs Perl Client. Google APIs Discovery Service is awesome. (Or my code is awesome ;p) </p>
<p>These samples are using fields parameter. First result is from people.search method with fields="items/displayName". You can see displayName only. Seconde result is from activity.search method with fields="items/object/content". Fields parameter allows us to get only what you want.</p>
<p>I showed you how to use search method in Google+ API as a command-line script. If you want PSGI application, please feel free let me know at comment.</p>
<p>Enjoy!</p>shigetahttp://www.blogger.com/profile/09215551887990736126noreply@blogger.com1tag:blogger.com,1999:blog-6291620338181432245.post-67102110968924473372011-09-28T10:02:00.000-07:002011-09-28T10:04:15.286-07:00Google+ Perl Starter<p>Google+ has a page which listed some languages libraries.</p>
<a href="http://developers.google.com/+/downloads">Downloads</a>
<p>So, I created Google+ Perl Starter like other libraries.</p>
<a href="http://code.google.com/p/google-plus-perl-starter/">http://code.google.com/p/google-plus-perl-starter/</a>
<p>The starter has two samples both PSGI application and command-line script.</p>
<p>If you're trying to implement your application written in Perl, please see the starter.</p>
<p>Enjoy!</p>shigetahttp://www.blogger.com/profile/09215551887990736126noreply@blogger.com0tag:blogger.com,1999:blog-6291620338181432245.post-79219839101595927902011-09-27T09:54:00.000-07:002011-09-28T02:07:33.900-07:00Added Blogger API Sample<p><b>Updated Wed Sep 28 01:52:22 PDT 2011</b>. 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 <a href="https://code.google.com/apis/console/">console</a>.</p>
<br />
<p>I added Blogger API sample on github. The sample shows blog object, post ids and URL for this blog.</p>
<a href="https://github.com/comewalk/google-api-perl-client/blob/master/eg/blogger/cli_public_access.pl">https://github.com/comewalk/google-api-perl-client/blob/master/eg/blogger/cli_public_access.pl</a>
<p>You can try the sample like below.</p>
<pre>
# 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
</pre>
<p>Also, I updated <a href="http://code.google.com/p/google-api-perl-client/wiki/Samples">sample wiki page</a>.</p>
<p>Enjoy!</p>shigetahttp://www.blogger.com/profile/09215551887990736126noreply@blogger.com0tag:blogger.com,1999:blog-6291620338181432245.post-27348416771811093382011-09-26T20:53:00.000-07:002011-09-26T20:53:37.761-07:00Added WebFonts API Sample<p>I added WebFonts API sample on github. The sample is listing available font families.</p>
<a href="https://github.com/comewalk/google-api-perl-client/blob/master/eg/webfonts/cli_public_access.pl">https://github.com/comewalk/google-api-perl-client/blob/master/eg/webfonts/cli_public_access.pl</a>
<p>You can try the sample like below.</p>
<pre>
# 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
</pre>
<p>Also, I updated <a href="http://code.google.com/p/google-api-perl-client/wiki/Samples">sample wiki page</a>.</p>
<p>Enjoy!</p>shigetahttp://www.blogger.com/profile/09215551887990736126noreply@blogger.com0tag:blogger.com,1999:blog-6291620338181432245.post-88713580948626462252011-09-26T11:27:00.000-07:002011-09-26T11:27:09.911-07:00Added Analytics API Sample<p>I added Analytics API sample on github. The sample is calling management.accounts.list API.</p>
<a href="https://github.com/comewalk/google-api-perl-client/blob/master/eg/analytics/cli_private_access.pl">https://github.com/comewalk/google-api-perl-client/blob/master/eg/analytics/cli_private_access.pl</a>
<p>You can try the sample like below.</p>
<pre>
# Edit Client ID and Client Secret
$ vim eg/analytics/cli_private_access.pl
$ perl -I lib eg/analytics/cli_private_access.pl
</pre>
<p>Also, I updated <a href="http://code.google.com/p/google-api-perl-client/wiki/Samples">sample wiki page</a>.</p>
<p>Oops, I forgot to mention changes.</p>
<ul>
<li>Implemented nested resource.<br />For example, Analytics API Discovery Resource Document has nested resource section like below.
<pre>
"resources": {
"management": {
"resources": {
"accounts": {
"methods": {
"list": {
</pre>
Then this module supported nested resource for now :)
</li>
</ul>
<p>Thanks!</p>shigetahttp://www.blogger.com/profile/09215551887990736126noreply@blogger.com0tag:blogger.com,1999:blog-6291620338181432245.post-63272296275532174002011-09-22T10:39:00.000-07:002011-09-22T11:02:34.014-07:00Just Released!<p>Hello Perl mongers,</p>
<p>I'm happy to say this. I just pushed Google API Perl Client to github right now.</p>
<p><a href="https://github.com/comewalk/google-api-perl-client/">https://github.com/comewalk/google-api-perl-client/</a></p>
<p>If you try this module, you can run like below.</p>
<pre>
$ 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
</pre>
<p>Also, I put psgi app.</p>
<pre>
$ plackup eg/urlshortener/sample.psgi
</pre>
<p>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 <a href="https://code.google.com/apis/console/">Google APIs Console</a>. Please replace "<YOUR CLIENT ID>" and "<YOUR CLIENT SECRET>" to your ones.</p>
<p>Samples list is following page at Google Project Hosting. I'll add more API samples later.</p>
<p><a href="http://code.google.com/p/google-api-perl-client/wiki/Samples">http://code.google.com/p/google-api-perl-client/wiki/Samples</a></p>
<p>Also, this module is using Google Project Hosting. The URL is below.</p>
<p><a href="http://code.google.com/p/google-api-perl-client/">http://code.google.com/p/google-api-perl-client/</a></p>
<p>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.</p>
<p>If you have any questions or suggestions, please feel free let me know at <a href="https://groups.google.com/forum/#!forum/google-api-perl-client">Google Groups google-api-perl-client</a>.</p>
<p>Enjoy!</p>
shigetahttp://www.blogger.com/profile/09215551887990736126noreply@blogger.com0tag:blogger.com,1999:blog-6291620338181432245.post-62661540569019523782011-09-16T23:15:00.001-07:002011-09-16T23:15:59.573-07:00Welcome<a href="http://code.google.com/p/google-api-perl-client">Google API Perl Client</a>shigetahttp://www.blogger.com/profile/09215551887990736126noreply@blogger.com0