예제 #1
0
        public async System.Threading.Tasks.Task <OTPRespone> OTPCancelRequest(string requestid)
        {
            SMSGlobal.SMS.Transport.Rest rest = new SMSGlobal.SMS.Transport.Rest(Credentials);

            var res = await rest.OTPCancelRequest(requestid);

            return(res);
        }
예제 #2
0
        public async System.Threading.Tasks.Task <OTPRespone> OTPCancelDestination(string destination)
        {
            SMSGlobal.SMS.Transport.Rest rest = new SMSGlobal.SMS.Transport.Rest(Credentials);

            var res = await rest.OTPCancelDestination(destination);

            return(res);
        }
예제 #3
0
        public async System.Threading.Tasks.Task <OTPRespone> OTPSend(Object payload)
        {
            SMSGlobal.SMS.Transport.Rest rest = new SMSGlobal.SMS.Transport.Rest(Credentials);

            var res = await rest.sendOTP(payload);

            return(res);
        }
예제 #4
0
        public async System.Threading.Tasks.Task <OTPRespone> OTPValidateDestination(string destinationid, Object payload)
        {
            SMSGlobal.SMS.Transport.Rest rest = new SMSGlobal.SMS.Transport.Rest(Credentials);

            var res = await rest.OTPValidateDestination(destinationid, payload);

            return(res);
        }
예제 #5
0
        public async System.Threading.Tasks.Task <OptOutNumbers> SMSGetOptOuts(string filter)
        {
            SMSGlobal.SMS.Transport.Rest rest = new SMSGlobal.SMS.Transport.Rest(Credentials);

            // get all opt out numbers using filter
            var res = await rest.getOptOuts(filter);

            return(res);
        }
예제 #6
0
        public async System.Threading.Tasks.Task <OptOutNumbers> SMSPostOptOut(Object payload)
        {
            SMSGlobal.SMS.Transport.Rest rest = new SMSGlobal.SMS.Transport.Rest(Credentials);

            // post an opt out mobile number
            var res = await rest.sendOptOut(payload);

            return(res);
        }
예제 #7
0
        public async System.Threading.Tasks.Task <SmsIncoming> SMSGetIncomingById(string id)
        {
            SMSGlobal.SMS.Transport.Rest rest = new SMSGlobal.SMS.Transport.Rest(Credentials);

            // gets an incoming message
            var res = await rest.getSmsIncomingById(id);

            return(res);
        }
예제 #8
0
        public async System.Threading.Tasks.Task <int> SMSDeleteIncoming(string id)
        {
            SMSGlobal.SMS.Transport.Rest rest = new SMSGlobal.SMS.Transport.Rest(Credentials);

            // delete an incoming message
            var res = await rest.deleteSmsIncoming(id);

            return(res);
        }
예제 #9
0
        public async System.Threading.Tasks.Task <SMSGlobal.Response.SMS> SMSGetIncoming(string filter)
        {
            SMSGlobal.SMS.Transport.Rest rest = new SMSGlobal.SMS.Transport.Rest(Credentials);

            // get all incoming messages using filter
            var res = await rest.getSmsIncoming(filter);

            return(res);
        }
예제 #10
0
        public async System.Threading.Tasks.Task <SMSGlobal.Response.SMS> SMSSend(Object payload)
        {
            SMSGlobal.SMS.Transport.Rest rest = new SMSGlobal.SMS.Transport.Rest(Credentials);

            // send an sms message
            var res = await rest.sendSms(payload);

            return(res);
        }
예제 #11
0
        public async System.Threading.Tasks.Task <int> SMSDeleteOptOut(string number)
        {
            SMSGlobal.SMS.Transport.Rest rest = new SMSGlobal.SMS.Transport.Rest(Credentials);

            // opt out mobile number
            var res = await rest.deleteOptOut(number);

            return(res);
        }