1Net::GitHub::V3::Users(U3s)er Contributed Perl DocumentatNieotn::GitHub::V3::Users(3)
2
3
4
6 Net::GitHub::V3::Users - GitHub Users 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 $user = $gh->user;
13
15 METHODS
16 Users
17
18 <http://developer.github.com/v3/users/>
19
20 show
21 my $uinfo = $user->show(); # /user
22 my $uinfo = $user->show( 'nothingmuch' ); # /users/:user
23
24 update
25 $user->update(
26 bio => 'another Perl programmer and Father',
27 );
28
29 Emails
30
31 <http://developer.github.com/v3/users/emails/>
32
33 emails
34 add_email
35 remove_email
36 $user->add_email( 'another@email.com' );
37 $user->add_email( 'batch1@email.com', 'batch2@email.com' );
38 my $emails = $user->emails;
39 while ($email = $user->next_email) { ...; }
40 $user->remove_email( 'another@email.com' );
41 $user->remove_email( 'batch1@email.com', 'batch2@email.com' );
42
43 Followers
44
45 <http://developer.github.com/v3/users/followers/>
46
47 followers
48 following
49 next_follower
50 next_following
51 my $followers = $user->followers;
52 my $followers = $user->followers($user);
53 my $following = $user->following;
54 my $following = $user->following($user);
55 my $next_follower = $user->next_follower
56 my $next_follower = $user->next_follower($user)
57 my $next_following = $user->next_following
58 my $next_following = $user->next_following($user)
59
60 is_following
61 my $is_following = $user->is_following($user);
62
63 follow
64 unfollow
65 $user->follow( 'nothingmuch' );
66 $user->unfollow( 'nothingmuch' );
67
68 Keys
69
70 <http://developer.github.com/v3/users/keys/>
71
72 keys
73 key
74 create_key
75 update_key
76 delete_key
77 my $keys = $user->keys;
78 while (my $key = $user->next_key) { ...; }
79 my $key = $user->key($key_id); # get key
80 $user->create_key({
81 title => 'title',
82 key => $key
83 });
84 $user->update_key($key_id, {
85 title => $title,
86 key => $key
87 });
88 $user->delete_key($key_id);
89
90 contributions
91 my $contributions = $user->contributions($username);
92 # $contributions = ( ..., ['2013/09/22', 3], [ '2013/09/23', 2 ] )
93
94 Unpublished GitHub API used to build the 'Public contributions'
95 graph on a users' profile page. The data structure is a list of
96 365 arrayrefs, one per day. Each array has two elements, the date
97 in YYYY/MM/DD format is the first element, the second is the number
98 of contrubtions for that day.stree .
99
101 Refer Net::GitHub
102
103
104
105perl v5.30.1 2020-03-06 Net::GitHub::V3::Users(3)