WebPowerUp.biz Api Documentation

Description

Get messages for the given site belonging to current customer
Supported HTTP Methods: POST

Parameters

Name Type Required Default Value Description
apiAuthToken String Yes - Api auth token obtained via login
site_id int Yes - The site id
pageNo int No 1 Page index number (Starting from 1)
recordsNo int No 10 Number of messages to fetch
dateFormat string No m/d/Y DateTime format
sortBy string No date Sort data by
sortOrder string No desc Sort order

Sample Response

{
    "code": 1,
    "message": "Ok!",
    "data": {
        "messages": {
            "records": [
                {
                    "id": "1",
                    "subject": "acha gee",
                    "body": "ewjfbkjwe",
                    "date": "",
                    "file": "http:\/\/webpowerup.ca\/media\/ckeditor_uploads\/anjan001_521\/kb.jpg"
                },
                {
                    "id": "6",
                    "subject": "kfc",
                    "body": "kfckfckfckfckfckfckfckfckfc",
                    "date": "Mar 10, 2015 12:38 am",
                    "file": ""
                },
                {
                    "id": "7",
                    "subject": "gfc",
                    "body": "gfc",
                    "date": "Mar 10, 2015 12:39 am",
                    "file": ""
                },
                {
                    "id": "8",
                    "subject": "kaka",
                    "body": "kaka",
                    "date": "Mar 10, 2015 12:45 am",
                    "file": ""
                },
                {
                    "id": "19",
                    "subject": "kakakakkaka",
                    "body": "kakakkaa",
                    "date": "Mar 10, 2015 01:09 am",
                    "file": ""
                }
            ],
            "totalCount": "10",
            "totalPages": 2
        }
    }
}