Namespace: AtlasSDK

AtlasSDK

AtlasSDK is a global namespace.

Methods


<static> configure(options)

Configure AtlasSDK. This is the main entry point to use the AtlasSDK.
Parameters:
Name Type Description
options Object An object containing configiration data:
  • {String} client_id Client Id of a partner
  • {String} sales_channel Sales Channel assigned for a partner
  • {boolean} is_sandbox Indicates sandbox mode (default false)
Returns:
a promise resolving with an AtlasSDKClient object
Type
Promise.<AtlasSDKClient>
Example
const sdk = await AtlasSDK.configure({
  client_id: 'CLIENT_ID',
  sales_channel: 'SALES_CHANNEL',
  is_sandBox: true
});