1.0.2 • Published 9 years ago

catalyze v1.0.2

Weekly downloads
3
License
Apache
Repository
github
Last release
9 years ago

JS SDK for the Catalyze v2 API

Build Status

Supports node, jQuery, and angular.

  • jQuery >= 1.5
  • Angular >= 1.0.8
  • node >= 0.8.0

Installing

jQuery/Angular

bower install catalyze

node

npm install catalyze

Building 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 build

To run tests (this will build before running the tests):

npm test

Invoking

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(...);

SDK Docs

Full SDK Docs

Full Catalyze Docs

1.0.2

9 years ago

1.0.1

9 years ago

1.0.0

10 years ago