Skip to content

Commit f3ea9b3

Browse files
committed
Fixed incorrect parameters in apps docs
1 parent d343143 commit f3ea9b3

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

doc/apps.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,23 +31,21 @@ $installations = $client->api('current_user')->installations();
3131

3232
List repositories that are accessible to the authenticated installation.
3333
```php
34-
$repositories = $client->api('apps')->listRepositories(456);
34+
$repositories = $client->api('apps')->listRepositories($userId);
3535
```
3636

3737
### List repositories for a given installation and user
3838

3939
```php
40-
$repositories = $client->api('current_user')->repositoriesByInstallation(456);
40+
$repositories = $client->api('current_user')->repositoriesByInstallation($installationId, $parameters);
4141
```
4242

4343
### Add repository to installation
44-
Add a single repository to an installation.
4544
```php
46-
$client->api('apps')->addRepository(123);
45+
$client->api('apps')->addRepository($installationId, $repositoryId);
4746
```
4847

4948
### Remove repository from installation
50-
Remove a single repository from an installation.
5149
```php
52-
$client->api('apps')->removeRepository(123);
50+
$client->api('apps')->removeRepository($installationId, $repositoryId);
5351
```

0 commit comments

Comments
 (0)