Skip to main content

GET List Pages

Version: 1.0

This API will help you get information of pages which were connected to the shop.

Request URI

  • GET https://apis.harasocial.com/social/pages.json

Example Request

curl -X 'GET' \
'https://apis.harasocial.com/social/pages.json' \
-H 'accept: */*' \
-H 'Authorization: Bearer {token}'

Response

A successful Get List Pages Connected API request returns a JSON string containing information of pages which were connected to the shop.

Example

{
"data": [
{
"channel": "facebook",
"page_id": "500725830264111",
"page_name": "Page A",
"last_used": "2022-08-25T12:13:17.943Z"
},
{
"channel": "zalo",
"page_id": "2470311241169575111",
"page_name": "OA Zalo A",
"last_used": "2022-08-25T04:57:48.823Z"
}
],
"has_error": false,
"error_code": null,
"error_message": null
}

Properties


data: List<Page Object>

Contains list Page's info. See Page Object below.


has_error: bool

True if the request does not meet requirement or validation


error_code: string

The error code information


error_message: string

The error message information


Page Object


page_name: string

"page_name": "Page A"

Name of the page


page_id: string

"page_id": "500725830264111"

Page Id of the page


channel: string

"channel": "facebook"

Channel which the page belong to. Can be zalo, facebook, instagram


last_used: datetime

"last_used": "2022-08-25T12:13:17.943Z"

Indicated the last time this page was accessed by an agent