get.logs
This service can be used to retrieve a set of log entries which
meet a specific set of criteria.
About
Supported Formats
XMLJSONPHP
Attributes
Cacheable - No
Cache TTL - N/A
Secure - Yes
Metered - Yes
Limit - 100 Requests
Limit Cycle - 24 Hrs.
Parameters
key - (string) The API key associated with your application. [REQUIRED]
from - (string) If fetching a range of records by date, this must be in YYYY-MM-DD HH:MM:SS format
to - (string) If fetching a range of records by date, this must be in YYYY-MM-DD HH:MM:SS format
type - (string) Filter by type of service associated with the log entry (get, post or delete)
service - (string) Filter by service name
format - (string) Filter by service format (xml, json or php)
sort - (string) The field with which to sort the records by (service, type, format or date)
order - (string) The order in which records will be presented (descending or ascending)
page - (integer) The current record page number
limit - (integer) The number of records to return per page
- Note that
fromandtodates must both be valid if they are to be used. - Read the documentation for
get.services for valid service names.
- All fields except for
keyare optional.
Example Responses
In addition to the standard response header, this service will
return a set of matching log entries with the
following values:
@type The type of the log's associated service
@service The name of the log's associated service
@format The format of the log's associated service
request The original query string used when requesting the service
response The resulting system response
- Note that the response is returned in it's originally requested
format regardless of the format used in the
get.logsrequest.
Files
Valid URLs
http://rest.snag.gr/images/get.logs.xmlhttp://rest.snag.gr/images/get.logs.jsonhttp://rest.snag.gr/images/get.logs.php