generated from mintlify/starter
-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Checking in * Checking in
- Loading branch information
Showing
3 changed files
with
47 additions
and
176 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
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 |
---|---|---|
@@ -1,16 +1,13 @@ | ||
You can import the Vapi class from the package: | ||
Import the package: | ||
|
||
```javascript | ||
import Vapi from "@vapi-ai/web"; | ||
``` | ||
|
||
Then, create a new instance of the Vapi class, passing your `Public Key` as a parameter to the constructor: | ||
Then, create a new instance of the Vapi class, passing your **Public Key** as a parameter to the constructor: | ||
|
||
```javascript | ||
const vapi = new Vapi("your-public-key"); | ||
``` | ||
|
||
<Info> | ||
You can find your public key in your Vapi dashboard at | ||
[dashboard.vapi.ai/account](https://dashboard.vapi.ai/account) | ||
</Info> | ||
You can find your public key in the [Vapi Dashboard](https://dashboard.vapi.ai/account). |
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 |
---|---|---|
@@ -1,11 +1,7 @@ | ||
You can install the package w/ [yarn](https://yarnpkg.com): | ||
Install the package: | ||
|
||
```bash | ||
yarn add @vapi-ai/web | ||
``` | ||
|
||
or w/ [npm](https://www.npmjs.com): | ||
|
||
```bash | ||
npm install @vapi-ai/web | ||
``` |