Using CURL
Integrations Training Using CURL

Using CURL

All examples in the Integration Workshop make use of the CURL program that enables you to send HTTPs requests from the command line.

Install CURL

Download the executable for your environment and place it on the PATH. Type curl --version in a command prompt to make sure the installation was successful.

User Credentials

To be able to use the REST API you will need to provide the credentials of a specific Xurrent user. All examples in the Xurrent Integrations Workshop use the user Howard Tanner (howard.tanner@widget.com) who has the Account Administrator role of the ‘Widget Data Center’ account. Howard’s password in Xurrent is 4me.

The -u option of CURL is used to specify the api-token (the password can be set to x as it is not used), like so:

curl -i -k -u "api-token:x" "https://api.4me-demo.com/v1/account"

Please note the following:

Return To Topic