Orionstars
Orionstars agent API: login, users, game list, enter game, recharge, redeem and records.
- Sections
- 13
Introduction#
OS Terminal API v1.2
API URL#
API Notes#
- When calculating sign, all strings should convert to lowercase。
- The length of string should not exceed 63 bits
Agent Login#
URL: /ws/service.ashx?action=agentLogin
Request: (Method: POST)
| parameter | type | necessity | description |
|---|---|---|---|
| agentName | string | required | Agent name |
| agentPasswd | string | required | Agent password after being encrypted by MD5 |
| time | long | required | Time stamp(refer to C # api System.currentTimeMillis()) |
Response
| parameter | type | description |
|---|---|---|
| code | int | Result code(200:success,201:failure) |
| msg | string | If result code is 201, this field will show message to tell the reason,Otherwise, there is no such field. |
| agentKey | string | Use this field to calculate signature in subsequent API(notice:This field will change every time after the API agentLogin is successfully called) |
| Balance | int | The balance of agent |
reference:
https://orionstars.vip:8033/ws/service.ashx?action=agentLogin&agentName=agent01&agentPasswd=e10adc3949ba59abbe56e057f20f883e&time=1598452539
Register User Account#
URL: /ws/service.ashx?action=registerUser
Request: (Method: POST)
| parameter | type | necessity | description |
|---|---|---|---|
| account | string | required | Account of players,The length should be between 6 to 32 chars. |
| passwd | string | required | Player password after being encrypted by MD5 |
| agentName | string | required | Agent name |
| time | long | required | Time stamp(refer to C # api System.currentTimeMillis()) |
| sign | string | required | =md5(agentName+time+agentKey) |
Notice:When calculating sign, all strings should convert to lowercase,for example:
Md5(agentName.toLower() + time.toString()+agentKey.toLower())
Response
| parameter | type | description |
|---|---|---|
| code | int | Result code(200:success,201:failure) |
| msg | string | If result code is 201 this field will show message to tell the reason,Otherwise, there is no such field. |
reference:
Query User Information#
URL: /ws/service.ashx?action=queryInfo
Request: (Method: POST)
| parameter | type | necessity | description |
|---|---|---|---|
| account | string | required | Account of players,The length should be between 6 to 32 chars. |
| passwd | string | required | Player password after being encrypted by MD5 |
| agentName | string | required | Agent name |
| time | long | required | Time stamp(refer to C # api System.currentTimeMillis()) |
| sign | string | required | md5(agentName+time+agentKey) |
Response
| parameter | type | description |
|---|---|---|
| code | int | Result code(200:success,201:failure) |
| msg | string | If result code is 201 this field will show message to tell the reason,Otherwise, there is no such field. |
| agentBalance | int | The balance of agent. |
| gameId | int | The game id of user. |
| userbalance | int | The balance of user. |
| webLoginUrl | string | The quick login url for web game. Referrence: http://play.orionstars.vip/?OdGUUuFv+P0tyZjRXVrsOBWOvHe66hjtOpLjR4YDeLnQvmCLSh7t53rIB6bm7Kw8 |
reference:
Change The Password Of User#
URL: /ws/service.ashx?action=changePasswd
Request: (Method: POST)
| parameter | type | necessity | description |
|---|---|---|---|
| account | string | required | Account of players,The length should be between 6 to 32 chars. |
| passwd | string | required | Player password after being encrypted by MD5 |
| passwdNew | string | required | New player password after being encrypted by MD5 |
| agentName | string | required | Agent name |
| time | long | required | Time stamp(refer to C # api System.currentTimeMillis()) |
| sign | string | required | =md5(agentName+time+agentKey) |
Response
| parameter | type | description |
|---|---|---|
| code | int | Result code(200:success,201:failure) |
| msg | string | If result code is 201 this field will show message to tell the reason,Otherwise, there is no such field. |
reference:
Recharge#
URL: /ws/service.ashx?action=recharge
Request: (Method: POST)
| parameter | type | necessity | description |
|---|---|---|---|
| account | string | required | Account of players,The length should be between 6 to 32 chars. |
| amount | int | required | Amount to be recharged |
| agentName | string | required | Agent name |
| time | long | required | Time stamp(refer to C # api System.currentTimeMillis()) |
| sign | string | required | =md5(agentName+time+agentKey) |
Response
| parameter | type | description |
|---|---|---|
| code | int | Result code(200:success,201:failure) |
| msg | string | If result code is 201 this field will show message to tell the reason,Otherwise, there is no such field. |
reference:
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.
Redeem#
URL: /ws/service.ashx?action=redeem
Request: (Method: POST)
| parameter | type | necessity | description |
|---|---|---|---|
| account | string | required | Account of players,The length should be between 6 to 32 chars. |
| amount | int | required | Amount to be redeemed. |
| agentName | string | required | Agent name |
| time | long | required | Time stamp(refer to C # api System.currentTimeMillis()) |
| sign | string | required | =md5(agentName+time+agentKey) |
Response
| parameter | type | description |
|---|---|---|
| code | int | Result code(200:success,201:failure) |
| msg | string | If result code is 201 this field will show message to tell the reason,Otherwise, there is no such field. |
reference:
Get download code#
URL: /ws/service.ashx?action=getDownloadCode
Request: (Method: POST)
| parameter | type | necessity | description |
|---|---|---|---|
| agentName | string | required | Agent name |
| time | long | required | Time stamp(refer to C # api System.currentTimeMillis()) |
| sign | string | required | md5(agentName+time+agentKey) |
Response
| parameter | type | description |
|---|---|---|
| code | int | Result code(200:success,201:failure) |
| downloadCode | string | Download code |
| msg | string | If result code is 201 this field will show message to tell the reason,Otherwise, there is no such field. |
reference:
Get trade record#
URL: /ws/service.ashx?action=getTradeRecord
Request: (Method: POST)
| parameter | type | necessity | description |
|---|---|---|---|
| agentName | string | required | Agent name |
| account | string | required | Account of players,The length should be between 6 to 32 chars. |
| fromDate | string | required | The start time of this query. |
| toDate | string | required | End time of this query |
| time | long | required | Time stamp(refer to C # api System.currentTimeMillis()) |
| 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) |
| data | json | |
| msg | string | If result code is 201 this field will show message to tell the reason,Otherwise, there is no such field. |
reference:
Notice:
- the ”insertTime” in data field is Beijing time.
- If the “score” in data field is positive, it indicates recharge action, and if it is negative, it indicates redeem action.
Get Jp record#
URL: /ws/service.ashx?action=getJpRecord
Request: (Method: POST)
| parameter | type | necessity | description |
|---|---|---|---|
| agentName | string | required | Agent name |
| account | string | required | Account of players,The length should 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 | long | required | Time stamp(refer to C # api System.currentTimeMillis()) |
| 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) |
| data | json | |
| msg | string | If result code is 201 this field will show message to tell the reason,Otherwise, there is no such field. |
reference:
Notice:the ”insertTime” in data field is Beijing time.
Get game record#
URL: /ws/service.ashx?action=getGameRecord
Request: (Method: POST)
| parameter | type | necessity | description |
|---|---|---|---|
| agentName | string | required | Agent name |
| account | string | required | Account of players,The length should be between 6 to 32 chars. |
| time | long | required | Time stamp(refer to C # api System.currentTimeMillis()) |
| sign | string | required | =md5(agentName+time+agentKey) |
Response
| parameter | type | description |
|---|---|---|
| code | int | Result code(200:success,201:failure) |
| data | json | |
| msg | string | If result code is 201 this field will show message to tell the reason,Otherwise, there is no such field. |
reference:
Notice:Game records can be traced back to for the last 7 days from current time.
