示例#1
0
        public SendSmsResult SendSms(Sms sms)
        {
            using (var client = new NimbowApiClientHttpSyncWrapper())
            {
                var request  = sms.ToSendSmsRequest();
                var response = client.SendSms(request);

                return(SendSmsResult.FromSmsResponse(response));
            }
        }
示例#2
0
        public async Task <SendSmsResult> SendSmsAsync(Sms sms)
        {
            using (var client = new NimbowApiClientHttpAsyncWrapper())
            {
                var request  = sms.ToSendSmsRequest();
                var response = await client.SendSmsAsync(request);

                return(SendSmsResult.FromSmsResponse(response));
            }
        }