> For the complete documentation index, see [llms.txt](https://the-wishlist-documentation.gitbook.io/the-wishlist-documentation-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://the-wishlist-documentation.gitbook.io/the-wishlist-documentation-docs/javascript-apis/installation.md).

# JavaScript Installation

```
npm i @thewishlistco/twc
```

or with yarn:

```
yarn add @thewishlistco/twc
```

## Usage Example

```js
// import the package and method
import { getWishlist } from "twc";

// call the method
getWishlist({
  wishlistRef: "<wishlist ref>",
  token: "<token>",
  tenant: "<tenant id>",
  token: "<your token>",
  onSuccess: (response) => {
    // do something with the response
    console.log(response);
  },
});
```
