Skip to content

Conversation

@rasj
Copy link
Contributor

@rasj rasj commented Dec 19, 2016

Add a endpoint to search by a key id.

$client = new \Gitlab\Client(GITLAB_URL);

$client->authenticate(GITLAB_KEY, \Gitlab\Client::AUTH_URL_TOKEN);

$key = $client->api('keys')->show(1); 
/*
 {
     "id" : 1,
     "title" : "A key",
     "key" : "key",
     "created_at" : "2016-01-01T01:00:00.000Z",
     "user" : {
          ...
     } 
 }
*/

@radutopala radutopala merged commit 2709de9 into GitLabPHP:master Apr 20, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants