SMS Price: ZW$ 1.40 ONLY!

Call Now: +263 8644 102348/9,
+263 773 098427, +263 773 577173

Working C# sample code

Main Code Page | PHP | Python | C# | Java
This is working sample of a C# console app that actually sends SMS. This code can be used to send SMS through the Bulk SMS API. It was tested and working perfectly. All you need to do is fill the missing information - $username, $token, $destinations. The mobile numbers in this sample are for Bulk SMS technical team and should be removed when implementing the Web Services in your applications. The Webservice username (get it from the User Configuration) is case sensitive. You can integrate this code into the rest of your C# Application.

You can create your own Bulk SMS account. Sign Up here! Your Account will be created with FREE SMS credits for testing. Create your Sender ID before testing. After you login, go to Settings, then Manage Sender ID. You will not be able to send SMS without a Sender ID. First test your account from our system before using these Code examples!

      using System;
      using System.Net.Http;
      using System.Threading.Tasks;

      class Program
          static void Main(string[] args)
              Task T = new Task(ApiCall);
              Console.WriteLine("Json data........");
          static async void ApiCall()

              using (var client = new HttpClient())
                  string username = "";

                  // Webservices token for above Webservice username
                  string token = "";

                  // BulkSMS Webservices URL
                  string bulksms_ws = "";

                  // destination numbers, comma seperated or use #groupcode for sending to group
                  // $destinations = '#devteam,263071077072,26370229338';
                  // $destinations = '26300123123123,26300456456456';  for multiple recipients

                  string destinations = "263772268353,263732268353,263773098427";

                  // SMS Message to send
                  string message = "Testing C# to BulkSMS Webservice";

                  // send via BulkSMS HTTP API

                  string ws_str = bulksms_ws + "&u=" + username + "&h=" + token + "&op=pv";
                  ws_str += "&to=" + Uri.EscapeDataString(destinations) + "&msg=" + Uri.EscapeDataString(message);

                  HttpResponseMessage response = await client.GetAsync(ws_str);


                  using (HttpContent content = response.Content)
                      string responseBody = await response.Content.ReadAsStringAsync();
                      Console.WriteLine(responseBody + "........");



Use of Smart Phones with Bulk SMS

Our Bulk SMS system is fully compatible with smart phones. It was designed to display efficiently on both desktop, tablets and smart phones. Its now possible to use your smart phone for anything that you want to do in the system. Allowing you to be productive even when you are out of the office or on the go. BUT, just DON'T use this system while you drive!

Why is SMS good for you?

  • The personal nature of mobile phones make SMS marketing a very powerful tool. Basic Phone image
  • Most people take their mobile phones everywhere - meaning they can be effective for time sensitive messages.
  • People tend to read virtually every text they get - unlike junk mail, spam or adverts which can be ignored.
  • It's a direct, immediate communication channel. SMS is one of the most immediate channels available; with a read rate of 97% within 15 minutes delivery, you can be reassured that your time critical messages will be read almost instantly.
..Learn More
Powered by iHubCloud
Physical Address: 102 Churchill Road, Gunhill, Harare
Telephone: +263 8644 102348/9, +263 773 098427, +263 773 577173

Login In   /  Sign Up
(compatible with smart phones)

Powered By

Our Social Media Presence