-
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: Update imports to follow new package name
- Loading branch information
Showing
3 changed files
with
5 additions
and
5 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 |
---|---|---|
|
@@ -47,7 +47,7 @@ yarn add @nekolab/hanime | |
Here is a simple example of how you can use the library: | ||
|
||
```ts | ||
import { HanimeClient } from 'hanime'; | ||
import { HanimeClient } from '@nekolab/hanime'; | ||
|
||
const client = new HanimeClient(); | ||
const loginResult = await client.login('[email protected]', 'password'); | ||
|
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 |
---|---|---|
|
@@ -7,7 +7,7 @@ sidebar_position: 1 | |
Hanime supports logging for debugging purposes out of the box. You can configure logging when creating new client as shown below: | ||
|
||
```ts | ||
import { HanimeClient } from 'hanime'; | ||
import { HanimeClient } from '@nekolab/hanime'; | ||
|
||
const client = new HanimeClient(undefined, { enabled: true, level: 'debug' }); | ||
const loginResult = await client.login('[email protected]', 'password'); | ||
|
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 |
---|---|---|
|
@@ -21,7 +21,7 @@ Later in the documentation we assume you have imported and created HanimeClient, | |
Use `login` method of the client to authenticate with email and password: | ||
|
||
```ts | ||
import { HanimeClient } from 'hanime'; | ||
import { HanimeClient } from '@nekolab/hanime'; | ||
|
||
const client = new HanimeClient(); | ||
const loginResult = await client.login('[email protected]', 'password'); | ||
|
@@ -43,7 +43,7 @@ console.log('Logged in as', loginResult.user.name); | |
If you have a session token, you can directly pass it to hanime client without needing to login: | ||
|
||
```ts | ||
import { HanimeClient } from 'hanime'; | ||
import { HanimeClient } from '@nekolab/hanime'; | ||
|
||
const client = new HanimeClient('...'); | ||
const info = await client.getInfo(); | ||
|
@@ -65,7 +65,7 @@ console.log('Logged in as', info.user.name); | |
Session tokens are generally valid for a long time, but they may expire. You can get expiration time of the token from client info: | ||
|
||
```ts | ||
import { HanimeClient } from 'hanime'; | ||
import { HanimeClient } from '@nekolab/hanime'; | ||
|
||
const client = new HanimeClient('...'); | ||
const info = await client.getInfo(); | ||
|