Skip to content

Instantly share code, notes, and snippets.

@glesica
Created June 21, 2011 00:38
Show Gist options
  • Save glesica/1036971 to your computer and use it in GitHub Desktop.
Save glesica/1036971 to your computer and use it in GitHub Desktop.
* POST - create a new log item with the POSTed data. The response
will include a status_code, status_message and the ID of the
newly created log item (if one was successfully created).
Request must contain a valid bot key along with enough information
to construct a valid log item.
* DELETE - delete the given log item. Must include the item ID number
or enough information to uniquely identify the item (see GET
below).
Request must contain a valid bot key and the log item to be
deleted must have been created by the bot with that key.
* GET - return the most recent log items. Results can be narrowed
by passing along parameters specified below.
`id` - log item ID. This is returned to the bot with each succesful
POST. It uniquely identifies the given log item.
`server` - a string or comma-separated list representing one or
more valid IRC servers. When passed only log items received from
the provided server(s) will be returned.
`channel` - a string or comma-separated list representing one or
more valid IRC channel names, including the leading '#' or '&'. When
passed only log items from the given channel(s) will be returned.
`nickname` - a string or comma-separated list representing one or
more valid IRC nicknames. When passed only log items from the
given nickname(s) will be returned.
`since` - a date/time string in the format 'yyyy-mm-dd hh:mm:ss'
or a valid subset (e.g. 'yyyy-mm-dd'). When passed only log items
that were received after the given date/time will be returned.
`before` - a date/time string in the format 'yyyy-mm-dd hh:mm:ss'
or a valid subset (e.g. 'yyyy-mm-dd'). When passed only log items
that were received before the given date/time will be returned.
`contains` - a string to search for within the body of each
logged message. The search is naive and case-insensitive. So, for
example, searching for 'Bear' will find 'Overbearing' as well.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment