接口请求
curl --location 'http://127.0.0.1:8000/api/get_invite_code_by_address' \
--header 'Content-Type: application/json' \
--data '{
"address": "0xe3b4ECd2EC88026F84cF17fef8bABfD9184C94F0"
}'
返回值
{
"ok": true,
"code": 200,
"result": {
"invite_code": "0000-0000-0000"
}
}
接口请求
curl --location 'http://127.0.0.1:8000/api/submit_invite_info' \
--header 'Content-Type: application/json' \
--data '{
"invite_code": "0000-0000-0000",
"address": "0xe3b4ECd2EC88026F84cF17fef8bABfD9184C94F1"
}'
返回值
{
"ok": true,
"code": 200,
"result": {}
}
接口请求
curl --location 'http://127.0.0.1:8000/api/get_points_by_address' \
--header 'Content-Type: application/json' \
--data '{
"address": "0xe3b4ECd2EC88026F84cF17fef8bABfD9184C94F1"
}'
返回值
{
"ok": true,
"code": 200,
"result": {
"id": 5,
"name": "unknown",
"photo": "",
"address": "0xe3b4ECd2EC88026F84cF17fef8bABfD9184C94F1",
"email": null,
"points": 0,
"x_twitter": "",
"discord": "",
"telegram": "",
"info": ""
}
}
接口请求
curl --location 'http://127.0.0.1:8000/api/get_points_record_by_address' \
--header 'Content-Type: application/json' \
--data '{
"address": "0xe3b4ECd2EC88026F84cF17fef8bABfD9184C94F0"
}'
返回值
{
"ok": true,
"code": 200,
"result": {
"total": 5,
"points": [
{
"id": 31,
"name": "0xe3b4ECd2EC88026F84cF17fef8bABfD9184C94F0",
"type": "Invite",
"points": 2,
"created_at": "2024-03-15 19:58:21"
},
{
"id": 30,
"name": "0xe3b4ECd2EC88026F84cF17fef8bABfD9184C94F0",
"type": "Invite",
"points": 2,
"created_at": "2024-03-15 19:57:46"
},
{
"id": 29,
"name": "0xe3b4ECd2EC88026F84cF17fef8bABfD9184C94F0",
"type": "Invite",
"points": 2,
"created_at": "2024-03-15 19:56:47"
},
{
"id": 2,
"name": "0xe3b4ECd2EC88026F84cF17fef8bABfD9184C94F0",
"type": "Invite",
"points": 2,
"created_at": "2024-03-13 13:41:32"
},
{
"id": 1,
"name": "0xe3b4ECd2EC88026F84cF17fef8bABfD9184C94F0",
"type": "Invite",
"points": 2,
"created_at": "2024-03-13 13:41:13"
}
]
}
}
接口请求
curl --location 'http://127.0.0.1:8000/api/get_project_interactions' \
--header 'Content-Type: application/json' \
--data '{
"language": "en"
}'
返回值
{
"ok": true,
"code": 200,
"result": [
{
"id": 1,
"name": "SavourLabs",
"describe": "SavourLabsSavourLabsSavourLabsSavourLabs",
"type": "Project",
"language": "en",
"points": 0
}
]
}
接口请求
curl --location 'http://127.0.0.1:8000/api/get_questions' \
--header 'Content-Type: application/json' \
--data '{
"language": "en"
}'
返回值
{
"ok": true,
"code": 200,
"result": [
{
"id": 1,
"question": "啊啊啊",
"answer": "a a a",
"language": "en"
}
]
}
接口请求
curl --location 'http://127.0.0.1:8000/api/get_reward_info' \
--header 'Content-Type: application/json' \
--data '{
"address": "0xe3b4ECd2EC88026F84cF17fef8bABfD9184C94e3"
}'
返回值
{
"ok": true,
"code": 200,
"result": {
"is_reward": false
}
}
或者
{
"ok": true,
"code": 200,
"result": {
"is_reward": true,
"rewards": [
{
"id": 1,
"title": "",
"sub_title": "",
"address": "0xe3b4ECd2EC88026F84cF17fef8bABfD9184C94F0",
"period": "",
"amount": "100",
"is_send": true
}
]
}
}