Net::GitHub::V3::OAuth(3pm) | User Contributed Perl Documentation | Net::GitHub::V3::OAuth(3pm) |
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.
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 );
my $is_deleted = $oauth->delete_authorization($authorization_id);
Refer Net::GitHub
2022-10-08 | perl v5.34.0 |