Skip to main content

Get publisher states

GET 

https://api.staging.powerapi.com/api/v2/presence/publisher-states

Method to retrieve businesses diffusions states on publishers.

Can be filtered by:

  • Business IDs
  • Publishers
  • States

Request

Query Parameters

    page integer

    Possible values: >= 1

    Default value: 1

    Page of items to fetch

    per_page integer

    Possible values: >= 1

    Number of items per page.

    business__in string[]

    Limit results to a specific businesses

    publishers string[]

    Limit results to a specific publisher

    Example: [facebook, google_my_business]
    states string[]

    Possible values: [success, pending, to_configure]

    Limit results to a specific states

    Example: [success, pending]

Responses

Schema

    businesses

    object

    Maps business ids to their presence states

    property name*

    object

    business_id string
    business_formatted_address string
    business_name string

    publishers

    object

    property name*

    object

    Maps publisher names to their presence states

    error_type

    object

    anyOf

    string

    Possible values: [PUBLISHER_CONNEXION, USER_INPUT, EXTERNAL]

    state string

    url_on_publisher

    object

    anyOf

    string

curl -L 'https://api.staging.powerapi.com/api/v2/presence/publisher-states' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>'
Request Collapse all
Base URL
https://api.staging.powerapi.com
Auth
Parameters
— query
— query
— query
— query
— query
ResponseClear

Click the Send API Request button above and see the response here!