File tree 1 file changed +4
-4
lines changed 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -6,23 +6,23 @@ Wraps [GitHub User Public Keys API](https://developer.github.com/v3/users/keys/#
6
6
### List your public keys
7
7
8
8
``` php
9
- $keys = $client->user ()->keys()->all();
9
+ $keys = $client->me ()->keys()->all();
10
10
```
11
11
12
12
Returns a list of public keys for the authenticated user.
13
13
14
14
### Shows a public key for the authenticated user.
15
15
16
16
``` php
17
- $key = $client->user ()->keys()->show(1234);
17
+ $key = $client->me ()->keys()->show(1234);
18
18
```
19
19
20
20
### Add a public key to the authenticated user.
21
21
22
22
> Requires [ authentication] ( ../security.md ) .
23
23
24
24
``` 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));
26
26
```
27
27
28
28
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
32
32
> Requires [ authentication] ( ../security.md ) .
33
33
34
34
``` php
35
- $client->user ()->keys()->remove(12345);
35
+ $client->me ()->keys()->remove(12345);
36
36
```
You can’t perform that action at this time.
0 commit comments