Update token for mail to SMS
This method allows you to generate a new token for mail2sms.
PUT
/mail2sms/token
Examples
PUT /mail2sms/token HTTP/1.1
Host: api.smsfactor.com
Authorization: Bearer your.token
Accept: application/json
Result Format
{
"status": 1,
"message": "OK",
"data": {
"sms_marketing": "abcdef-marketing@mail2sms.smsmarkt.com",
"sms_alert": "abcdef-alert@mail2sms.smsmarkt.com"
}
}
<?xml version="1.0" encoding="UTF-8"?>
<response>
<status>1</status>
<message>OK</message>
<data>
<sms_marketing>abcdef-marketing@mail2sms.smsmarkt.com</sms_marketing>
<sms_alert>abcdef-alert@mail2sms.smsmarkt.com</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": "abcdef-marketing@mail2sms.smsmarkt.com",
"sms_alert": "abcdef-alert@mail2sms.smsmarkt.com"
}
}
<?xml version="1.0" encoding="UTF-8"?>
<response>
<status>1</status>
<message>OK</message>
<data>
<sms_marketing>abcdef-marketing@mail2sms.smsmarkt.com</sms_marketing>
<sms_alert>abcdef-alert@mail2sms.smsmarkt.com</sms_alert>
</data>
</response>