Setup

Deprecated:

The @wix/api-client module has been replaced by @wix/sdk.

If you're already using this module in your code, it will continue to work. To stay compatible with future changes, update your code to use @wix/sdk.

To use the API-Client API, install the @wix/api-client package using npm or Yarn:

Copy Code
npm install @wix/api-client

or

Copy Code
yarn add @wix/api-client

Then import createClient along with other functionality you need from @wix/api-client:

Copy Code
import { createClient, OAuthStrategy, media } from '@wix/api-client';
Was this helpful?
Yes
No