-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: Add docs for premium subscription
- Loading branch information
Showing
1 changed file
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
--- | ||
sidebar_position: 7 | ||
--- | ||
|
||
# Premium Subscription | ||
|
||
You can use the library to claim a premium subscription for your account. This will allow you to download videos in 1080p quality and access other premium features. | ||
|
||
```ts | ||
const { user } = await client.claimPremium(); | ||
console.log('Claimed premium subscription for', user.name); | ||
``` | ||
|
||
<details> | ||
<summary>Output</summary> | ||
|
||
```bash | ||
Claimed premium subscription for JokelBaf | ||
``` | ||
|
||
</details> | ||
|
||
:::note | ||
|
||
Hanime API will raise 401 error if you try to claim premium with already active subscription, or without having enough coins. Make sure to handle this in your code properly. | ||
|
||
::: |