feat: Implement send sms action of twilio

This commit is contained in:
Faruk AYDIN
2022-10-26 18:24:12 +02:00
committed by Ali BARIN
parent 4553084503
commit 7d7c96274d
4 changed files with 87 additions and 7 deletions

View File

@@ -2,12 +2,7 @@ import { IGlobalVariable } from '@automatisch/types';
const verifyCredentials = async ($: IGlobalVariable) => {
try {
await $.http.get('/2010-04-01/Accounts.json?PageSize=1', {
auth: {
username: $.auth.data.accountSid as string,
password: $.auth.data.authToken as string,
},
});
await $.http.get('/2010-04-01/Accounts.json?PageSize=1');
await $.auth.set({
screenName: $.auth.data.accountSid,