Skip to content
This repository has been archived by the owner on Nov 7, 2020. It is now read-only.

Commit

Permalink
πŸ“ Document follow/unfollow methods
Browse files Browse the repository at this point in the history
  • Loading branch information
hansott committed Mar 18, 2018
1 parent e894cc4 commit 9c50073
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,36 @@ if (!$response->ok()) {
}
```

### Unfollow a user

```php
$response = $api->unfollowUser('otthans'); // username or user ID

if (!$response->ok()) {
die($response->getError());
}
```

### Follow a board

```php
$response = $api->followBoard('teslamotors', 'model-x');

if (!$response->ok()) {
die($response->getError());
}
```

### Unfollow a board

```php
$response = $api->unfollowBoard('teslamotors', 'model-x');

if (!$response->ok()) {
die($response->getError());
}
```

### Create a board

```php
Expand Down

0 comments on commit 9c50073

Please sign in to comment.