CMR Environments Table
CMR Environment | Base API URL (through ECHO) | Associated URS Environment |
---|---|---|
Operational (OPS) | ||
User Acceptance Test (UAT) | ||
Systems Integration Test (SIT) |
2. On a terminal window execute the curl command for the environment you selected.
|
Note:
If you don't want to escape any characters, but still want to use curl - implement the "file input" option to create a file that looks like the following:
<token> |
Note: mytokengenerator.xml can be used as a file name, which simplifies the command. See example underneath step 2 for original command and the example below for simplified command.
|
Provided a successful response is received, an HTTP success status code of 200 is supplied with the response. Below is a sample response from the curl call - where the value in the ID tag is the token you will use as the value in the Echo-Token header:
<?xmlversion="1.0"encoding="UTF-8"?> <token> <id>75E5CEBE-6BBB-2FB5-A613-0368A361D0B6</id> <username>sample_username</username> <client_id>client_name_of_your_choosing</client_id> <user_ip_address>your_origin_ip_address</user_ip_address> <provider>Provider Id</provider> </token> |