Feed: profItems

Feed: profItems

首页数据,查询指定职业分类下的数据,数据类型有”awesome”.

Request

HTTP request

GET https://www.featapi.com/api/feed/profession-category-items/{professioncategory id}/

Parameters

  • Query parameters
Parameter nameValueDescription
Optional parameters
idstring职业分类id
typestring类型:awesome
pagestring
page_sizestring

授权

此请求需要具有以下所有范围的授权:

Scopes

有关更多信息,请参阅认证和授权页面。

Request body

Response

如果成功,则此方法在响应正文中返回 User.Profile 资源。

200  成功返回数据

{
    "data": [
        {
            "id": 21,
            "user": {
                "title": "中华小当家",
                "content": "中华小当家",
                "update_at": "2019-05-22T00:45:19.223000Z",
                "job_title": "python开发工程师",
                "workplace": {
                    "id": 5,
                    "user": 5215999252276,
                    "address_type": 100,
                    "address": "873乡道",
                    "country_code": "CHN",
                    "level_1": "中国",
                    "level_2": "广东省",
                    "level_3": "广州市",
                    "level_4": "番禺区",
                    "level_5": null,
                    "level_6": null,
                    "phone": "+86-111*****111",
                    "contact_name": "小红 甘",
                    "lat": 22.9708866,
                    "lng": 113.3073187,
                    "formatted": "中国 广东省 广州市 番禺区 873乡道",
                    "is_default": false,
                    "level_1_location": {},
                    "level_2_location": {},
                    "level_3_location": {},
                    "level_4_location": {},
                    "level_5_location": {},
                    "level_6_location": {},
                    "is_complete": true 
                },
                "weekdays": [0,1,2,3,4,5,6],
                "open_range_start": "2019-08-26T16:00:00Z",
                "open_range_end": "2019-08-27T15:00:00Z" 
            },
            "username": "小红 甘",
            "name": "健身教练",
            "applications": [
                {
                    "label": "游泳" 
                },
                {
                    "label": "健身" 
                } ],
            "currency": "CNY",
            "category": null,
            "category_name": null,
            "category_exp": null,
            "profession_categories": [
                {
                    "name": "健身教练" 
                } ],
            "is_primary": true,
            "create_time": "2020-06-11T11:24:03.425966Z",
            "available_services": [],
            "status": 100,
            "entity_type": "awesome",
            "kind": "feed",
            "entity_id": 21,
            "author": {
                "uid": 5215999252276,
                "avatar": "http://127.0.0.1:8000/media/5215999252276/avatar/5215999252276.jpg",
                "expertise": "健身教练",
                "firstname": "小红",
                "lastname": "甘",
                "username": "小红 甘",
                "timezone": "America/New_York",
                "timezone_utc_offset": "-04:00",
                "is_online": true,
                "location": "New York",
                "avatars": {
                    "path": "http://127.0.0.1:8000/media/5215999252276/avatar/5215999252276.jpg",
                    "sizes": {
                        "sm": {
                            "width": 32,
                            "height": 32,
                            "path": "http://127.0.0.1:8000/media/sm/5215999252276/avatar/5215999252276_32x32.JPEG" 
                        },
                        "md": {
                            "width": 64,
                            "height": 64,
                            "path": "http://127.0.0.1:8000/media/md/5215999252276/avatar/5215999252276_64x64.JPEG" 
                        },
                        "lg": {
                            "width": 300,
                            "height": 300,
                            "path": "http://127.0.0.1:8000/media/lg/5215999252276/avatar/5215999252276_300x300.JPEG" 
                        } 
                    } 
                } 
            },
            "update_at": "2020-06-11T11:24:34.891501Z" 
        } ],
    "pagination": {
        "page_size": 8,
        "total_pages": 1,
        "total_count": 1,
        "current_page": 1,
        "next": null,
        "previous": null 
    } 
}

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