Skip to content
forked from netbeast/api

Node.js wrapper for the resources NetBeast Router HTTP API.

Notifications You must be signed in to change notification settings

pablopi/nb-resources

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nb-resources

Wrapper draft

/* Promises */
class Resource  {
	constructor: {}

	get: function(resource) {
		request('/api....')
	}

	set: function(resource) {
		request.post('')
	}

	update: function(resource) {
		
	}

	toggle: function(resource) {
		
	}

	remove: function(resource) {
		
	}

	delete: remove

	at: function(where) {

		if where === '*', 'all' => se aplica en todas las localizaciones

	}

subscribe: function(resource) {

}
}


Resource = require('resources')

Resource.register([{
	where: 'living room',
	method: 'get',
	hook: '/api/aksdgaud'
}, {
	where: 'living room',
	method: 'get',
	hook: '/api/aksdgaud'
}])

Events.register()

About

Node.js wrapper for the resources NetBeast Router HTTP API.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 98.7%
  • Shell 1.3%