Install @ocsoftware/sdk
:
npm install @ocsoftware/sdk
This is a simple example on how to use our SDK. You can overwrite the URL by setting a url
property in the setup.
import { sdk, setup } from '@ocsoftware/sdk';
setup({
token: 'YOUR_TOKEN',
accountId: 'YOUR_ACCOUNT'
});
sdk.Branches({}).then( response => console.log(response) );
All the documents for the SDK can be found in our documentation.