php-github-api icon indicating copy to clipboard operation
php-github-api copied to clipboard

Wrong method call

Open sordev opened this issue 7 years ago • 1 comments

$client->user() and $client->users() calls $api = new Api\User($this); when $client->me(),current_user(),currentUser() calls $api = new Api\CurrentUser($this);

Api\User->keys() requires user name and returns array can't create keys Api\CurrentUser->keys() won't need username and return Object will be able to create keys

File: https://github.com/KnpLabs/php-github-api/blob/master/doc/currentuser/publickeys.md Too small to request pull.

sordev avatar Apr 22 '19 10:04 sordev

Thanks for reporting the docs issue @sordev. If you have the time, please send a PR to correct this docs issue.

acrobat avatar Apr 24 '19 09:04 acrobat