1.0.2 • Published 11 years ago
catalyze v1.0.2
JS SDK for the Catalyze v2 API
Supports node, jQuery, and angular.
- jQuery >= 1.5
- Angular >= 1.0.8
- node >= 0.8.0
Installing
jQuery/Angular
bower install catalyzenode
npm install catalyzeBuilding and Testing
Tests are powered by mocha and intended to be run from node. This covers basic testing (not exhaustive, just enough to make sure each function works) of the node wrapper and smoke testing of the angular and jQuery wrappers.
After cloning + npm installing, to build:
npm buildTo run tests (this will build before running the tests):
npm testInvoking
jQuery
<script src="bower_components/catalyze/dist/jquery-catalyze.js"></script>
<script>
$.catalyze.config({
apiKey: "...",
appId: "..."
});
$.catalyze.signIn(...)
</script>Angular
<script src="bower_components/catalyze/dist/angular-catalyze.js"></script>
<script>
angular.module("MyApp", ["catalyze"])
.controller("MyController", function($scope, catalyze) {
catalyze.config({
apiKey: "...",
appId: "..."
});
catalyze.signIn(...);
});
</script>node
var catalyze = require("catalyze");
catalyze.config({
apiKey: "...",
appId: "..."
});
catalyze.signIn(...);