HOW TO SHOP

1 Login or create new account.
2Buy credits.
3Start sending SMS

If you still have any problems, let us know by sending an email to support@nettyfish.com . Thank you!

CONTACT

+91-8608666111
+91-8608666222

 

 

Want to see how our SMS software works?

Developers API

HTTP to SMS API

 

The EAPI (HTTP to SMS API) is a RESTful API that uses simple query parameters 
via URLs.If you can put together a Web page with a form,backed by a scripting 
language(e.g. PHP), you already have most of the skills that you need to send 
SMSs. To get started, read the EAPI manual - or jump straight to Code Samples 
have something up and running in minutes without needing to buy anything.

 

 

C#

 

protected internal string Send_REMS_SMS(string MobileNO, string MSG)
{
        string result = "";
        try
        {
            HttpWebRequest request = (HttpWebRequest)
            WebRequest.Create("http://nettyhost.com/smsapi/TR/sendmsg.aspx?&username=xxxxxxx&password=xxxxxxxxx&mobile="+MobileNO+"&sendername=TESTSN&message="+MSG+"));
            HttpWebResponse response = (HttpWebResponse)request.GetResponse();
            Stream responseStream = response.GetResponseStream();
            StreamReader readStream = new StreamReader(responseStream, Encoding.UTF8);
            result = readStream.ReadToEnd();
        }
        catch (HttpException ex)
        {
            result = "HTTP Error: " + ex.ToString();
        }
        catch (Exception ex)
        {
            result = "Error: " + ex.ToString();
        }
        //return "100 - Msg successfully sent.";
        return result;
}

VB.Net Code

 
Imports System
Imports System.IOImports System.Net
Imports System.Text
Partial Class _Default
Inherits System.Web.UI.Page
Protected Sub Page_Load(ByVal sender As Object,
ByVal e As System.EventArgs)
Handles Me.Load
Dim sURL As String
Dim objReader As StreamReader
sURL="http://nettyhost.com/smsapi/TR/sendmsg.aspx?username="& sUser &
“&password=” & sPassword & “&mobile=” & sNumber & “&sendername=” & sSenderID &
“&message=” & sMessage
Dim sResponse As WebRequest
sResponse = WebRequest.Create(sURL)
Try
Dim objStream As Stream
objStream = sResponse.GetResponse.GetRe
sponseStream()
objReader = New StreamReader(objStream)
Response.Write(objReader.ReadToEnd())
objReader.Close()
Catch ex As Exception
ex.Message
End Try
End Sub
End Class
                                    
 

PHP Code

 
//======== Simple PHP code sample ==========//
/*
* This example requires allow_url_fopen to be enabled in php.ini. 
* If it is not enabled, file_get_contents()
* will return an empty result. 
* 
* We recommend that you use port 5567 instead of port 80, but your
* firewall will probably block access to this port (see FAQ for more
* details):
* $url = nettyhost.com/smsapi/TR/sendmsg.aspx?;
* 
* Please note that this is only for illustrative purposes, 
* we strongly recommend that you use our comprehensive example
*/
$url = http://nettyhost.com/smsapi/TR/sendmsg.aspx?username=your_username&password=your_password&message='.urlencode('Testing SMS').'&mobile='.urlencode($msisdn).'&sendername=TESTSN;
//print $response;
	$response = @file_get_contents($url);
	if ($response === false) {
		print "Problem reading data from $url, No status returned\n";
	}
	return $response;

Key features

 

•	All submissions are made using simple query parameters.
•	Send and receive text messages globally – view our SMS coverage table.
•	Reliable, proven high-volume platform, running on redundant, high 
        availability hardware.
•	Receive reply messages from phones (two-way SMS), without needing 
        dedicated numbers or any extra effort on your part.
•	View detailed reports of all messages sent. Messages sent or received 
        via APIs appear with the rest of your message history.
•	Mobile Originating (MO) reply messages and delivery reports 
         (status reports) are pushed to a URL of your choice.
•	Language-neutral: being HTTP-based, integration is possible from 
         almost any language (PHP, C#, Java, Perl, etc.)
•	Unicode SMS support (70 characters in length).
•	Concatenated message support (messages longer than 160 characters).
•	Support for binary messages (WAP Push, vCards, etc.) 

 

URL

Allows you to send a single message to one or more recipients or groups (as 
defined in your phone book). Example (to two recipients, text Hi Mom & Dad 
- note URL-encoding):
http://nettyhost.com/smsapi/TR/sendmsg.aspx?username=xxxxxx&password=xxxxx
&message=Hi Mom & Dad&sendername=TESTSN&mobile=8608666333
This example is so simple that it can be pasted into a browser's location 
bar. However, please do not use HTTP GET in production - use only POST. 
To ensure that you are using POST correctly, please use the Code Samples 
as a basis. 
 

Format

 

Sending SMS :

http://nettyhost.com/smsapi/TR/sendmsg.aspx?username=xxxx&password=xxxxx&message=test message&sendername=TESTSN&mobile=8608666333

For Balance Checking :

http://nettyhost.com/smsapi/TR/balanceinfo.aspx?username=xxxxx&password=xxxxx

For Delivery Report :

http://nettyhost.com/smsapi/TR/getReports.aspx?&username=xxxxx&password=xxxxx&FromDate=2015-07-26 00:00:01&ToDate=2015-07-27 23:59:59

For Message Status :

 http://nettyhost.com/smsapi/TR/messagestatus.aspx?username=xxxxx&password=xxxxx&jobid=xxxxx
                                

 

TOP