Obtenir le détail d’un contact
- Home
- Obtenir le détail d’un contact
Obtenir le détail d’un contact
URL
GET https://api.smspartner.fr/v1/contact/detail
Paramètres
Chaque demande d’API prend en charge les paramètres suivants :
apiKey | Clé API de votre compte. Vous l’obtenez dans votre compte SMS Partner. |
---|---|
contactId | Identifiant du contact |
Requête
Exemple de requête :
1 2 3 |
<span style="font-weight: 400;">curl --location --request GET 'https://api.smspartner.fr/v</span><span style="font-weight: 400;">1</span><span style="font-weight: 400;">/contact/detail?apiKey=</span><span style="font-weight: 400;">YOUR_API_KEY</span><span style="font-weight: 400;">&contact Id=</span><span style="font-weight: 400;">ID_CONTACT</span><span style="font-weight: 400;">'</span> |
Réponses
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
<span style="font-weight: 400;">{ "success": true, "code": 200, "contact": { "contactId": "ID CONTACT", "phone": "+xxxxxxxxxxx", "firstname": "", "lastname": "", "url": "", "shortUrl": "", "date": "", "custom1": "", "custom2": "", "custom3": "", "custom4": "", "createdAt": "2020-10-02T16:40:05+02:00", "stopSms": false, "groupId": 6363 } }</span> |
Erreurs
Exemple de message d’erreur :
1 2 3 4 5 |
<span style="font-weight: 400;">{</span> <span style="font-weight: 400;">"success": </span><span style="font-weight: 400;">false</span><span style="font-weight: 400;">,</span> <span style="font-weight: 400;">"code": </span><span style="font-weight: 400;">10</span><span style="font-weight: 400;">,</span> <span style="font-weight: 400;">"message": </span><span style="font-weight: 400;">"Clef API incorrecte"</span> <span style="font-weight: 400;">}</span> |
Code de contrôle
Code erreurs | ||
---|---|---|
1 | contactId est requis | |
10 | La Clé API est requise | |
404 | Le contact n’existe pas |
© 2014 - 2023 NDA MEDIA. Tous droits réservés. Mentions légales