FortunePanda Terminal Demo API
Ver=2024.09.13
API URL
URL : [Link]
API Notes
1、 When calculating sign, all strings should convert to lowercase。
2、 The length of string should not exceed 63 bits
3、 About Signature
{
agentName:agent01
agentkey:cb71121e4569433986bf401a347a7649
time:1595756537
sign= md5((agentName+time+agentKey).toLowcase());
ex:
sign=md5(agent011595756537cb71121e4569433986bf401a347a7649)=1097bf94d4
fa4a70641fc396ea1868ab
reference: [Link]
action=getgamelist&agentName=agent01&time=1595756537&sign=1097bf94d4fa4
a70641fc396ea1868ab
note:Time will expire after being used successfully once and needs to be replaced.
}
API
1、 Agent Login
URL: /ws/[Link]?action=agentLogin
Request: (Method: POST)
parameter type necessity description
agentName string required Agent name
Agent password after being encrypted
agentPasswd string required
by MD5
Time stamp(refer to C # api
time long required
[Link]())
Response
parameter type description
code int Result code(200:success,201:failure)
parameter type description
If result code is 201, this field will show message to tell
msg string
the reason,Otherwise, there is no such field.
Use this field to calculate signature in subsequent
agentKey string API(notice:This field will change every time after the
API agentLogin is successfully called)
Balance string The balance of agent
reference:
[Link]
action=agentLogin&agentName=agent01&agentPasswd=e10adc3949ba59abbe56e057f20f883e&time=15
98452539
call specifications: less than 30 times per minutes(< 30/M)
2、 Register User Account
URL: /ws/[Link]?action=registerUser
Request: (Method: POST)
parameter type necessity description
Account of players,The length should
account string required
be between 6 to 32 chars.
Player password after being encrypted
passwd string required
by MD5
agentName string required Agent name
Time stamp(refer to C # api
time long required
[Link]())
sign string required =md5(agentName+time+agentKey)
Notice:When calculating sign, all strings should convert to
lowercase,for example:
Md5([Link]() + [Link]()+[Link]())
Response
parameter type description
code int Result code(200:success,201:failure)
If result code is 201 this field will show message to tell
msg string
the reason,Otherwise, there is no such field.
reference:
[Link]
action=registerUser&account=test01&passwd=e10adc3949ba59abbe56e057f20f883e&agentName=agent
01&time=1598452539&sign=7b35f60db33dcfd237fdb48cb5de97c5
call specifications: less than 30 times per minutes(< 30/M)
3、 Query User Information
URL: /ws/[Link]?action=queryInfo
Request: (Method: POST)
parameter type necessity description
Account of players,The length should
account string required
be between 6 to 32 chars.
Player password after being encrypted
passwd string required
by MD5
agentName string required Agent name
Time stamp(refer to C # api
time long required
[Link]())
sign string required md5(agentName+time+agentKey)
Response
parameter type description
code int Result code(200:success,201:failure)
If result code is 201 this field will show message to tell
msg string
the reason,Otherwise, there is no such field.
agentBalanc
string The balance of agent.
e
gameId int The game id of user.
userbalance string The balance of user.
reference:
[Link]
action=queryInfo&account=test01&passwd=e10adc3949ba59abbe56e057f20f883e&agentName=agent01
&time=1598452539&sign=7b35f60db33dcfd237fdb48cb5de97c5
call specifications: less than 30 times per minutes(< 30/M)
4、 GetGameList
URL: /ws/[Link]?action=getgamelist
Request: (Method: POST)
parameter type necessity description
agentName string required Agent name
Time stamp(refer to C # api
time long required
[Link]())
parameter type necessity description
sign string required md5(agentName+time+agentKey)
Response
parameter type description
code int Result code(200:success,201:failure)
{"kindId":2039,"gameName":"Raging Kingdom
3D","gameType":"FISH","gameLogo":"[Link]
data json
[Link]/download/Raging Kingdom [Link]"}
If result code is 201 this field will show message to tell
msg string
the reason,Otherwise, there is no such field.
reference:
[Link]
action=getgamelist&agentName=agent01&time=1598452539&sign=7b35f60db33dcfd237fdb48cb5de97b
5
call specifications: less than 30 times per minutes(< 30/M)
5、 EnterGame
URL: /ws/[Link]?action=entergame
Request: (Method: POST)
parameter type necessity description
Account of players,The length should
account string required
be between 6 to 32 chars.
Player password after being encrypted
passwd string required
by MD5
agentName string required Agent name
The game player want to play, the
kindId string required same field ‘kindId ‘ return from API
getgamelist.
redirectUrl string optional Callback url when game exited.
Time stamp(refer to C # api
time long required
[Link]())
sign string required md5(agentName+time+agentKey)
Response
parameter type description
code int Result code(200:success,201:failure)
If result code is 201 this field will show message to tell
msg string
the reason,Otherwise, there is no such field.
agentBalanc
string The balance of agent.
e
gameId int The game id of user.
userbalance string The balance of user.
The quick login url for web game.
Referrence: [Link]
webLoginUrl string OdGUUuFv+P0tyZjRXVrsOBWOvHe66hjtOpLjR4YDeLnQ
vmCLSh7t53rIB6bm7Kw8
reference:
[Link]
action=entergame&account=test01&passwd=e10adc3949ba59abbe56e057f20f883e&agentName=agent0
1&kindId=2039&time=1598452539&sign=7b35f60db33dcfd237fdb48cb5de97c5
call specifications: less than 30 times per minutes(< 30/M)
6、 Change The Password Of User.
URL: /ws/[Link]?action=changePasswd
Request: (Method: POST)
parameter type necessity description
Account of players,The length should
account string required
be between 6 to 32 chars.
Player password after being encrypted
passwd string required
by MD5
New player password after being
passwdNew string required
encrypted by MD5
agentName string required Agent name
Time stamp(refer to C # api
time long required
[Link]())
sign string required =md5(agentName+time+agentKey)
Response
parameter type description
code int Result code(200:success,201:failure)
If result code is 201 this field will show message to tell
msg string
the reason,Otherwise, there is no such field.
reference:
[Link]
action=changePasswd&account=test01&passwd=e10adc3949ba59abbe56e057f20f883e&passwdnew=e10
adc3949ba59abbe56e057f20f883e&agentName=agent01&time=1598452539&sign=7b35f60db33dcfd237f
db48cb5de97c5
call specifications: less than 30 times per minutes(< 30/M)
7、 Recharge
URL: /ws/[Link]?action=recharge
Request: (Method: POST)
parameter type necessity description
Account of players,The length should
account string required
be between 6 to 32 chars.
amount int required Amount to be recharged in cents.
agentName string required Agent name
Time stamp(refer to C # api
time long required
[Link]())
sign string required =md5(agentName+time+agentKey)
Response
parameter type description
code int Result code(200:success,201:failure)
If result code is 201 this field will show message to tell
msg string
the reason,Otherwise, there is no such field.
reference:
[Link]
action=recharge&account=test01&amount=1&agentName=agent01&time=1598452539&sign=7b35f60db
33dcfd237fdb48cb5de97c5
Notice:After recharged or redeemed through the terminal API
successfully, Remark field of Transaction Detail in web management
system will be recorded as ‘terminal’+timestamp.
call specifications: less than 30 times per minutes(< 30/M)
8、 Redeem
URL: /ws/[Link]?action=redeem
Request: (Method: POST)
parameter type necessity description
Account of players,The length should
account string required
be between 6 to 32 chars.
amount int required Amount to be redeemed in cents.
agentName string required Agent name
Time stamp(refer to C # api
time long required
[Link]())
sign string required =md5(agentName+time+agentKey)
Response
parameter type description
code int Result code(200:success,201:failure)
If result code is 201 this field will show message to tell
msg string
the reason,Otherwise, there is no such field.
reference:
[Link]
action=redeem&account=test01&amount=1&agentName=agent01&time=1598452539&sign=7b35f60db3
3dcfd237fdb48cb5de97c5
call specifications: less than 30 times per minutes(< 30/M)
9、 Get trade record
URL: /ws/[Link]?action=getTradeRecord
Request: (Method: POST)
parameter type necessity description
agentName string required Agent name
account string required Account of players,The length should
parameter type necessity description
be between 6 to 32 chars.
fromDate string required The start time of this query.
toDate string required End time of this query
Time stamp(refer to C # api
time long required
[Link]())
sign string required =md5(agentName+time+agentKey)
Notice:The time span between “fromDate” and “toDate” should be
less than 1 month. You can only query the transaction records within
1 month from the current time at most.
Response
parameter type description
code int Result code(200:success,201:failure)
[{"account":"tian22","gameId":100131,"balanceBefore
":100.00,"score":-50.00,"insertTime":"2023/5/4
[Link]"}]
data json
Data field explanation
balanceBefore:balance before redeem or recharge.
insertTime: redeem/recharge date.
If result code is 201 this field will show message to tell
msg string
the reason,Otherwise, there is no such field.
reference:
[Link]
action=getTradeRecord&account=test01&agentName=agent01&fromDate=2023-04-01
[Link]&toDate=2023-05-01 [Link]&time=1598452539&sign=7b35f60db33dcfd237fdb48cb5de97c5
Notice:
1. the ”insertTime” in data field is Beijing time.
2. If the “score” in data field is positive, it indicates recharge
action, and if it is negative, it indicates redeem action.
call specifications: less than 10 times per minutes(< 10/M)
10、 Get Jp record
URL: /ws/[Link]?action=getJpRecord
Request: (Method: POST)
parameter type necessity description
agentName string required Agent name
Account of players,The length should
account string required
be between 6 to 32 chars.
fromDate string required The start time of this query.
toDate string required The end time of this query.
Time stamp(refer to C # api
time long required
[Link]())
sign string required =md5(agentName+time+agentKey)
Notice:The time span between “fromDate” and “toDate” should be
less than 1 month.
Response
parameter type description
code int Result code(200:success,201:failure)
[{"account":"test112","gameId":100283,"type":"Mini","
data json
score":26.13,"insertTime":"2023/5/4 [Link]"}]
If result code is 201 this field will show message to tell
msg string
the reason,Otherwise, there is no such field.
reference:
[Link]
action=getjprecord&account=test01&agentName=agent01&fromdate=2023-04-01
[Link]&todate=2023-05-01 [Link]&time=1598452539&sign=7b35f60db33dcfd237fdb48cb5de97c5
Notice:the ”insertTime” in data field is Beijing time.
call specifications: less than 10 times per minutes(< 10/M)
11、 Get game record
URL: /ws/[Link]?action=getGameRecord
Request: (Method: POST)
parameter type necessity description
agentName string required Agent name
Account of players,The length should
account string required
be between 6 to 32 chars.
Time stamp(refer to C # api
time long required
[Link]())
parameter type necessity description
sign string required =md5(agentName+time+agentKey)
Response
parameter type description
code int Result code(200:success,201:failure)
[{"account":"test102","gameId":100567,"balanceBefor
e":11112.79,"totalPlayed":0.10,"totalWin":0.40,"balanc
eNow":11113.19,"reason":"Exit
Game","insertTime":"2023/5/4 [Link]"}]
Data field explanation
data json balanceBefore:balance before game.
totalPlayed: total played.
totalWin: total win.
balanceNow: balance now.
Reason: Recording notes.
insertTime:Recording time.
If result code is 201 this field will show message to tell
msg string
the reason,Otherwise, there is no such field.
reference:
[Link]
action=getGameRecord&account=test01&agentName=agent01&time=1598452539&sign=7b35f60db33dcf
d237fdb48cb5de97c5
Notice:Game records can be traced back to for the last 7 days from
current time.
call specifications: less than 10 times per minutes(< 10/M)