Difference between revisions of "Exploring data formats"

From Kosmos Wiki
Jump to navigation Jump to search
Line 24: Line 24:
 
     "target": "irc://irc.freenode.net"
 
     "target": "irc://irc.freenode.net"
 
   }
 
   }
 +
 +
== Messages ==

Revision as of 15:40, 5 June 2015

Methods of structuring data

Server Credentials

AS2

 {
   ...
   "context": "irc", 
   "@type": "..." // could be 'create', 'add', 'author'... whatever we choose, this open for discussion
   "actor": {
     "@id": "irc://howard@irc.freenode.net",
     "displayName": "howard"
   },
   "object": {
     "@type" : "credentials",
     "nick": : "howard",
     "password": "radical",
     "server": "irc.freenode.net",
     "port": 1234,
     "secure": true,
     "altNicks": [ "howardtheduck", "famousduck" ] // this property would need to be added to the schema
   },
   "target": "irc://irc.freenode.net"
 }

Messages