Interested with Bulk SMS Philippines? Contact Us HERE

Checking Credit Blance With C#

How to Check Credit Balance With C#

Checking credit balance is as easy as sending SMS. You can now send SMS and check SMS balance via your C# application.

Maximize the system performance with iSMS Philippines API keys if you are an enterprise programmer. Our team respond well on the all major programming trends and customer requirements.

Download Check SMS Balance Demo File

Find out more about SMS API Key in other programming languages:

One of the benefits of using C# is you can multiple types of messages, e.g VCard, Flash SMS, calendars, ringtones and so on.

Step 1: Run the sample scripts below.

using System;
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;

}
}
}

Step 2: Enter your username and password and click "Check Balance" to check your credit balance.

How to send sms with c sharp

Step 3: A numeric values return showing your available balance.

How to send sms with c sharp