Skip to content
Inicio » API SMS Octopush » API Parámetros por defecto » Recuperar configuración

Recuperar configuración

GET
https://api.octopush.com/v1/public/user/campaign-parameters

Codificación : UTF-8

Autentificación

Su “api-key” y “api-login” deben ser añadidos en las cabeceras.

Definición

Le permite recuperar la configuración por defecto para sus campañas de SMS.

Parámetros especiales

NombreTipoDescripción

Ejemplo Curl

curl -X GET \ 
'https://api.octopush.com/v1/public/user/campaign-parameters' \ 
-H 'Content-Type: application/json' \ 
-H 'api-key: ************' \ 
-H 'api-login: ******@email.org' \ 
-H 'cache-control: no-cache' \ 

Respuesta Servidor en JSON

Éxito: 200 OK

{
  "sms_campaign_alert_parameters": {
    "alert_type": "sms_premium",
    "alert_bound": 150,
    "alert_email_to": "[email protected]",
    "alert_phone_number_to": "+33611121314"
  },
  "campaign_parameters": {
    "sender_for_sms_premium": "12345",
    "sender_for_vocal_sms": "12345",
    "phone_number_for_test_sms": "+33611121314"
  },
  "callbacks": {
    "callback_url_for_inbounds": "https://mywebhook.dns/webhook-1",
    "callback_url_for_deliveries": "https://mywebhook.dns/webhook-2",
    "callback_url_for_blacklisted_numbers": "https://mywebhook.dns/webhook-3",
    "callback_url_for_visits": "https://mywebhook.dns/webhook-4",
    "email_for_inbounds": "[email protected]"
  }
}