Update token for mail to SMS
This method allows you to generate a new token for mail2sms.
PUT
/mail2sms/token
Beispiele
PUT /mail2sms/token HTTP/1.1
Host: api.smsfactor.com
Authorization: Bearer your.token
Accept: application/json
Ergebnisformat
{
"status": 1,
"message": "OK",
"data": {
"sms_marketing": "[email protected]",
"sms_alert": "[email protected]"
}
}
<?xml version="1.0" encoding="UTF-8"?>
<response>
<status>1</status>
<message>OK</message>
<data>
<sms_marketing>[email protected]</sms_marketing>
<sms_alert>[email protected]</sms_alert>
</data>
</response>
PUT /mail2sms/token HTTP/1.1
Host: api.smsfactor.com
Authorization: Bearer your.token
Accept: application/json
{
"status": 1,
"message": "OK",
"data": {
"sms_marketing": "[email protected]",
"sms_alert": "[email protected]"
}
}
<?xml version="1.0" encoding="UTF-8"?>
<response>
<status>1</status>
<message>OK</message>
<data>
<sms_marketing>[email protected]</sms_marketing>
<sms_alert>[email protected]</sms_alert>
</data>
</response>