Skip to content

Latest commit

 

History

History
31 lines (24 loc) · 1.1 KB

README.md

File metadata and controls

31 lines (24 loc) · 1.1 KB

How To - Data Import to SPHERE.IO

The following steps are using cURL as HTTP client.

Authentication

  • First you need to authenticate to get an access token ("bearer token")
  • use the returned access token further HTTP API calls
curl https://clientID:[email protected]/oauth/token \
	-X POST \
    -d "grant_type=client_credentials&scope=manage_project:redbull"

See HTTP API Tutorial for further information.

Create Product Types

curl -X POST -H "Authorization: Bearer [token]" https://api.sphere.io/redbull/product-types \
	-d @product-type-clothing.json

Import Products

node lib/run.js import --projectKey KEY --clientId ID --clientSecret secret -l de --csv products.csv