The following steps are using cURL as HTTP client.
- 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.
- generate product types files in JSON format using sphere-product-type-json-generator
- use HTTP API to create types
curl -X POST -H "Authorization: Bearer [token]" https://api.sphere.io/redbull/product-types \
-d @product-type-clothing.json
- import products from CSV using sphere-node-product-csv-sync
node lib/run.js import --projectKey KEY --clientId ID --clientSecret secret -l de --csv products.csv