This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

azuqua

1.0.0 • Public • Published

Azuqua Node.js client

This library provides an easy interface for interacting with your Azuqua flos. The Azuqua API is directly exposed to developers should you wish to write your own library. For full API documentation please visit developer.azuqua.com.

Installation:

 npm install azuqua 

In order to make API requests you will need both your accessKey and accessSecret. These can also be found on your account information page.

Usage

All asynchronous functions can return a promise if you prefer that pattern. When you call an asynchronous function and leave the callback undefined it will return a promise. By default Azuqua uses bluebird.
var async  = require("async"),
	Azuqua = require("azuqua");
// you can provide your accessKey and accessSecret here, but it's not recommended to hard-code these values
var azuqua = new Azuqua(); 

// the recommended pattern is to store them in a .json file
azuqua.loadConfig("./account.json"); 

// invoke all your flos
var data = { a: 1 };
azuqua.flos(function(error, flos){
	async.each(flos, function(flo, callback){
		azuqua.invoke(flo, data, function(err, resp){
			if(err){
				console.log("Error invoking flo!", flo, err);
				callback(err);
			}else{
				console.log("Flo returned: ", resp);
				callback();
			}
		});
	}, function(err){
		if(err)
			console.log("Flo invocation loop stopped!", err);
		else
			console.log("Finished invoking flos!");
	});
});

LICENSE - "MIT License"

Copyright (c) 2014 Azuqua

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Readme

Keywords

Package Sidebar

Install

npm i azuqua

Weekly Downloads

1

Version

1.0.0

License

none

Last publish

Collaborators

  • azuqua