コード例 #1
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);
            }
        }
コード例 #2
0
        public SendSmsResult SendSms(Sms sms)
        {
            using (var client = new NimbowApiClientHttpSyncWrapper())
            {
                var request  = sms.ToSendSmsRequest();
                var response = client.SendSms(request);

                return(SendSmsResult.FromSmsResponse(response));
            }
        }
コード例 #3
0
        public SendSmsResult SendSms(Sms sms)
        {
            using (var client = new NimbowApiClientHttpSyncWrapper())
            {
                var request = sms.ToSendSmsRequest();
                var response = client.SendSms(request);

                return SendSmsResult.FromSmsResponse(response);
            }
        }
コード例 #4
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));
            }
        }