Skip to content

Commit

Permalink
document listFavorites method
Browse files Browse the repository at this point in the history
  • Loading branch information
ihrigb committed Dec 20, 2023
1 parent 5bc768a commit 9e76e73
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,13 @@ doorbird.restart().then(() => {
### Favorite Handling
```typescript
// list favorites
doorbird.listFavorites().then(response => {
console.log("Favorites:", response);
}).catch(err => {
console.log(err);
});

// create favorite
doorbird.createFavorite(FavoriteType.http, {
title: 'My Favorite',
Expand Down

0 comments on commit 9e76e73

Please sign in to comment.