Skip to content

sshirokov/Convorse

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Convorse is a Convore client library.

#TODO: Description

WARNING:
        This is stupidly early code.  As of writing only GET requests work, and the streaming interface isn't 
        yet wired correctly.  This only proves that the API is compiled to the correct call chains.

Quick Demo:

 This demo will spin up the API, authenticated by the user/pass combo on the command line and launch into a repl.
 The context will contain 'client' which is an instance of the library and 'callback' a generic callback
 to output the result of a request.  It has the signature callback(error, data).

./demo.js username password
[..A bunch of debug crap scrolls by as the API interface is compiled..]
node>> client.api.groups().request(callback)
[..A bunch of debug crap as the call chain is traversed..]
Status: 200
Data: { groups: 
   [ { date_latest_message: 1297427717.133038,
       topics_count: 1,
       members_count: 2,
       name: 'Convorse',
       creator: [Object],
       url: '/convorse/',
       date_created: 1297427687.883373,
       unread: 0,
       id: '2221',
       slug: 'convorse' } ] }

// Call chain is generated matching the API description, including variable parameters to functions.

node>> client.api.groups(2221).topics().request(callback)
[..Some more debug spam..]
Status: 200
Data: { topics: 
   [ { name: 'I am the pusher robot',
       creator: [Object],
       url: '/convorse/i-am-the-pusher-robot/',
       id: '4144',
       message_count: 1,
       date_latest_message: 1297427717.133038,
       date_created: 1297427709.532413,
       unread: 0,
       slug: 'i-am-the-pusher-robot' } ] }
node>>

About

It's a Convore.com client library.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published