Community
This is a community-related API, such as you can query the basic information of a community, Luckybox sent data and so on.
GEThttps://open.debox.pro/openapi/group/info
Obtain the current group information
Request Example:
curl -X GET -H "X-API-KEY: t2XAlEF6......" \
"https://open.debox.pro/openapi/group/info?\
group_invite_url=https://m.debox.pro/group?id=fxi3hqo5"
Request Example:
curl -X GET -H "X-API-KEY: t2XAlEF6......" \
"https://open.debox.pro/openapi/group/info?\
group_invite_url=https://m.debox.pro/group?id=fxi3hqo5"
Parameters
Header
app_id
: String
Unique app identifier, obtain from DeBox Open Platform
X-API-KEY
: String
Developer API Key, obtain from DeBox Open Platform
nonce
: String
Random number, 8 digits long
timestamp
: String
Timestamp, accurate to milliseconds
signature
: String
sha1 calculated signature, must strictly follow the signature calculation rules below
Signature calculation rules:
// keep sequence:appsecret -> nonce -> timestamp
signature = SHA1({appsecret}{nonce}{timestamp})
appsecret: Developer App Secret, obtain from [DeBox Open Platform](https://developer.debox.pro/)
Signature calculation requires signing the random number and timestamp using the Developer App Secret corresponding to the X-API-KEY.
Query
group_invite_url
: Group sharing URL, on the App side, click group sharing, copy the link to get it
Responses
200: OK
# is_charge Whether charge or not
# subchannel_number Number of subchannels
# group_name The name of the group
# group_number The number of the group
# group_pic The cover of the group
# create_time the Create time of the group
# maximum the max Number of the group
# mod The array of mod
{
"code": 200,
"data": {
"is_charge": true,
"subchannel_number": 3,
"group_name": "aaa",
"group_number": 29,
"group_pic": "https://data.debox.pro/static/2022/09/19/static/2022/09/19/100009_1435000131.jpg",
"create_time": "2022-04-30 16:03:24",
"maximum": "500",
"mod_info":[{"name":"ChatBot","wallet_address":"0xb63219a8e0d367d87ba1c8b0736cbfdbf2cd459f","avatar":"https://data.debox.pro/static/2024/03/29/uvg2p6ho/1711724284264837135.jpeg","uid":"uvg2p6ho"}]
},
"message": "success",
"success": true
}
400: Bad Request
{"error":"Bad Request","code":400,"message":"You X-API-KEY is not available"}
GEThttps://open.debox.pro/openapi/group/is_join
Verify whether the user is in the group
Request Example:
curl -X GET -H "X-API-KEY: t2XAlEF6......" \
"https://open.debox.pro/openapi/group/is_join?\
walletAddress=0x2267......&url=https://m.debox.pro/group?id=fxi3hqo5"
Request Example:
curl -X GET -H "X-API-KEY: t2XAlEF6......" \
"https://open.debox.pro/openapi/group/is_join?\
walletAddress=0x2267......&url=https://m.debox.pro/group?id=fxi3hqo5"
Parameters
Header
app_id
: String
Unique app identifier, obtain from DeBox Open Platform
X-API-KEY
: String
Developer API Key, obtain from DeBox Open Platform
nonce
: String
Random number, 8 digits long
timestamp
: String
Timestamp, accurate to milliseconds
signature
: String
sha1 calculated signature, must strictly follow the signature calculation rules below
Signature calculation rules:
// keep sequence:appsecret -> nonce -> timestamp
signature = SHA1({appsecret}{nonce}{timestamp})
appsecret: Developer App Secret, obtain from [DeBox Open Platform](https://developer.debox.pro/)
Signature calculation requires signing the random number and timestamp using the Developer App Secret corresponding to the X-API-KEY.
Query
walletAddress
: The wallet address, which represents the user to be authenticated
url
: The URL of the group , represent a group
chain_id
: Blockchain network ID, default 1, Ethereum Mainnet
Responses
200: OK
{"case3701":false}
400: Bad Request
{"error":"Bad Request","code":400,"message":"You X-API-KEY is not available"}
401: Unauthorized
{"error":"Bad Request","code":401,"message":"Param error"}