Paging query project information

Last Updated on : 2023-06-21 07:12:54download

Call this interface to query hotel industry projects on a page, mainly query project time zone, area identification, detailed address and other information.

API address

GET: /v1.0/osaas/projects

Request parameter

Parameter nameTypeINRequiredDescription
pageNointurifalsePagination Page Number
pageSizeinturifalsePaging page size, the maximum value is 100
projectIdsString[]urifalseProject ID list, supports up to 100

Return parameter

Parameter nameTypeDescription
totalintTotal number of entries
pageNointPagination Page Number
pageSizeintPaging page size, the maximum value is 100
projectsProjectResponse[]Project Details

Request example

GET: {url}/v1.0/osaas/projects?page_no=1&page_size=20
{
  "pageNo": "1",
  "pageSize": "20",
  "projectIds": "116082396505314***** *"
}

Return example

{
    "t ": 1561381210234,
    "result": {
        "page_no": 1,
        "projects ": [
            {
                "gmt_create": 1559707046000,
                "address": "**province** city",
                "project_name": "**Project",
                "gmt_modified": 1559707046000,
                "location_id": "1002",
                "project_id": "116082396505314******",
                "time_zone_id": "Asia/Shanghai",
                "authorization_status": "AUTHORIZED"
            }
        ],
        "total": 1,
        "page_size": 20
    },
    "success": true
}

Error code

For more information, see error code.