NAME
Net::GitHub::V3::OAuth - GitHub OAuth API
SYNOPSIS
use Net::GitHub::V3;
my $gh = Net::GitHub::V3->new; # read L<Net::GitHub::V3> to set right authentication info
my $oauth = $gh->oauth;
DESCRIPTION
For Web Application Flow, we suggest to use Net::OAuth.
For Non-Web Application Flow, read the Net::GitHub FAQ.
METHODS
OAuth
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 );
- delete
-
my $is_deleted = $oauth->delete_authorization($authorization_id);
AUTHOR & COPYRIGHT & LICENSE
Refer Net::GitHub