UserInfo: getById

UserInfo: getById

获取指定用户的全面信息数据列表。前端统一获取指定用户的全面信息,包含Profile、Career、Education、Expertise、HonorsAwards、OpenTime、Languages、WorkPlace数据

Request

HTTP request

GET https://www.featapi.com/api/user/user-info/

Parameters

Path parameters

Parameter nameValueDescription
idstring用户ID

Authorization

该请求需要授权以下scopes访问权限:

Scopes
user_info

For more information, see the authentication and authorization page.

Request body

无需提交请求体信息。

Response

如果请求成功,该API返回当前登录用户的User.UserInfo全面信息数据列表在响应体信息。

200 Returns list of User full info successfully

{
    "data": {
        "uid": 7815769374283,
        "profile": {
            "uid": 7815769374283,
            "username": "WenWei Yang",
            "email": "",
            "firstname": "WenWei",
            "lastname": "Yang",
            "commercial_sign": "欢迎光临",
            "avatar": "https://10.0.10.117:8003/media/7815769374283/avatar/blob_wkEsRbY",
            "orig_avatar": "https://10.0.10.117:8003/media/7815769374283/avatar/Ixia.gif",
            "gender": 100,
            "marriage": null,
            "language": "中文(中国)",
            "foreign_language": null,
            "mobile": "159*****100",
            "dob": null,
            "age": null,
            "name_order": 1,
            "is_online": true,
            "home_domain": "7815769374283",
            "crop_info": {
                "x": 49,
                "y": 0,
                "unit": "px",
                "width": 1,
                "aspect": 1,
                "height": 1
            },
            "avatars": {
                "path": "https://10.0.10.117:8003/media/7815769374283/avatar/blob_wkEsRbY",
                "sizes": {
                    "sm": {
                        "width": 32,
                        "height": 32,
                        "path": "https://10.0.10.117:8003/media/sm/7815769374283/avatar/blob_wkEsRbY_32x32.JPEG"
                    },
                    "md": {
                        "width": 64,
                        "height": 64,
                        "path": "https://10.0.10.117:8003/media/md/7815769374283/avatar/blob_wkEsRbY_64x64.JPEG"
                    },
                    "lg": {
                        "width": 300,
                        "height": 300,
                        "path": "https://10.0.10.117:8003/media/lg/7815769374283/avatar/blob_wkEsRbY_300x300.JPEG"
                    }
                }
            }
        },
        "languages": [
            {
                "id": 216,
                "user": 7815769374283,
                "locale": "zh-CN",
                "name": "中文(中国)",
                "level": 200
            }
        ],
        "open_time": {
            "user": 7815769374283,
            "open_time": [
                {
                    "start": "2019-12-30T00:00:00Z",
                    "until": "2019-12-30T12:00:00Z",
                    "timezone": "Asia/Shanghai",
                    "weekdays": [
                        0,
                        1,
                        2
                    ],
                    "repeat_start": "2019-12-30T11:59:34Z"
                },
                {
                    "start": "2019-12-30T11:00:00Z",
                    "until": "2019-12-30T14:00:00Z",
                    "timezone": "Asia/Shanghai",
                    "weekdays": [
                        3,
                        4,
                        5,
                        6
                    ],
                    "repeat_start": "2019-12-30T11:59:34Z"
                }
            ],
            "timezone": "Asia/Shanghai"
        },
        "educations": [
            {
                "id": 121,
                "user": 7815769374283,
                "type": 100,
                "organization": "广东财经大学",
                "title": "计算机",
                "since": "2013-01-01",
                "until": "2016-01-01",
                "description": "无",
                "city": null,
                "pic": null,
                "status": 100
            }
        ],
        "career_experiences": [
            {
                "id": 63,
                "user": 7815769374283,
                "organization": "Feat",
                "position": "python开发",
                "since": "2017-01-01",
                "until": null,
                "description": "无",
                "achievement": "无",
                "working_on": true,
                "pic": null,
                "status": 100
            }
        ],
        "honors_awards": [],
        "workplace": {
            "id": 8,
            "user": 7815769374283,
            "address_type": 100,
            "address": "长隆",
            "country_code": "CHN",
            "level_1": "China",
            "level_2": "广东省",
            "level_3": "广州市",
            "level_4": "番禺区",
            "level_5": null,
            "level_6": null,
            "phone": "+86-159*****100",
            "contact_name": "WenWei Yang",
            "lat": 22.993356,
            "lng": 113.32747,
            "formatted": "China 广东省 广州市 番禺区 长隆",
            "is_default": false,
            "is_complete": true
        },
        "expertise": [
            {
                "id": 244,
                "user": 7815769374283,
                "username": "WenWei Yang",
                "name": "P2P专家",
                "applications": [
                    {
                        "label": "金融"
                    }
                ],
                "currency": "CNY",
                "profession_categories": [
                    {
                        "label": "财务顾问"
                    }
                ],
                "is_primary": true,
                "create_time": "2019-10-23T01:16:27.679000Z",
                "available_services": [
                    {
                        "type": 100,
                        "price": "1.00",
                        "unit": 100,
                        "is_available": true
                    },
                    {
                        "type": 200,
                        "price": "1.00",
                        "unit": 100,
                        "is_available": true
                    },
                    {
                        "type": 300,
                        "price": "1.00",
                        "unit": 100,
                        "is_available": true
                    }
                ],
                "status": 100
            }
        ]
    }
}

404 Not found

示例返回数据可参考 API Common – Resource Not Found

发表评论

您的电子邮箱地址不会被公开。

您可以使用以下 HTML标签和属性:

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

Captcha Code