Skip to content
This repository was archived by the owner on Nov 15, 2024. It is now read-only.

Conversation

andrii-balitskyi
Copy link
Contributor

  • usage example added to readme
  • url added to ConnectWebview type

README.md Outdated
created_at: "2022-02-01T12:57:40.843Z",
},
],
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's more conventional to write

const accessCodeList = seam.accessCodes.list(someLockId)
console.log(accessCodeList)
/*
{
    access_codes: [
      {
        access_code_id: "some-access-code-1",
        name: "Some Access Code",
        code: "1234",
        type: "ongoing",
        created_at: "2022-02-01T12:57:40.843Z",
      },
    ],
  }
*/

README.md Outdated
```ts
import Seam from seamapi

// export SEAM_API_KEY=***
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
// export SEAM_API_KEY=***
// Seam will automatically use the SEAM_API_KEY environment variable if you
// don't provide an api_key to `new Seam()`

@seveibar seveibar requested a review from codetheweb February 2, 2022 16:22
Copy link
Contributor

@codetheweb codetheweb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks pretty good to me!

README.md Outdated
const someLock = seam.locks.list().devices[0]
const someLockId = someLock.device_id

seam.locks.lockDoor(someLockId)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These API calls should be awaited.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants