Skip to content

admin get_client_posts.json

Timothy Duffy edited this page Mar 11, 2015 · 2 revisions

###admin/get_client_posts.json###

All admin api's require a token to be passed in. See get_access_token.json for more information.

admin/get_client_posts.json?token=238236fa-0e1a-499c-8051-c46e2f416387&client_id=<client_id>

This command registers that a post has been viewed by a admin/mod/sub. It is a HTTP GET request.

The fields required are:

client_id
    The unique client ID that you want to get the posts for.

[ OPTIONAL ]
start
    This is the post index to start the response from.  This is useful for paging.

[ OPTIONAL ]
count
    This can be used to limit the number of posts that are returned.  This is useful for paging.

A valid response looks like:

{
    "post_count": 1,
    "posts": [
        {
            "deleted": false,
            "verified_user": true,
            "post_id": 1,
            "client_id": "ef32b30b-6e86-4210-ae2a-15b9de670c13",
            "language_code": "en",
            "lat": 43.1,
            "lng": -77.5,
            "post_datetime": "2015-01-07 15:19:26.665846",
            "media_objects": [
                {
                    "media_id": "668ad40c-1c39-41b1-baf5-5cb9e3c5f64f",
                    "file_name": "4c1c23ab-d989-49fc-af1a-594a38cc1339.jpg",
                    "preview_file_name": "4c1c23ab-d989-49fc-af1a-594a38cc1339p.jpg",
                    "media_text": "Hopefully staying awake long enough to see the ball drop ... :/",
                    "caption": "",
                    "media_type_description": "Text.",
                    "media_type_name": "text"
                }
            ],
            "user_id": 2,
            "title": "",
            "assignment_id": 1,
            "language_name": "English"
        }
    ],
    "client_id": "ef32b30b-6e86-4210-ae2a-15b9de670c13",
    "success": true
}

The file_name and preview_file_name fields are used in this manor:

http://<root_domain>/media/<file_name>

- and -

http://<root_domain>/media/<preview_file_name>
Clone this wiki locally