Poll lists

Documentation for using the OSSN API to retrieve a list of polls filtered by their container. Use GET parameters to specify the container type (user, group, or business page) and the corresponding container ID to list relevant polls on the OSSN platform.

Endpoint

Method:

  • POST / GET

Parameter:

Parameter name Required Type Explain
api_key_token Yes string Your API key
container_type Yes string user or group or businesspage
container_guid No integer container guid
offset no integer -

Example Response

{
    "merchant": "Premium Social Network",
    "url": "http:\/\/local.openteknik.com\/",
    "time_token": 1632229572,
    "payload": {
        "list": [
            {
                "data": {},
                "guid": 7,
                "time_created": 1614873936,
                "owner_guid": 1,
                "description": "{\"c4ca4238a0b923820dcc509a6f75849b\":\"1\",\"c81e728d9d4c2f636f067f89cc14862c\":\"2\"}",
                "title": "Test",
                "type": "user",
                "subtype": "poll:item",
                "container_guid": "1",
                "container_type": "user",
                "is_ended": "",
                "poll_entity": "52"
            }
        ],
        "offset": false,
        "count": 1
    },
    "code": "100",
    "message": "Request successfully executed"
}

Return payload parameter description

Parameter name Explain
count Total list
offset current offset

Services View All