Subject: | subscription/edit failure |
Dear all,
I've faced to one problem.
It seems to be related to subscription/edit APIs.
googlereader_test.pl is a demonstration code,
for checking the problem.
Sincerely yours,
$ perl -v
This is perl, v5.10.0 built for i486-linux-gnu-thread-multi
Copyright 1987-2007, Larry Wall
Perl may be copied only under the terms of either the Artistic License
or the
GNU General Public License, which may be found in the Perl 5 source kit.
Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl". If you have access to the
Internet, point your browser at http://www.perl.org/, the Perl Home Page.
$ uname -a
Linux cuwefx 2.6.26-2-686 #1 SMP Mon Jun 21 05:58:44 UTC 2010 i686 GNU/Linux
$ cat googlereader_test.pl
#!/usr/bin/perl
use strict;
use warnings;
use WebService::Google::Reader;
my $reader = WebService::Google::Reader->new(
username => '*******',
password => '*******',
);
my @feeds = $reader->feeds;
foreach my $feed (@feeds) {
$reader->edit_feed($feed, tag => 'unsubscribe');
print $reader->error;
}
$ perl googlereader_test.pl
400 Bad Request - <html><head><title>400 Client Error</title>
<style type="text/css">
body {font-family: arial,sans-serif}
div.nav {margin-top: 1ex}
div.nav A {font-size: 10pt; font-family: arial,sans-serif}
span.nav {font-size: 10pt; font-family: arial,sans-serif;
font-weight: bold}
div.nav A,span.big {font-size: 12pt; color: #0000cc}
div.nav A {font-size: 10pt; color: black}
A.l:link {color: #6f6f6f}
</style></head>
<body text="#000000" bgcolor="#ffffff"><table border="0" cellpadding="2"
cellspacing="0" width="100%"></table>
<table><tr><td rowspan="3" width="1%"><b><font face="times"
color="#0039b6" size="10">G</font><font face="times" color="#c41200"
size="10">o</font><font face="times" color="#f3c518"
size="10">o</font><font face="times" color="#0039b6"
size="10">g</font><font face="times" color="#30a72f"
size="10">l</font><font face="times" color="#c41200"
size="10">e</font> </b></td>
<td> </td></tr>
<tr><td bgcolor="#3366cc"><font face="arial,sans-serif"
color="#ffffff"><b>Error</b></font></td></tr>
<tr><td> </td></tr></table>
<blockquote><h1>Client Error</h1>
There was an error in your request.
<p></p></blockquote>
<table width="100%" cellpadding="0" cellspacing="0"><tr><td
bgcolor="#3366cc"><img alt="" width="1"
height="4"></td></tr></table></body></html>
......