Skip to content

Commit b9d9b6e

Browse files
committed
docs: Document how to wait on an action_attempt_id
1 parent 4bb13c7 commit b9d9b6e

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,16 @@ const seam = new SeamHttp({
211211
await seam.locks.unlockDoor({ device_id })
212212
```
213213

214+
If you have already have an action attempt id
215+
and want to wait for it to resolve, simply use
216+
217+
218+
```ts
219+
await seam.actionAttempts.get({ action_attempt_id, }, {
220+
waitForActionAttempt: true
221+
})
222+
```
223+
214224
Using the `waitForActionAttempt` option:
215225

216226
- Polls the action attempt up to the `timeout`

0 commit comments

Comments
 (0)