Token
After acquiring API Key
, you can generate a Token Fields according to the rules, and call the Open API interface with it.
Plain
Example: Assuming that the requested URL is "https://scaler.taurusx.com/openapi/performance_data",
then the request header needs to be added
access-key: 018168163a17d44907669d58ee9ad687
token: a6864d4ef31b09cdc1c5d22214cde5db
timestamp: 1697785289
Example: Assuming that the requested URL is "https://scaler.taurusx.com/openapi/performance_data",
then the request header needs to be added
access-key: 018168163a17d44907669d58ee9ad687
token: a6864d4ef31b09cdc1c5d22214cde5db
timestamp: 1697785289
The Token parameter generation rules are as follows:
Field | Type | Description | Example |
---|---|---|---|
access-key | string | Access-key and api-key generated by Taurusx | "018168163a17d44907669d58ee9ad687" |
token | string | Generation method:Md5(api-key.md5(timestamp)) | "a6864d4ef31b09cdc1c5d22214cde5db" |
timestamp | int | Timestamp (second) | 1697785289 |
PHP Example
PowerShell
<?php
$api_key = 'af6d4b1cbdb4fbe2d1ee838fabfe92fe';
$timestamp = time();
$token = md5($api_key.md5($timestamp));
?>
<?php
$api_key = 'af6d4b1cbdb4fbe2d1ee838fabfe92fe';
$timestamp = time();
$token = md5($api_key.md5($timestamp));
?>