Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 1e7e108973
Fetching contributors…

Cannot retrieve contributors at this time

54 lines (34 sloc) 1.356 kb

zen-web-proxy

Simple web listener for sending messages to a ZenIRCBot.

API

POST /raw

  • payload - JSON payload to send to the ZenIRCBot. Will be sent in the "out" Redis channel. The parameter must be a form-encoded JSON string.
  • token - Auth token as specified in the config file.

POST /channel/:channel

Note: the "channel" parameter must include the URL-encoded hash sign.

  • message - Text to send to the channel
  • token - Auth token as specified in the config file.

GET /channel/:channel/nicks

  • token - Auth token as specified in the config file. (As query string parameter.)

Note: the "channel" parameter must include the URL-encoded hash sign.

Response:

{
  "nicks": {
    "Loqi": "@",
    "aaronpk": ""
  }
}

License

Copyright 2013 by Aaron Parecki

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Jump to Line
Something went wrong with that request. Please try again.