PINOY GAMERZ

WELCOME THIS SITE !!
PINOY GAMERZ IS HERE !!
REGISTER NOW !!

Welcome to Pinoy Gamerz

SoldierFront V.I.P Hack ... Click Here !!

G4 Free SMS Server - Application Interface(API) Tutorial

Share
avatar
[PG]Community

Join date : 2015-03-24

G4 Free SMS Server - Application Interface(API) Tutorial

Post by [PG]Community on Sat Mar 28, 2015 8:07 pm

Our Free SMS Server has an Applciation Interface(API) for developers. use it all you want for free as long as you don't violate Human Rights.






How to use it:
the API link is @ http://rnzlocalpc.g4technologiesph.com/smsapi.aspx






So how can I intergrate it to my software ?
Simple ! all you need is to send POST data to it using this data:
Number = (11 Digit Philippines Cell # Ex. 09061067930)
Message = (Your 160 Character Message)
Server = (Your desired Server to use).


What are the available servers ?
Server Name = Globe (Lucena I.T. Gateway Official)
Server Code = SERVER1






So i know how it works. can you provide me a function for some programming language to use with that ? OK Here's for C#










code:


///
/// Sends SMS using G4 Software Solutions PH Free SMS Server.
///

///11 Digit Philippines Number String. (Ex. 09061067930)
///160 Characters Message String.
///Preferred G4 Software Solutions SMS Server String
///g4sendsms("09061067930", "My Message", "SERVER1");
///Int32 Result Code
public static int g4sendsms(string num, string msg, string server)
{
using (System.Net.WebClient client = new System.Net.WebClient())
{
System.Collections.Specialized.NameValueCollection postdata = new System.Collections.Specialized.NameValueCollection ();
string url = "http://rnzlocalpc.g4technologiesph.com/smsapi.aspx";
postdata.Add("Number", num);
postdata.Add("Message", msg);
postdata.Add("Server", server);
byte[] res = client.UploadValues(url, "POST", postdata);
return Int32.Parse(System.Text.Encoding.ASCII.GetString(r es));
}
}


How to use the function ? simple
Code:


g4sendsms("11 DIGIT PHILIPPINES NUMBER", "160 CHARACTERS MESSAGE", "YOUR PREFERRED SERVER");


it returns an Int32 Result Code.
Result Codes are:
0 = Message Sent
1 = SMS Server Internal Error
2 = SMS Server Currently Not Available
3 = Parameter Error
4 = Server Doesen't Exist
5 = Number Error
6 = Message Character Count Exceed 160 Limit.


That's it other programming languages function will be released soon.


Please dont abuse the API or i will block you from using the Application Interface..


Currently Blocked IP's:
124.104.176.181
185.44.195.72


API Update: server API doesn't accept browser address bar post queries anymore. Please use HTTP SEND instead. this feature is being abused by many people so i decided to remove it from the code. this API is for PROGRAMMERS/DEVELOPERS

    Current date/time is Sat Dec 16, 2017 2:58 pm