Socket
Book a DemoInstallSign in
Socket

elucidat-api

Package Overview
Dependencies
Maintainers
7
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

elucidat-api

A library for connecting to the Elucidat API.

latest
Source
npmnpm
Version
1.2.0
Version published
Maintainers
7
Created
Source

Elucidat API Integration

A library for connecting to the Elucidat API. Find out more about Elucidat at www.elucidat.com

Installation

Using npm:

$ npm install elucidat-api 

Usage

An example for returning the HTML of a course using Node.js:


const elucidatAPI = require('elucidat-api');
const https = require('https');

const parameters = {
    path: 'releases/launch',
    consumer_key: '',
    consumer_secret: '',
    fields: {
        'release_code': '',
        'name': '',
        'email_address': ''
    }
};

elucidatAPI(parameters, function (statusCode, response) {
    if (response.url) {
        // finally load the contents of the page
        https.get(response.url, function (res) {
            var pageContent = '';
            res.on('data', function (chunk) {
                pageContent += chunk;
            }).on('end', function () {
                process.stdout.write(pageContent);
            });
        }).on('error', function (e) {
            console.error(e.message);
        }).end();
    } else {
        console.error(response);
    }
});

For other methods see the API documentation at help.elucidat.com.

FAQs

Package last updated on 13 Nov 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts