1.1.0 • Published 1 year ago

@or-sdk/source-api v1.1.0

Weekly downloads
-
License
-
Repository
-
Last release
1 year ago

@or-sdk/source-api

Installation

npm i @or-sdk/source-api

Usage

import { SourceApi } from '@or-sdk/source-api'
import config from '../config';

// With direct api url
const sourceApiSdk = new SourceApi({
  token: 'my-account-token-string',
  storeApiUrl: config.STORE_API_URL
});

// With service discovery (slower)
const sourceApiSdk = new Store({
  token: 'my-account-token-string',
  discoveryUrl: 'http://example.store/endpoint'
});