Universal Javascript library to use Bouquet API.
Exports in a UMD format it works either in the browser or node.js
<script src='../dist/bouquet.min.js'></script>
<script>
var bouquet = new Bouquet({
url : 'your-bouquet-url',
clientId : 'your-bouquet-client-id',
apiKey : 'your-api-key'
});
bouquet.request("your-bouquet-query")
.then(function(response) {
// do
})
.catch(function(error) {
// error occurred
});
</script>
See /examples directory for more examples
npm run build
- produces production (minified) version thedist
foldernpm run dev
- produces development version and runs a watchernpm run test
- runs the testsnpm run test:watch
- runs the tests in a watch mode