Net::GitHub::V3::OAuth - GitHub OAuth API
use Net::GitHub::V3; my $gh = Net::GitHub::V3->new; # read L<Net::GitHub::V3> to set right authentication info my $oauth = $gh->oauth;
For Web Application Flow, we suggest to use Net::OAuth.
For Non-Web Application Flow, read the Net::GitHub FAQ.
http://developer.github.com/v3/oauth/
my @authorizations = $oauth->authorizations();
my $authorization = $oauth->authorization($authorization_id);
my $oauth = $oauth->create_authorization( { scopes => ['public_repo'], note => 'admin script', } ); my $oauth = $oauth->update_authorization( $authorization_id, $new_authorization_data );
my $is_deleted = $oauth->delete_authorization($authorization_id);
Refer Net::GitHub
To install Net::GitHub, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::GitHub
CPAN shell
perl -MCPAN -e shell install Net::GitHub
For more information on module installation, please visit the detailed CPAN module installation guide.