Skip to content

endel/hook-javascript

 
 

Repository files navigation

hook-javascript client Build status

Selenium Test Status

JavaScript client for hook.

How to use

Initialize with your app's credentials:

var hook = new Hook.Client({
  endpoint:   "http://local-or-remote-hook.com/index.php/",
  app_id: 1,    // your app's id
  key: 'test'  // your app's public key
});

Creating collection entries:

hook.collection('posts').create({
  title: "Post name",
  summary: "My awesome new post",
  stars: 5
});

Filtering:

hook.collection('posts').where('stars', '>=', 5).then(function(data) {
  console.log(data);
});

View full documentation here.

How to build

You'll need nodejs installed first. Then run the following commands:

$ npm install -g grunt-cli bower
$ npm install
$ bower install
$ grunt

To build and publish the docs:

make publish-docs

License

MIT

About

Browser/JavaScript client for hook.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 98.2%
  • HTML 1.7%
  • Makefile 0.1%