|
|
@ -24,12 +24,12 @@ class PromoSMS extends NotificationProvider {
|
|
|
|
"sender": notification.promosmsSenderName
|
|
|
|
"sender": notification.promosmsSenderName
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
await axios.post("https://promosms.com/api/rest/v3_2/sms", data, config).then(resp => {
|
|
|
|
let resp = await axios.post("https://promosms.com/api/rest/v3_2/sms", data, config);
|
|
|
|
|
|
|
|
|
|
|
|
if (resp.data.response.status !== 0) {
|
|
|
|
if (resp.data.response.status !== 0) {
|
|
|
|
let error = "Something gone wrong. Api returned " + resp.data.response.status + ".";
|
|
|
|
let error = "Something gone wrong. Api returned " + resp.data.response.status + ".";
|
|
|
|
this.throwGeneralAxiosError(error);
|
|
|
|
this.throwGeneralAxiosError(error);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return okMsg;
|
|
|
|
return okMsg;
|
|
|
|
} catch (error) {
|
|
|
|
} catch (error) {
|
|
|
|