Skip to content

Instantly share code, notes, and snippets.

@qmateub
Last active June 8, 2018 10:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save qmateub/171f69f6e7d20f76d86feb8c20901901 to your computer and use it in GitHub Desktop.
Save qmateub/171f69f6e7d20f76d86feb8c20901901 to your computer and use it in GitHub Desktop.
Usage examples
curl {{authUrl}} \
--basic --user "{{clientId}}:{{clientSecret}}" \
-X POST \
-d "grant_type=client_credentials&scope={{scope}}:{{projectKey}}"
export CTP_PROJECT_KEY="{{projectKey}}"
export CTP_CLIENT_SECRET="{{clientSecret}}"
export CTP_CLIENT_ID="{{clientId}}"
projectKey={{projectKey}}
clientId={{clientId}}
clientSecret={{clientSecret}}
authUrl={{authUrl}}
apiUrl={{apiUrl}}
sunrise.client {
# The project key for your commercetools platform project.
projectKey = "{{projectKey}}"
# The client ID of your commercetools platform project.
clientId = "{{clientId}}"
# The client secret of your commercetools platform project.
clientSecret = "{{clientSecret}}"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment