GET
https://api.octopush.com/v1/public/subaccount/{****@sub-accounts.com}Encodage : UTF-8
Authentification
Vos identifiants « api-key » et « api-login » doivent être ajoutés dans les headers.
Définition
Ce web service permet de récupérer les informations d’un sous compte.
Paramètres particuliers
| Champ | Type | Description |
|---|
Exemple Curl
curl -X GET \
'https://api.octopush.com/v1/public/subaccount/{****@sub-accounts.com}' \
-H 'Content-Type: application/json' \
-H 'api-login: ******@email.org' \
-H 'api-key: ************' \
-H 'cache-control: no-cache' \ Code à copier-coller
curl -X GET 'https://api.octopush.com/v1/public/subaccount/{****@sub-accounts.com}' -H 'Content-Type: application/json' -H 'api-login: ******@email.org' -H 'api-key: ************' -H 'cache-control: no-cache'Retour Server en json
Succès : 200 OK
{
"first_name":"Leonardo",
"last_name": "Da Vinci",
"company_name": "Italy",
"api_key": "*********************",
"callback": {
"callback_url_for_inbounds": "https://dns.com/call-back-url-1",
"callback_url_for_deliveries": "https://dns.com/call-back-url-2",
"callback_url_for_visits": null,
"callback_url_for_blacklisted_numbers": "https://dns.com/call-back-url-4",
"email": "[email protected]"
}
}