Skip to content

Commit

Permalink
docs(api-sdk): add checkInvite docs
Browse files Browse the repository at this point in the history
  • Loading branch information
waddaboo committed Nov 4, 2024
1 parent 8e9dd3d commit a978e98
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions libs/api-sdk/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -521,6 +521,19 @@ const apiKey = "70f07d0d-6aa2-4fe1-b4b9-06c271a641dc"
const invite = await apiSdk.getInvite(inviteCode)
```

## Check invite

\# **checkInvite**(): _Promise\<boolean>_

Returns boolean value if the invite code is valid.

```ts
const inviteCode = "C5VAG4HD"
const groupId = "10402173435763029700781503965100"

const isValid = await apiSdk.checkInvite(inviteCode, groupId)
```

## Redeem invite

\# **redeemInvite**(): _Promise\<Invite>_
Expand Down

0 comments on commit a978e98

Please sign in to comment.