Skip to content

Instantly share code, notes, and snippets.

@shiba-yu36
Created August 18, 2010 23:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shiba-yu36/536470 to your computer and use it in GitHub Desktop.
Save shiba-yu36/536470 to your computer and use it in GitHub Desktop.
use strict;
use warnings;
use OAuth::Lite;
use OAuth::Lite::Consumer;
my $ua = LWP::UserAgent->new;
my $request_url = 'http://gdd-2010-quiz-japan.appspot.com/oauth/5c2cac6d69ddbc14c5b30bcb';
my $consumer = OAuth::Lite::Consumer->new(
consumer_key => 'hogehoge',
consumer_secret => 'piyopiyo',
realm => 'devquiz',
);
my $res = $consumer->request(
method => 'POST',
url => $request_url,
params => {hello => 'world'},
);
use YAML;
warn YAML::Dump($res);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment