This web service allows you to purchase time stamps and time stamp documents.
This method shows you the list of all purchased timestamps
Array of objects (Marca) [ items ] | |
success | boolean |
message | string |
error | integer |
CURL *hnd = curl_easy_init(); curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET"); curl_easy_setopt(hnd, CURLOPT_URL, "https://ws.marchetemporali.com/marche"); struct curl_slist *headers = NULL; headers = curl_slist_append(headers, "Authorization: Bearer REPLACE_BEARER_TOKEN"); curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers); CURLcode ret = curl_easy_perform(hnd);
{- "data": [
- {
- "id_marca": "deb184df120e0487b64a2f77a4ab60c5",
- "type": "aruba",
- "qty_marca": "50",
- "username": "FAKETxxxxltravia09",
- "password": "FAKxxxB71AJHN",
- "id_entita": "159xxx2274",
- "timestamp_acquisto": "2020-09-10 12:04:35"
}, - {
- "id_marca": "79b1ab2ce4825c955ba7b99c6d1a4b5f",
- "type": "infocert",
- "qty_marca": "100",
- "username": "FAKExxxR325",
- "password": "FAKEinxxxxx2",
- "id_entita": "159xxx2274",
- "timestamp_acquisto": "2020-09-10 12:10:52"
}
], - "success": true,
- "message": "",
- "error": null
}
This method allows you to purchase time stamps
type required | string Default: "<string>" Enum: "infocert" "aruba" Example: aruba Type of time stamps |
qty required | string Default: "<string>" Example: 50 Quantity of time stamps |
object | |
success | boolean |
message | string |
error | integer |
CURL *hnd = curl_easy_init(); curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET"); curl_easy_setopt(hnd, CURLOPT_URL, "https://ws.marchetemporali.com/marche/%7Btype%7D/%7Bqty%7D"); struct curl_slist *headers = NULL; headers = curl_slist_append(headers, "Authorization: Bearer REPLACE_BEARER_TOKEN"); curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers); CURLcode ret = curl_easy_perform(hnd);
{- "data": {
- "id_marca": "1bab897afce17bd101c54d6011851d10",
- "username": "FAKETSxxxxravia10",
- "password": "FAKE6GxxxxSFA"
}, - "message": "Marca erogata",
- "success": true,
- "error": null
}
This method allows you to check if a certain type of time stamps are available for purchase
type required | string Default: "<string>" Enum: "infocert" "aruba" Example: aruba Type of time stamps |
qty required | string Default: "<string>" Example: 50 Quantity of time stamps |
object | |
success | boolean |
message | string |
error | integer |
CURL *hnd = curl_easy_init(); curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET"); curl_easy_setopt(hnd, CURLOPT_URL, "https://ws.marchetemporali.com/availability/%7Btype%7D/%7Bqty%7D"); struct curl_slist *headers = NULL; headers = curl_slist_append(headers, "Authorization: Bearer REPLACE_BEARER_TOKEN"); curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers); CURLcode ret = curl_easy_perform(hnd);
{- "data": {
- "availability": "89"
}, - "success": true,
- "message": "",
- "error": null
}
This method allows you to check, in relation to a specific batch, how many timestamps you have used and how many you have left
username required | string Default: "<string>" name assigned to use the time stamp batch |
password required | string Default: "<string>" password assigned to use the time stamp batch |
type | string Default: "<string>" Enum: "infocert" "aruba" brand of time stamp; if not passed it is 'infocert' by default |
object | |
success | boolean |
message | string |
error | integer |