Skip to content

Commit 748d583

Browse files
committed
Update lib/Github/Api/User.php
Add new endpoint for user public keys
1 parent d1d9af8 commit 748d583

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

lib/Github/Api/User.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,4 +95,16 @@ public function gists($username)
9595
{
9696
return $this->get('users/'.urlencode($username).'/gists');
9797
}
98+
99+
/**
100+
* Get the public keys for a user
101+
* @link http://developer.github.com/v3/users/keys/#list-public-keys-for-a-user
102+
*
103+
* @param string $username the username
104+
* @return array list of the user public keys
105+
*/
106+
public function keys($username)
107+
{
108+
return $this->get('users/'.urlencode($username).'/keys');
109+
}
98110
}

0 commit comments

Comments
 (0)