Skip to content

Commit 87db975

Browse files
authored
minor KnpLabs#988 Fix incorrect public key documentation (acrobat)
This PR was merged into the 2.x branch. Discussion ---------- Fixes KnpLabs#789 Commits ------- 2cc80c5 Fix incorrect public key documentation
2 parents 83ee835 + 2cc80c5 commit 87db975

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

doc/currentuser/publickeys.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,23 +6,23 @@ Wraps [GitHub User Public Keys API](https://developer.github.com/v3/users/keys/#
66
### List your public keys
77

88
```php
9-
$keys = $client->user()->keys()->all();
9+
$keys = $client->me()->keys()->all();
1010
```
1111

1212
Returns a list of public keys for the authenticated user.
1313

1414
### Shows a public key for the authenticated user.
1515

1616
```php
17-
$key = $client->user()->keys()->show(1234);
17+
$key = $client->me()->keys()->show(1234);
1818
```
1919

2020
### Add a public key to the authenticated user.
2121

2222
> Requires [authentication](../security.md).
2323
2424
```php
25-
$key = $client->user()->keys()->create(array('title' => 'key title', 'key' => 12345));
25+
$key = $client->me()->keys()->create(array('title' => 'key title', 'key' => 12345));
2626
```
2727

2828
Adds a key with title 'key title' to the authenticated user and returns a the created key for the user.
@@ -32,5 +32,5 @@ Adds a key with title 'key title' to the authenticated user and returns a the cr
3232
> Requires [authentication](../security.md).
3333
3434
```php
35-
$client->user()->keys()->remove(12345);
35+
$client->me()->keys()->remove(12345);
3636
```

0 commit comments

Comments
 (0)