API Reference
L'API è la via rapida per integrarsi al sistema: crea linee ufficiali e di test, aggiorna le linee e gestisci gli abbonamenti in modo efficiente. Dal back-office ottieni il tuo token API dedicato per gestire in sicurezza gli abbonamenti, ottimizzare l'esperienza e controllare dinamicamente ogni linea. Che sia in test o in produzione, l'API offre un'integrazione comoda e mantiene il sistema efficiente: modifica le configurazioni in tempo reale e semplifica la gestione degli abbonamenti.
Timezone
All times on this site are in UTC (Greenwich Mean Time).
Get API Token
Log in → Click avatar → Settings → API Key → Copy

API Request
Include your token in the request header for authentication. The token is also used for authorization.
1<?php
2$url = "https://api.example.com/endpoint";
3
4$token = "YOUR_API_TOKEN";
5$headers = [
6 "token: $token",
7 "Content-Type: application/json"
8];
9
10$data = [
11 "params1" => "value1",
12 "params2" => "value2"
13];
14
15$ch = curl_init();
16
17curl_setopt($ch, CURLOPT_URL, $url);
18curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
19curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
20curl_setopt($ch, CURLOPT_POST, true);
21curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($data));
22
23$response = curl_exec($ch);
24
25if (curl_errno($ch)) {
26 echo "cURL Error: " . curl_error($ch);
27} else {
28 echo "Response: " . $response;
29}
30
31curl_close($ch);