How to Check Bulk SMS Indonesia Balance With C#
Using Bulk SMS Indonesia API, you can check your SMS balance in your C# application and make it more convenient for your users to check their SMS balance.
To understand more about our Bulk SMS Indonesia API Key features, please visit our Developer API page.
All available features and configurations will be displayed at the Bulk SMS Indonesia Developer API page. Integrate our Check SMS Balance feature into your C# application and enjoy our SMS services.
Please click below to find out about our send SMS API in other programming languages.
Please ensure you have registered yourself with Bulk SMS Indonesia so you can replace the following information inside the script sample below. If you have not registered, click HERE to join.
- Bulk SMS Indonesia Username
- Bulk SMS Indonesia Password
Below is a simple sample code for integrating C# SMS Client to your application.
One of the benefits of using C# is you can multiple types of messages, e.g VCard, Flash SMS, calendars, ringtones and so on.
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Diagnostics;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Net;
using System.Windows.Forms;
using System.IO;
using Microsoft.VisualBasic;
namespace WindowsFormsApplication2
{
public partial class frmChkBal : Form
{
public frmChkBal()
{
InitializeComponent();
}
private void frmChkBal_Load(object sender, EventArgs e)
{
this.txtUser.Select();
}
private void btnChkBal_Click(object sender, EventArgs e)
{
// Create a new 'Uri' object with the specified string.
Uri url = new Uri("http://isms.com.my/isms_balance.php?un=" + txtUser.Text + "&pwd=" + txtPass.Text);
// Create a new request to the above mentioned URL.
WebRequest myweb = WebRequest.Create(url);
// Assign the response object of 'WebRequest' to a 'WebResponse' variable.
WebResponse mywebres = myweb.GetResponse();
StreamReader read = new StreamReader(mywebres.GetResponseStream());
// Read the whole string.
String balance_str = read.ReadToEnd();
// Replacing the label to user balance.
lblGetBal.Text = balance_str;
}
}
}
After you have compiled and run the C# scripts, start by filling in your username and password of your iSMS account. Click "Check Balance" to start checking the balance.
The "Balance" section will retrieve the actual sms balance from the system and display it in the window as shown below.
If you are interested in developing your own application in checking Bulk SMS Indonesia balance with C#, we have provided a demo file for you to download.
Download C# Demo FileOther Contact Methods
For further enquiries, please contact us via the information below:E-mail | sales@mobiweb.com.my
Note to registered users: Please include your Username in the email.
Phone Numbers:
|