Skip to content

DerKobe/simple-commercetools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

81 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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);

About

Simpler handling of Commercetools API calls

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published