根据邮箱查询用户
GetUserByEmail
:根据邮箱获取用户信息。
POST /api/v3/userinfo/get_user_by_email
请求参数
了解关于查询参数的更多信息,请参见 查询参数。
属性 | 数据类型 | 备注 | 描述 |
---|---|---|---|
string | 必填 | 邮箱 | |
rsp_field | []string | 选填 | 返回字段。选择要返回的字段,例如 source 、subscribe 、location 、language 、tags 、attributes 、preferences 、grade 默认: email 、openid |
请求示例
curl --request POST "https://openapi.smartlink.intlgame.com/api/v3/userinfo/get_user_by_email?gameid=${GAME_ID}&seq=${YOUR_RANDOM_STRING}&sig=${SIGNATURE}&ts=${TS}" \
--header 'Content-Type: application/json' \
--data-raw '{
"email": "545058834@qq.com",
"rsp_field": [
"source",
"subscribe",
"location",
"language",
"tags",
"attributes",
"preferences",
"grade"
]
}'
响应参数
属性 | 数据类型 | 描述 |
---|---|---|
code | int | 返回码 |
msg | string | 响应消息 |
data | data | 响应数据 |
响应示例
{
"code": 0,
"msg": "Success",
"data": {
"email": "545058834@qq.com",
"source": [
"API-web",
"CSV"
],
"subscribe": 1,
"location": "004",
"language": "en",
"tags": [
"tag1",
"tag2"
],
"attributes": {
"birthday": "1990-05-09 00:00:00+08:00",
"level": "10",
"nickname": "tang",
"prop":["option1","option2"]
},
"preferences": [
"option1",
"option2"
],
"user_grade": 2
},
"seq": "{YOUR_RANDOM_STRING}"
}