1Net::GitHub::V3::OAuth(U3s)er Contributed Perl DocumentatNieotn::GitHub::V3::OAuth(3)
2
3
4
6 Net::GitHub::V3::OAuth - GitHub OAuth API
7
9 use Net::GitHub::V3;
10
11 my $gh = Net::GitHub::V3->new; # read L<Net::GitHub::V3> to set right authentication info
12 my $oauth = $gh->oauth;
13
14 DESCRIPTION
15 For Web Application Flow, we suggest to use Net::OAuth.
16
17 For Non-Web Application Flow, read the Net::GitHub FAQ.
18
19 METHODS
20 OAuth
21
22 <http://developer.github.com/v3/oauth/>
23
24 authorizations
25 my @authorizations = $oauth->authorizations();
26
27 authorization
28 my $authorization = $oauth->authorization($authorization_id);
29
30 create_authorization
31 update_authorization
32 my $oauth = $oauth->create_authorization( {
33 scopes => ['public_repo'],
34 note => 'admin script',
35 } );
36 my $oauth = $oauth->update_authorization( $authorization_id, $new_authorization_data );
37
38 delete
39 my $is_deleted = $oauth->delete_authorization($authorization_id);
40
42 Refer Net::GitHub
43
44
45
46perl v5.30.1 2020-03-06 Net::GitHub::V3::OAuth(3)