get.logs

This service can be used to retrieve a set of log entries which meet a specific set of criteria.

About

Supported Formats

  • XML
  • JSON
  • PHP

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
  1. Note that from and to dates must both be valid if they are to be used.
  2. Read the documentation for get.services for valid service names.
  3. All fields except for key are 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
  1. Note that the response is returned in it's originally requested format regardless of the format used in the get.logs request.

Files

Valid URLs

  • http://rest.snag.gr/images/get.logs.xml
  • http://rest.snag.gr/images/get.logs.json
  • http://rest.snag.gr/images/get.logs.php

Helpful Links

Recent Discussions

No discussions yet!