0% found this document useful (0 votes)
9 views

Game Task

The document describes an API for getting information about game tasks and claiming rewards for completed tasks. It provides the endpoint, parameters, error codes, and sample responses for the GetTaskInfo and ClaimTaskReward actions. The GetTaskInfo response includes details about multiple tasks like their ID, name, required progress, and reward. The ClaimTaskReward allows claiming a reward once a task is finished.

Uploaded by

Christian Scribd
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views

Game Task

The document describes an API for getting information about game tasks and claiming rewards for completed tasks. It provides the endpoint, parameters, error codes, and sample responses for the GetTaskInfo and ClaimTaskReward actions. The GetTaskInfo response includes details about multiple tasks like their ID, name, required progress, and reward. The ClaimTaskReward allows claiming a reward once a task is finished.

Uploaded by

Christian Scribd
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

Get Game Tasks Info

Endpoint: WS/WSGoldService.ashx

Parameters:
action : GetTaskInfo
u : userID
s : signature
t : time

Error Codes:
1 : User does not exist
2 : signature error
3 : Game task is closed

Sample Response:
{
"code": 0,
"msg": "",
"data": {
"valid": true,
"TaskConfig": {
"1000": {
"TaskID": 1000,
"TaskName": "斗地主任意模式游戏 5 局",
"RewardID": 1,
"TargetParam": 5,
"ProgressParam": 0,
"TaskState": false,
"RewardValue": 300,
"Rewarded": false
},
"1001": {
"TaskID": 1001,
"TaskName": "斗地主任意模式游戏 10 局",
"RewardID": 2,
"TargetParam": 10,
"ProgressParam": 0,
"TaskState": false,
"RewardValue": 500,
"Rewarded": false
},
"1002": {
"TaskID": 1002,
"TaskName": "斗地主任意模式游戏 20 局",
"RewardID": 3,
"TargetParam": 20,
"ProgressParam": 0,
"TaskState": false,
"RewardValue": 1000,
"Rewarded": false
},
"1003": {
"TaskID": 1003,
"TaskName": "跑得快游戏完成 5 局",
"RewardID": 1,
"TargetParam": 5,
"ProgressParam": 5,
"TaskState": true,
"RewardValue": 300,
"Rewarded": false
},
"1004": {
"TaskID": 1004,
"TaskName": "跑得快游戏完成 10 局",
"RewardID": 2,
"TargetParam": 10,
"ProgressParam": 10,
"TaskState": true,
"RewardValue": 500,
"Rewarded": false
},
"1005": {
"TaskID": 1005,
"TaskName": "跑得快游戏完成 20 局",
"RewardID": 3,
"TargetParam": 20,
"ProgressParam": 20,
"TaskState": true,
"RewardValue": 1000,
"Rewarded": false
},
"1006": {
"TaskID": 1006,
"TaskName": "斗地主任意模式赢 5 局",
"RewardID": 1,
"TargetParam": 5,
"ProgressParam": 0,
"TaskState": false,
"RewardValue": 300,
"Rewarded": false
},
"1007": {
"TaskID": 1007,
"TaskName": "斗地主任意不洗牌玩 2 局",
"RewardID": 1,
"TargetParam": 2,
"ProgressParam": 0,
"TaskState": false,
"RewardValue": 300,
"Rewarded": false
}
}
}
}

Claim Task Reward


Endpoint: WS/WSGoldService.ashx

Parameters:
action : ClaimTaskReward
u : userID
s : signature
t : time
taskID : taskID

Error Codes:
1 : User does not exist
2 : signature error
3 : Game task is closed
4 : Task not yet complete
5 : Reward Already Claimed

Sample Response:
{
"code": 0,
"msg": "",
"data": {
"valid": true,
"RewardID" : 2
}
}

You might also like