Pithub::Request - Github v3 request object
version 0.01003
The request data. It will be JSON encoded later and set in the HTTP::Request body.
The HTTP::Request object.
The HTTP method (GET, POST, PUT, DELETE, ...).
OAuth access token. If this is set, the authentication header is added to the "http_request" object.
The LWP user agent. This is set from Pithub or any other module you are using. So you can exchange it by another module which implements the LWP::UserAgent interface.
$p = Pithub->new( ua => WWW::Mechanize->new ); $u = Pithub::Users->new( ua => WWW::Mechanize->new );
Of course you can set various options on the user agent object before you hand it over to the constructor, e.g. proxy settings.
An URI object containing everything necessary to make that particular API call, besides the body (see "data" for that).
Send the HTTP request. It's just a oneliner actually:
$self->ua->request( $self->http_request );
Johannes Plunien <plu@cpan.org>
This software is copyright (c) 2011 by Johannes Plunien.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Pithub, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Pithub
CPAN shell
perl -MCPAN -e shell install Pithub
For more information on module installation, please visit the detailed CPAN module installation guide.