First , sending message: www.sms.gateway.sa/api/sendsms.php?username=@user&password=@pass&message=test&numbers=@mobile&sender=@sender&unicode=e&Rmduplicated=1&return=xml Sending with Post and Get : Variables and its function: 1- compulsory variables username&user name = password&password = message&message = numbers&numbers = sender&sender name = 2- optional variables : It responsible for the way the data return "return" If the result of "return"left empty ,will appear "numerical error code" -to return the result in Jsontype , write retrun=Json& -to return the result in XMLtype , write retrun=xml & -to return the error meaning in string type , write retrun= string & -Rmduplicated If you do not put it in the url? sendto the repeated numbers . Case you put it with value 0 ? also send to the repeated numbers. But if you put it with value 1 ? not send to to the repeated numbers. • Sending at later time must be as follows" YYYY-mm-ddHH:mm =datetime& - ex:2011-02-24 23:30 www.sms.gateway.sa/api/sendsms.php?username=@user&password=@pass&numbers=@mobile&message=@message&sender=@sender&datetime=YYYY-MMM-DD HH:MM Error Code : 100 -- >numbers received successfully 101 -- > incomplete data 102 -- >incorrect user name 103 -- >incorrect password 104 -- >error in data base 105 -- >credit not enough 106 -- > sender name is invalid 107 -- > sender name is blocked 108 -- >ther aren't valid numbers to send 109 -- >can't send to more than 8 parts 110 -- > error insaving thesending results 111 -- >sending is closed 112 -- >the message contain blocked word 113 -- > the account is inactive 114 -- >the account is disabled 115 -- >mobile not activated 116 -- >email not activated 117 -- >the message is empty , cannot be sent 1010 -- > error in encryption 1011 -- >user namenot found 1012 -- >paswordnot found 1013 -- >message text not found 1014 -- >receiver number not found 1015 -- >sender name is empty • Second the Credit www.sms.gateway.sa/api/getbalance.php?username=@user&password=@pass&hangedBalance=true Sending with Post and Get : Variables and its function: 1- compulsory variables username&user name = password&password = 2- optional variables : It responsible for the way the data return "return" -to return the result in Jsontype , write retrun=Json& -to return the result in XML type , write retrun= xml & -to return the error meaning in string type , write retrun= string & If we put "return" empty ,will appear the balance not the code 117 "the credit is obtained" • To know thehangedBalance,write the following: .true =hangedBalance& - hangedBalancevaluemust be "true " to obtain the hangedBalance. Error Code : 101 -- > incomplete data 102 -- > incorrect user name 103 -- > incorrect password 104 -- > there is no credit in the account 111 -- >sending is closed 113 -- > the account is inactive 114 -- >the account is disabled 115 -- >mobile not activated 116 -- >email not activated 117 -- >creditobtained