ordercloud-api / OrderCloud-Angular-SDK

Angular wrapper for OrderCloud-Javascript-SDK
MIT License
1 stars 3 forks source link

Turn the SDK Config into an object #2

Open robertsoniv opened 7 years ago

robertsoniv commented 7 years ago

On OrderCloudSDK.Config() rather than individual params, accept an object structured like so:

{
  "cookiePrefix": "xxxx",
  "apiUrl": "xxxx",
  "authUrl": "xxxx"
}

I think this will prove to be less brittle down the road in case we need to accept any further configuration variables.