MailtoSMS-Konfiguration abrufen

Mit dieser Methode können Sie Ihre mail2sms-Konfiguration abrufen.

GET

/mail2sms/configuration

Beispiele


GET /mail2sms/configuration HTTP/1.1
Host: api.smsfactor.com
Accept: application/json
Authorization: Bearer your.token
      
    

Ergebnisformat


{
  "status": 1,
  "message": "OK",
  "configuration": {
      "active": 1,
      "is_sender_custom": 1,
      "sender_value": "mysender",
      "detect_link": 0,
      "detect_signature": 0,
      "static_destinations": 1,
      "destinations": [
        "33123456789"
      ],
      "whitelisted_ip": [
        "127.0.0.1"
      ],
      "whitelisted_email": [
          "[email protected]",
          "[email protected]"
      ],
      "alternate": 0,
      "token": "abcdef",
      "sms_marketing": "[email protected]",
      "sms_alert": "[email protected]"
  }
}
          
        

<?xml version="1.0" encoding="UTF-8" ?>
  <status>1</status>
  <message>OK</message>
  <configuration>
    <active>1</active>
    <is_sender_custom>1</is_sender_custom>
    <sender_value>mysender</sender_value>
    <detect_link>0</detect_link>
    <detect_signature>0</detect_signature>
    <static_destinations>1</static_destinations>
    <destinations>
      <value>33123456789</value>
    </destinations>
    <whitelisted_ip>
      <value>127.0.0.1</value>
    </whitelisted_ip>
    <whitelisted_email>
      <value>[email protected]</value>
      <value>[email protected]</value>
    </whitelisted_email>
    <alternate>0</alternate>
    <token>abcdedf</token>
    <sms_marketing>[email protected]</sms_marketing>
    <sms_alert>[email protected]</sms_alert>
  </configuration>