OAuth::Lite::Consumer をつかったアプリケーションのデバッグについて
use OAuth::Lite::Consumer;
use Log::Minimal;
my $client = OAuth::Lite::Consumer->new(...);
my $res = $client->obtain_access_token(...);
if ($res) {
# success
...
} else {
warnf("%s, %s", $client->errstr, $client->oauth_response->decoded_content);
}
という風にすると、まともなエラーメッセージをえられることでしょう。
Published: 2011-01-31(Mon) 07:48