Skip to content
This repository was archived by the owner on Aug 27, 2019. It is now read-only.
dearing edited this page Sep 21, 2012 · 4 revisions

basic API

JSON

Action string

  • 'disconnect' 'origin' is disconnecting
  • 'inform' information to show users
  • 'fetch-editor' request for a complete active document in the cloud
  • 'lock' request to lock editing
  • 'unlock' request to unlock editing
  • 'speech' chat message 'data' from 'origin'
  • 'update-nick' 'origin' changed nickname
  • 'update-editor' 'origin' made changes to active document

Data string

  • a string of any value relevant for 'Action'

Origin string

  • indicates what user originated this 'Action'

examples

{
    "Action": "speech",
    "Data":   "wassup man, check out my script",
    "Origin": "some_dude"
}

{
    "Action": "disconnect",
    "Origin": "some_dude"
}

{
    "Action": "inform",
    "Data":   "some_dude disconnected"
}
Clone this wiki locally