Skip to content

revisitors/node-revisit-tether

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

revisit.link tether

This runs a batch of API services together and returns the end result.

Usage

var RevisitTether = require('revisit-tether');
var rt = new RevisitTether({
  db: './db-tether'
});

Add

var service = {
  url: 'http://localhost:8000',
  token: '12345abc',
  content: {
    type: 'image/png',
    data: 'some content for an API'
  },
  meta: {
    audio: {
      type: false,
      data: false
    }
  }
};

rt.add(service, function (err, svc) {
  console.log(svc);
});

Get all services for a token

rt.getAll('12345abc', function (err, services) {
  console.log(services);
});

Play back all services

rt.play('12345abc', function (err, result) {
  console.log(result);
});

About

Connect API services in revisit.link.hub

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published