Skip to content

Commit 4af5314

Browse files
committed
2 parents 3bf25e8 + 784a087 commit 4af5314

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

doc/users.md

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,16 @@ Returns an array of followed users.
113113
$users = $client->api('user')->watched('ornicar');
114114
```
115115

116+
For authenticated user use.
117+
118+
> Requires [authentication](security.md).
119+
120+
```php
121+
$users = $client->api('current_user')->watched();
122+
```
123+
124+
Returns an array of watched repos.
125+
116126
### Get repos that a specific user has starred
117127

118128
```php
@@ -124,10 +134,10 @@ For authenticated user use.
124134
> Requires [authentication](security.md).
125135
126136
```php
127-
$users = $client->api('current_user')->watched();
137+
$users = $client->api('current_user')->starred()->all();
128138
```
129139

130-
Returns an array of watched repos.
140+
Returns an array of starred repos.
131141

132142
### Get the authenticated user emails
133143

0 commit comments

Comments
 (0)