Rubrica
Dettaglio Contatto
Ottieni i dati di un singolo contatto della rubrica
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Ottieni i dati di un singolo contatto della rubrica
| Parametro | Tipo | Descrizione |
|---|---|---|
id | int | ID del contatto |
curl -X GET https://api.mycentralino.com/v1/contacts/12345 \
-H "X-API-KEY: sk_mycentralino_your_api_key"
<?php
$id = 12345;
$ch = curl_init("https://api.mycentralino.com/v1/contacts/{$id}");
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'X-API-KEY: sk_mycentralino_your_api_key'
]
]);
$response = curl_exec($ch);
curl_close($ch);
print_r(json_decode($response, true));
import requests
headers = {'X-API-KEY': 'sk_mycentralino_your_api_key'}
contact_id = 12345
response = requests.get(
f'https://api.mycentralino.com/v1/contacts/{contact_id}',
headers=headers
)
print(response.json())
{
"success": true,
"data": {
"id": 12345,
"number": "3331234567",
"name": "Mario Rossi",
"company": "ACME S.r.l.",
"notes": "Cliente principale"
}
}
| Campo | Tipo | Descrizione |
|---|---|---|
id | int | ID univoco del contatto |
number | string | Numero di telefono |
name | string | Nome del contatto |
company | string | null | Azienda (opzionale) |
notes | string | null | Note (opzionale) |
{
"success": false,
"error": "Contatto non trovato"
}
