File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -113,6 +113,16 @@ Returns an array of followed users.
113
113
$users = $client->api('user')->watched('ornicar');
114
114
```
115
115
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
+
116
126
### Get repos that a specific user has starred
117
127
118
128
``` php
@@ -124,10 +134,10 @@ For authenticated user use.
124
134
> Requires [ authentication] ( security.md ) .
125
135
126
136
``` php
127
- $users = $client->api('current_user')->watched ();
137
+ $users = $client->api('current_user')->starred()->all ();
128
138
```
129
139
130
- Returns an array of watched repos.
140
+ Returns an array of starred repos.
131
141
132
142
### Get the authenticated user emails
133
143
You can’t perform that action at this time.
0 commit comments