push/log

Updated on Tuesday, 23 April, 2013 - 12:53
Purpose: 

Retrieve details from the message log.

Syntax: 

    https://api.datasift.com/push/log

Parameter: Description:
id
optional

The id of a Subscription.
If you supply an id, the call returns details for that id only.
If you omit this parameter, the call returns details for all your Subscriptions.

Example values: 08b923395b6ce8bfa4d96f57f863a1c3

page
optional
default = 1

The page number.

Example values: 42

per_page
optional
default = 20

The number of items to return per page.

Example values: 25

order_by
optional
default = request_time

The field that DataSift will use to order the results.
The only available value currently is request_time.

Example values: request_time

order_dir
optional
default = desc

The direction of the ordering.
Ascending (asc) or descending (desc).

Example values: desc

All calls to the API must be properly authenticated with a DataSift username and API key.

The push/log API call allows you to retrieve log messages relating to a single subscription or to all your Subscriptions.

For more details, take a look at the Push API overview.

Examples: 

1. Retrieve log messages for all your Subscriptions

 

2.  Here's an example of some typical errors that you might see:

https://api.datasift.com/push/log

 

Property: Description:
count The number of entries in the log.
success Subscription state.
log_entries A list of subscription log entries as a JSON list.
request_time The time the request was made. A Unix timestamp.
success The status of the request.
subscription_id Subscription ID.
message Error message.