Code Monkey home page Code Monkey logo

domoscio_js's Introduction

DomoscioJS

This README would document whatever steps are necessary to get the DomoscioJS SDK up and running.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

DomoscioJS requires the jQuery Javascript library. Make sure to load jquery.js file before loading DomoscioJS.

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>

Installing

Place the following script tag near the end of your pages, right before the closing tag, to enable them. jQuery must come first, then DomoscioJS, and then your script.

<script src="https://rawgit.com/Celumproject/domoscio_js/master/v1/domosciojs.min.js"></script>

Then you have to configure the DomoscioJS object like bellow with your credentials to access your enabled APIs. Refer to the API documentation for details: https://domoscio.com/wiki/doku.php?id=api2:start

DomoscioJS.configuration = { 
    preproduction: true,
    version: API_VERSION,
    client_id: YOUR_INSTANCE_ID,
    client_passphrase: "YOUR_ACCESS_TOKEN"
}
Key Type Description
preproduction boolean true is for development (use the preproduction Domoscio API) and false for production
version integer the current version of Domoscio API with latest features is 2
client_id integer this is your instance_id, required for access to your data
client_passphrase string client_passphrase is your secret key, this token is paired with your client_id

Samples

Simple yet flexible JavaScript request for Domoscio API.

Fetch

Fetch all object corresponding with the parameters :

DomoscioJS.Student.fetch({uid: "Example"})

Find

Find the object corresponding with the id :

DomoscioJS.Student.find({id: "Example"})

Create

Create an object :

DomoscioJS.Student.create({uid: "Example", active: true})

Utils

Some utils routes :

DomoscioJS.GameplayUtil.util("get_review_progress", { student_id: id, knowledge_node_id: id })

Deployment

To deploy this on a live system, use the script tag bellow :

<script src="https://cdn.rawgit.com/Celumproject/domoscio_js/160e555c/v1/domosciojs.min.js"></script>

Versioning

Currently v1.0.3

Authors

See the list of contributors (https://github.com/Celumproject/domoscio_js/contributors)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.