@extplug/room-settings
The ExtPlug room settings server.
Last updated 3 years ago by goto-bus-stop .
MIT · Original npm · Tarball · package.json
$ cnpm install @extplug/room-settings 
SYNC missed versions from official npm registry.

@extplug/room-settings

HTTP interface to the ExtPlug Room Settings repository.

How It Works

First @extplug/room-settings uses plug-auth-server to authenticate users to the server. Then, it checks that users are actually cohosts or hosts in the rooms they are trying to change, by joining the room using miniplug. Finally, the room settings are updated in the FAERSS (Fully Automated ExtPlug Room Settings Storage) using the Github web API.

API

GET /:room, GET /:room.json

Return the room settings JSON for a room.

GET /:room.css

Return the custom styles for a room.

GET /:room/history

Return a JSON array containing the recent changes to the room settings and styles.

Example response:

[
  {
    // Commit SHA
    id: "b526bf6a701a8196669153f1389df788efa873ce",
    // Commit message
    message: "[extplug] Update room settings.\n\nhttps://plug.dj/extplug",
    // plug.dj user ID of the committer
    user: 4393540,
    // timestamp of the change
    time: 1489516848000
  }
]

License

MIT

Current Tags

  • 1.2.0                                ...           latest (3 years ago)

3 Versions

  • 1.2.0                                ...           3 years ago
  • 1.1.0                                ...           4 years ago
  • 1.0.0                                ...           4 years ago
Downloads
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 0
Last Month 1
Dependencies (11)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |