Skip to content

fidtech-dev/ucertify-sdk

Repository files navigation

License Build Status Coverage Status NPM Version Downloads

Universal certifier SDK module

Install

$ npm install universal-certifier

Promises and Callbacks support

All methods support promises and callbacks.:

var it = uc.getAccessToken ();

it.then (
    function (accessToken) {
        console.log (accessToken);
    },
    function (error) {
        console.log (error);
    });

is the same as:

uc.getAccessToken(function (err, accessToken){
    if (err) {
        console.log (err);
    } else {
        console.log (accessToken);
    }
});

In order to use callbacks, simply pass a function as the last parameter.

Configuration

var UC = require ("universal-certifier");

var uc = new UC ("CLIENT_ID", "CLIENT_SECRET");

Certifications

TODO

Releases

No releases published

Packages

No packages published