Gosmsgateway HTTP API Sms Center v.1.4
Gosmsgateway HTTP API Sms Center v.1.4
4
Integrate your business with sms gateway
Prepared By :
GoSMSGateway.com
Internet SMS Gateway Service Provider
http://www.gosmsgateway.com
2015
Page 1 of 14
HTTP API Documentation ver. 1.4 | Last Update : 31 Juli 2015 11:56 - www.GoSMSGateway.com
Contents
A. SEND SMS ............................................................................................................................................. 3
A.1. Send an SMS .............................................................................................................................. 3
A.2. Simple Way to Send an SMS ................................................................................................... 4
A.3 Send SMS by Group .................................................................................................................. 4
B. PHONE BOOK ....................................................................................................................................... 5
B.1. Add Phone Book ........................................................................................................................ 5
B.2. Edit Phone Book......................................................................................................................... 5
B.3. Delete Phone Book .................................................................................................................... 6
B.4. Get Contact List .......................................................................................................................... 7
B.5. Get Contact List by Group ........................................................................................................ 7
B.7. Find Name ................................................................................................................................... 8
B.8. Find Phone Number................................................................................................................... 9
C. GROUP ................................................................................................................................................... 9
C.1. Add Group ................................................................................................................................... 9
C.2. Edit Group ................................................................................................................................. 10
C.3. Delete Group ............................................................................................................................ 10
C.4. Get List of Group ...................................................................................................................... 11
C.5. Find Group ................................................................................................................................ 11
D. USER ACCOUNT ............................................................................................................................... 12
D.1. Checking Customer Account Balance .................................................................................. 12
D.2. Change Password ................................................................................................................... 12
E. REPORT ............................................................................................................................................... 13
E.1. Query Status ............................................................................................................................. 13
Page 2 of 14
HTTP API Documentation ver. 1.4 | Last Update : 31 Juli 2015 11:56 - 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://api.gosmsgateway.net:88/api/sendSMS.php?username=xxx&mobile=xxx&message=xxx&
auth=xxxx&trxid=xxxx&type=x
Example:
http://api.gosmsgateway.net:88/api/[email protected]&mobile
=08123456789&message=Hello Word Welcome to SMS Gateway Service Provider In
Indonesia&auth=a717473a18a611a77320e4d44413e494&trxid=sms0000000001&type=0
Parameter
Description
Username
Mobile
Message
Auth
trxID
type
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.4 | Last Update : 31 Juli 2015 11:56 - www.GoSMSGateway.com
http://api.gosmsgateway.net:88/api/Send.php?username=xxx&mobile=xxx&message=xxx&p
assword=xxxx
Example:
http://api.gosmsgateway.net:88/api/[email protected]&mobile=08
123456789&message=Hello Word&password=12345
Parameter
Description
Username
Mobile
Message
Password
http://api.gosmsgateway.net:88/api/SendSMSGroup.php?group=xx&msg=xx&username=xx&au
th=xxx
Example:
http://api.gosmsgateway.net:88/api/SendSMSGroup.php?username=info@gosmsgateway. com
&group=GROUPA&message=Hello Word&auth=16b36f1bbfe38ccec2e5907abef97646
Parameter
Description
Group
Message
Username
Auth
HTTP API Documentation ver. 1.4 | Last Update : 31 Juli 2015 11:56 - www.GoSMSGateway.com
B. PHONE BOOK
B.1. Add Phone Book
Purpose : Add new contact to phone book.
Syntax:
http://api.gosmsgateway.net:88/api/phbkAdd.php?username=xxx
&name=xxx&mobile=xxx&group=xxx&address=xxx&birth=xxx&desc=xxx&auth=xxxx
Example :
http://api.gosmsgateway.net:88/api/[email protected]&name=
KUSTAN&mobile=08123456789&group=GROUPA&address=JAKARTA&birth=19880526&desc
=PROGRAMMER&auth=a59d055a4413058645f0f89c7bbb86f4
Parameter
Description
Username
Name
Mobile
Group
Address
Birth
Desc
Auth
http://api.gosmsgateway.net:88/api/phbkEdit.php?id=xxx&username=xxx
&name=xxx&mobile=xxx&group=xxx&address=xxx&birth=xxx&desc=xxx&auth=xxxx
Example :
http://api.gosmsgateway.net:88/api/phbkAdd.php?id=13&[email protected]&
name=KUSTAN&mobile=08123456789&group=GROUPB&address=JAKARTA&birth=1988052
6&desc=PHP PROGRAMMER&auth=a59d055a4413058645f0f89c7bbb86f4
Page 5 of 14
HTTP API Documentation ver. 1.4 | Last Update : 31 Juli 2015 11:56 - www.GoSMSGateway.com
Parameter
Description
Id
Username
Name
Mobile
Group
Address
Birth
Desc
Auth
Contact ID Number
Username provided to user to connect to our service
Contact Name
Contact mobile number
Contact Group Member
Contact Address
Contact Birthday (yyyymmdd)
Contact Description
MD5(id+password)
http://api.gosmsgateway.net:88/api/phbkDelete.php?id=xxx&username=xxx&
auth=xxxx
Example :
http://api.gosmsgateway.net:88/api/phbkDelete.php?id=3&[email protected]
&auth=5ece4fe12189630e756da5bbe906b82e
Parameter Description
Id
Username
Auth
Contact ID Number
Username provided to user to connect to our service
MD5(id+password)
Page 6 of 14
HTTP API Documentation ver. 1.4 | Last Update : 31 Juli 2015 11:56 - www.GoSMSGateway.com
http://api.gosmsgateway.net:88/api/phbkGetList.php?username=xxx&page=xx&size=xx
&auth=xxxx
Example :
http://api.gosmsgateway.net:88/api/phbkGetList.php?page=1&size=2&username=info@gosmsg
ateway.com&auth=16b36f1bbfe38ccec2e5907abef97646
Parameter
Description
Username
Page
Size
Auth
http://api.gosmsgateway.net:88/api/phbkGetListbyGroup.php?username=xxx&page=xx&si
ze=xx &group=xxx&auth=xxxx
Example :
http://api.gosmsgateway.net:88/api/phbkGetListbyGroup.php?page=2&size=10&group=GROUP
A&[email protected]&auth=16b36f1bbfe38ccec2e5907abef97646
Parameter
Description
Username
Page
Size
Group
Auth
HTTP API Documentation ver. 1.4 | Last Update : 31 Juli 2015 11:56 - www.GoSMSGateway.com
http://api.gosmsgateway.net:88/api/phbkGetCompleteData.php? ID=xx&username=xxx
&auth=xxxx
Example :
http://api.gosmsgateway.net:88/api/phbkGetCompleteData.php?id=1&username=info@gosmsg
ateway.com&auth=16b36f1bbfe38ccec2e5907abef97646
Parameter
Description
id
Username
Auth
Contact ID
Username provided to user to connect to our service
MD5(Username+password)
http://api.gosmsgateway.net:88/api/phbkFindName.php?name=xx&username=xx&auth=xx
Example :
http://api.gosmsgateway.net:88/api/phbkFindName.php?name=KUSTAN&username=info@gos
msgateway.com&auth=16b36f1bbfe38ccec2e5907abef97646
Parameter
Description
Name
Username
Auth
Name to search
Username provided to user to connect to our service
MD5(Username+password)
Page 8 of 14
HTTP API Documentation ver. 1.4 | Last Update : 31 Juli 2015 11:56 - www.GoSMSGateway.com
http://api.gosmsgateway.net:88/api/phbkFindPhNumber.php?no=xx&username=xx&auth=xx
Example :
http://api.gosmsgateway.net:88/api/phbkFindPhNumber.php?no=08123456789&username=info
@gosmsgateway.com&auth=16b36f1bbfe38ccec2e5907abef97646
Parameter Description
No
Username
Auth
C. GROUP
C.1. Add Group
Purpose : Add a new Group Name
Syntax:
http://api.gosmsgateway.net:88/api/groupAdd.php?group=xx&username=xx&auth=xxx
Example :
http://api.gosmsgateway.net:88/api/groupAdd.php?group=GROUP6&username=info@gosmsga
teway.com&auth=8c27d94b5e03ad4895bccf31aaaa77e0
Parameter
Description
Group
Username
Auth
Group Name
Username provided to user to connect to our service
MD5(group+password)
Page 9 of 14
HTTP API Documentation ver. 1.4 | Last Update : 31 Juli 2015 11:56 - www.GoSMSGateway.com
http://api.gosmsgateway.net:88/api/groupEdit.php?id=xx&group=xx&username=xx&auth=
xxx
Example :
http://api.gosmsgateway.net:88/api/groupEdit.php?id=2&group=NEWGROUPEDIT&username=i
[email protected]&auth=2e141f5abc790565dd53e6d92a84160a
Parameter
Description
Id
Group
Username
Auth
Group ID
Group Name
Username provided to user to connect to our service
MD5(id+password)
http://api.gosmsgateway.net:88/api/groupDelete.php?id=xx&username=xx&auth=xx
Example :
http://api.gosmsgateway.net:88/api/groupDelete.php?id=3&[email protected]
m&auth=5ece4fe12189630e756da5bbe906b82
Parameter
Description
Id
Username
Auth
Group ID
Username provided to user to connect to our service
MD5(id+password)
Page 10 of 14
HTTP API Documentation ver. 1.4 | Last Update : 31 Juli 2015 11:56 - www.GoSMSGateway.com
http://api.gosmsgateway.net:88/api/groupGetList.php?page=xx&size=xx&username=xx&a
uth=xx
Example :
http://api.gosmsgateway.net:88/api/groupGetList.php?page=2&size=20&username=info@gosm
sgateway.com&auth=16b36f1bbfe38ccec2e5907abef97646
Parameter
Description
Page
Size
Username
Auth
Page number
Number of record per page
Username provided to user to connect to our service
MD5(username+password)
http://api.gosmsgateway.net:88/api/ groupFindName.php?group=xx&username=xx&auth=xx
Example :
http://api.gosmsgateway.net:88/api/groupFindName.php?group=GROUPA&username=info@go
smsgateway.com&auth=16b36f1bbfe38ccec2e5907abef97646
Parameter
Description
Group
Username
Auth
Group Name
Username provided to user to connect to our service
MD5(username+password)
Page 11 of 14
HTTP API Documentation ver. 1.4 | Last Update : 31 Juli 2015 11:56 - www.GoSMSGateway.com
D. USER ACCOUNT
D.1. Checking Customer Account Balance
Purpose : Retrieve account balance
Syntax :
http://api.gosmsgateway.net:88/api/creditsleft.php?username=xxx&auth=xxx
Example :
http://api.gosmsgateway.net:88/api/[email protected]&auth=
16b36f1bbfe38ccec2e5907abef97646
Parameter
Description
Username
Password
Auth
http://api.gosmsgateway.net:88/api/ChangePassword.php?username=xxx&newpasw
=xx&auth=xxx
Example :
http://api.gosmsgateway.net:88/api/[email protected]
m&newpass=anonymous&auth=e6b9a978102f5cfab2d3ea06406ce105
Parameter
Description
Username
newpass
Auth
HTTP API Documentation ver. 1.4 | Last Update : 31 Juli 2015 11:56 - www.GoSMSGateway.com
E. REPORT
E.1. Query Status
Purpose : To get delivery status
Syntax :
http://api.gosmsgateway.net:88/api/report.php?idmsg=xx&username=xxx&auth=xxx
Example :
http://api.gosmsgateway.net:88/api/report.php?idmsg=21&[email protected]
&auth=16b36f1bbfe38ccec2e5907abef97646
Parameter
Description
idmsg
newpass
Auth
Message ID
New Password
MD5(username+oldpassword)
http://api.gosmsgateway.net:88/api/reportList.php?page=x&size=x&username=xxx&auth=xx
Example :
http://api.gosmsgateway.net:88/api/reportList.php?page=2&size=10&username=info@gosmsga
teway.com&auth=16b36f1bbfe38ccec2e5907abef97646
Parameter
Description
Username
Page
Size
Auth
HTTP API Documentation ver. 1.4 | Last Update : 31 Juli 2015 11:56 - www.GoSMSGateway.com
F. Return Code
HTTP Return Code:
Return Code Description
1701
1702
1703
1704
1705
1706
1707
1708
1709
Success
Invalid Username or Password
Internal Server Error
Data not found
Process Failed
Invalid Message
Invalid Number
Insufficient Credit
Group Empty
1711
1712
1713
1721
1722
1731
1732
1733
1734
1735
Notes:
1. For searching, only return the first 10 rows
2. Each field delimited with Char(128), and records delimited with char(129).
: [email protected]
: +62 8999-0000-60
Page 14 of 14
HTTP API Documentation ver. 1.4 | Last Update : 31 Juli 2015 11:56 - www.GoSMSGateway.com