GOSMSGATEWAY-HTTP-API-MODULE-V.1.6
GOSMSGATEWAY-HTTP-API-MODULE-V.1.6
6
Integrate your business with sms gateway
Prepared By :
GoSMSGateway.com
Internet SMS Gateway Service Provider
http://www.gosmsgateway.com
2016
Page 1 of 14
HTTP API Documentation ver. 1.6 | Last Update : 08 Jan 2016 02:11 - www.GoSMSGateway.com
Contents
Page 2 of 14
HTTP API Documentation ver. 1.6 | Last Update : 08 Jan 2016 02:11 - www.GoSMSGateway.com
A. SEND SMS
A.1. Send an SMS
Purpose : To send sms by sending encrypted passwords and Client trxID to avoid duplicate sms
Syntax:
http://<SERVERNAME>/api/sendSMS.php?username=xxx&mobile=xxx&message=xxx&auth=x
xxx&trxid=xxxx&type=x
Example:
http://api.gosmsgateway.net/api/sendSMS.php?username=jhonny&mobile=08123456789&mess
age=Hello Word Welcome to SMS Gateway Service Provider In
Indonesia&auth=a717473a18a611a77320e4d44413e494&trxid=sms0000000001&type=0
Parameter Description
Note :
1. For the account type of numeric sender id (sms standard), unicode supported by all
operators. Alpha sender account, unicode is not supported by Telkomsel and XL.
2. When the type of message is Unicode (3), then the message must be in hexadecimal
format.
For Example : こんにちは世界
Hexadecimal : 30533093306B3061306F4E16754C
Page 3 of 14
HTTP API Documentation ver. 1.6 | Last Update : 08 Jan 2016 02:11 - www.GoSMSGateway.com
A.2. Simple Way to Send an SMS
Purpose : The simple way to send an SMS
Syntax:
http://<SERVERNAME>/api/Send.php?username=xxx&mobile=xxx&message=xxx&password=x
xxx
Example:
http://api.gosmsgateway.net/api/Send.php?username=jhonny&mobile=08123456789&message
=Hello Word&password=12345
Parameter Description
http://<SERVERNAME>/api/SendSMSGroup.php?group=xx&message=xx&username=xx&auth
=xxx
Example:
http://api.gosmsgateway.net/api/SendSMSGroup.php?username=jhonny&group=GROUPA&me
ssage=Hello Word&auth=16b36f1bbfe38ccec2e5907abef97646
Parameter Description
Page 4 of 14
HTTP API Documentation ver. 1.6 | Last Update : 08 Jan 2016 02:11 - www.GoSMSGateway.com
B. PHONE BOOK
B.1. Add Phone Book
Purpose : Add new contact to phone book.
Syntax:
http://<SERVERNAME>/api/phbkAdd.php?username=xxx&name=xxx&mobile=xxx&group=xxx&
address=xxx&birth=xxx&desc=xxx&auth=xxxx
Example :
http://api.gosmsgateway.net/api/phbkAdd.php?username=jhonny&name=KUSTAN&mobile=081
23456789&group=GROUPA&address=JAKARTA&birth=19880526&desc=PROGRAMMER&aut
h=a59d055a4413058645f0f89c7bbb86f4
Parameter Description
http://<SERVERNAME>/api/phbkEdit.php?id=xxx&username=xxx&name=xxx&mobile=xxx&gro
up=xxx&address=xxx&birth=xxx&desc=xxx&auth=xxxx
Example :
http://api.gosmsgateway.net/api/phbkAdd.php?id=13&username=jhonny&name=KUSTAN&mob
ile=08123456789&group=GROUPB&address=JAKARTA&birth=19880526&desc=PHP
PROGRAMMER&auth=a59d055a4413058645f0f89c7bbb86f4
Page 5 of 14
HTTP API Documentation ver. 1.6 | Last Update : 08 Jan 2016 02:11 - www.GoSMSGateway.com
Parameter Description
Id Contact ID Number
Username Username provided to user to connect to our service
Name Contact Name
Mobile Contact mobile number
Group Contact Group Member
Address Contact Address
Birth Contact Birthday (yyyymmdd)
Desc Contact Description
Auth MD5(id+password)
http://<SERVERNAME>/api/phbkDelete.php?id=xxx&username=xxx&auth=xxxx
Example :
http://api.gosmsgateway.net/api/phbkDelete.php?id=3&username=jhonny&auth=5ece4fe12189
630e756da5bbe906b82e
Parameter Description
Id Contact ID Number
Username Username provided to user to connect to our service
Auth MD5(id+password)
Page 6 of 14
HTTP API Documentation ver. 1.6 | Last Update : 08 Jan 2016 02:11 - www.GoSMSGateway.com
B.4. Get Contact List
Purpose : To get contact list
Syntax:
http://<SERVERNAME>/api/phbkGetList.php?username=xxx&page=xx&size=xx&auth=xxxx
Example :
http://api.gosmsgateway.net/api/phbkGetList.php?page=1&size=2&username=jhonny&auth=16
b36f1bbfe38ccec2e5907abef97646
Parameter Description
http://<SERVERNAME>/api/phbkGetListbyGroup.php?username=xxx&page=xx&size=xx
&group=xxx&auth=xxxx
Example :
http://api.gosmsgateway.net/api/phbkGetListbyGroup.php?page=2&size=10&group=GROUPA&
username=jhonny&auth=16b36f1bbfe38ccec2e5907abef97646
Parameter Description
Page 7 of 14
HTTP API Documentation ver. 1.6 | Last Update : 08 Jan 2016 02:11 - www.GoSMSGateway.com
B.6. Get Complete Data
http://<SERVERNAME>/api/phbkGetCompleteData.php? ID=xx&username=xxx&auth=xxxx
Example :
http://api.gosmsgateway.net/api/phbkGetCompleteData.php?id=1&username=jhonny&auth=16b
36f1bbfe38ccec2e5907abef97646
Parameter Description
id Contact ID
Username Username provided to user to connect to our service
Auth MD5(Username+password)
http://<SERVERNAME>/api/phbkFindName.php?name=xx&username=xx&auth=xx
Example :
http://api.gosmsgateway.net/api/phbkFindName.php?name=KUSTAN&username=jhonny&auth
=16b36f1bbfe38ccec2e5907abef97646
Parameter Description
Page 8 of 14
HTTP API Documentation ver. 1.6 | Last Update : 08 Jan 2016 02:11 - www.GoSMSGateway.com
B.8. Find Phone Number
Purpose : To search contact by Phone Number
Syntax :
http://<SERVERNAME>/api/phbkFindPhNumber.php?no=xx&username=xx&auth=xx
Example :
http://api.gosmsgateway.net/api/phbkFindPhNumber.php?no=08123456789&username=jhonny
&auth=16b36f1bbfe38ccec2e5907abef97646
Parameter Description
C. GROUP
C.1. Add Group
Purpose : Add a new Group Name
Syntax:
http://<SERVERNAME>/api/groupAdd.php?group=xx&username=xx&auth=xxx
Example :
http://api.gosmsgateway.net/api/groupAdd.php?group=GROUP6&username=jhonny&auth=8c2
7d94b5e03ad4895bccf31aaaa77e0
Parameter Description
Page 9 of 14
HTTP API Documentation ver. 1.6 | Last Update : 08 Jan 2016 02:11 - www.GoSMSGateway.com
C.2. Edit Group
Purpose : Edit an existing Group
Syntax :
http://<SERVERNAME>/api/groupEdit.php?id=xx&group=xx&username=xx&auth=xxx
Example :
http://api.gosmsgateway.net/api/groupEdit.php?id=2&group=NEWGROUPEDIT&username=jho
nny&auth=2e141f5abc790565dd53e6d92a84160a
Parameter Description
Id Group ID
Group Group Name
Username Username provided to user to connect to our service
Auth MD5(id+password)
Syntax :
http://<SERVERNAME>/api/groupDelete.php?id=xx&username=xx&auth=xx
Example :
http://api.gosmsgateway.net/api/groupDelete.php?id=3&username=jhonny&auth=5ece4fe12189
630e756da5bbe906b82
Parameter Description
Id Group ID
Username Username provided to user to connect to our service
Auth MD5(id+password)
Page 10 of 14
HTTP API Documentation ver. 1.6 | Last Update : 08 Jan 2016 02:11 - www.GoSMSGateway.com
C.4. Get List of Group
Purpose : Retrieve list of existing Group
Syntax :
http://<SERVERNAME>/api/groupGetList.php?page=xx&size=xx&username=xx&auth=xx
Example :
http://api.gosmsgateway.net/api/groupGetList.php?page=2&size=20&username=jhonny&auth=1
6b36f1bbfe38ccec2e5907abef97646
Parameter Description
http://<SERVERNAME>/api/ groupFindName.php?group=xx&username=xx&auth=xx
Example :
http://api.gosmsgateway.net/api/groupFindName.php?group=GROUPA&username=jhonny&aut
h=16b36f1bbfe38ccec2e5907abef97646
Parameter Description
Page 11 of 14
HTTP API Documentation ver. 1.6 | Last Update : 08 Jan 2016 02:11 - www.GoSMSGateway.com
D. USER ACCOUNT
D.1. Checking Customer Account Balance
Purpose : Retrieve account balance
Syntax :
http://<SERVERNAME>/api/creditsleft.php?username=xxx&auth=xxx
Example :
http://api.gosmsgateway.net/api/creditsLeft.php?username=jhonny&auth=16b36f1bbfe38ccec2e
5907abef97646
Parameter Description
http://<SERVERNAME>/api/ChangePassword.php?username=xxx&newpass=xx&auth=xxx
Example :
http://api.gosmsgateway.net/api/ChangePassword.php?username=jhonny&newpass=anonymo
us&auth=e6b9a978102f5cfab2d3ea06406ce105
Parameter Description
Page 12 of 14
HTTP API Documentation ver. 1.6 | Last Update : 08 Jan 2016 02:11 - www.GoSMSGateway.com
E. REPORT
E.1. Query Status
Purpose : To get delivery status
Syntax :
http://<SERVERNAME>/api/report.php?idmsg=xx&username=xxx&auth=xxx
Example :
http://api.gosmsgateway.net/api/report.php?idmsg=21&username=jhonny&auth=16b36f1bbfe38
ccec2e5907abef97646
Parameter Description
idmsg Message ID
newpass New Password
Auth MD5(username+oldpassword)
Syntax :
http://<SERVERNAME>/api/reportList.php?page=x&size=x&username=xxx&auth=xx
Example :
http://api.gosmsgateway.net/api/reportList.php?page=2&size=10&username=jhonny&auth=16b
36f1bbfe38ccec2e5907abef97646
Parameter Description
Page 13 of 14
HTTP API Documentation ver. 1.6 | Last Update : 08 Jan 2016 02:11 - www.GoSMSGateway.com
F. Return Code
1701 Success
1702 Invalid Username or Password
1703 Internal Server Error
1704 Data not found
1705 Process Failed
1706 Invalid Message
1707 Invalid Number
1708 Insufficient Credit
1709 Group Empty
Notes:
1. For searching, only return the first 10 rows
2. Each field delimited with Char(128), and records delimited with char(129).
Email : [email protected]
WhatsApp : +62 8999-0000-60
Phone : +62 813-2007-7300
Phone
Page 14 of 14
HTTP API Documentation ver. 1.6 | Last Update : 08 Jan 2016 02:11 - www.GoSMSGateway.com