Skip to content

mattbierner/blotre-cl-framework

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Blot're simple command line application framework for disposable client apps. Uses Blot're.js to interact with Blot're and make API calls.

The framework can:

  • Register a new disposable client.
  • Prompt the user to redeem the client code.
  • Persist creds.
  • Automatically pick up persisted creds when run again.

Example

var BlotreCl = require('blotre-cl-framework');

// Register a new client application or pick up an existing application.
// Will prompt the user to redeem if needed.
// This returns a promise to a new Blot're client 
BlotreCl({
    "name": "Toa*",
    "blurb": "The Pintrest of toast." })
    .then(function(client) {
        // Now we have a fully authorized client app and can 
        // make Blot're.js calls
        return client.getStream(client.creds.user.rootStream);
    })
    .then(console.log)
    .catch(console.err);

About

Blot're node command application disposable client framework.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published