import { Commercetools, CommercetoolsConfig, PagedQueryResult } from 'simple-commercetools';
const config: CommercetoolsConfig = {
projectKey: '[PROJECTKEY]',
clientId: '[CLIENTID]',
clientSecret: '[CLIENTSECRET]',
locale: 'de-DE',
concurrency: 5,
authHost: "https://auth.sphere.io",
apiHost: "https://api.sphere.io",
}
const commercetools = new Commercetools(config);
await commercetools.initClient();
const data: PagedQueryResult<Order> = await commercetools.orders.fetchAll(1, 10);
-
Notifications
You must be signed in to change notification settings - Fork 0
DerKobe/simple-commercetools
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Simpler handling of Commercetools API calls
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published