Skip to content
This repository has been archived by the owner on Mar 12, 2021. It is now read-only.

Latest commit

 

History

History
33 lines (24 loc) · 1.03 KB

README.md

File metadata and controls

33 lines (24 loc) · 1.03 KB

CIF Software Development Kit for Javascript

The CIF Software Development Kit (SDK) for Javascript contains library code and examples designed to enable developers to build applications using CIF.

Installation

To use the components from the CIF SDK for JavaScript, copy the contents of the src/ directory to your local directory. Then, include the cif.js or cif.min.js file from this directory in your code.

Examples

Client

<script type="text/javascript" src="cif.js"></script>

<script type="text/javascript" charset="utf-8">

    var cli = new cif.Client({token: "1234"});
    cli.ping(function(err, success) {
        if (err) {
            throw err;
        }

        console.log("ping was successful: " + success);
    });

</script>

Search

Ping

Submit

License and Copyright

Copyright (C) 2014 the CSIRT Gadgets Foundation

Free use of this software is granted under the terms of the GNU Lesser General Public License (LGPL v3.0). For details see the file LICENSE included with the distribution.