Get User Domain¶
通过用户邮箱地址获取用户所在的域信息。
请求格式¶
GET http://{apigw-address}/app-portal-service/v2.2/user/domain
请求参数(URI)¶
| 名称 | 位置(Path/Query) | 必需/可选 | 数据类型 | 描述 | 
|---|---|---|---|---|
| Query | 必需 | String | 用户的邮箱地址。 | 
响应参数¶
| 名称 | 数据类型 | 描述 | 
|---|---|---|
| id | String | 域ID | 
| name | String | 域名称 | 
| url | String | 域地址 | 
| description | String | 域描述 | 
| nameJson | String | 域名称,多语言,json结构 | 
| descriptionJson | String | 域描述,多语言,json结构 | 
错误码¶
| 代码 | 错误信息 | 描述 | 
|---|---|---|
| 31400 | Email is required | 用户邮箱地址不能为空 | 
| 31404 | The email address is not bound to an account | 该邮箱未绑定账号 | 
示例¶
请求示例¶
url: http://{apigw-address}/app-portal-service/v2.2/user/domain?email=your_email
method: GET
返回示例¶
{
    "code":0,
    "data":{
        "id":"your_domain_id",
        "name":"your_domain_name",
        "nameJson": {
            "default": "your_domain_name"
         },
        "url":"your_domain_url",
        "description":"domain description"
        "descriptionJson": {
            "default": "domain description"
        },
    },
    "message":""
}