zephyr-ci
TypeScript icon, indicating that this package has built-in type declarations

1.3.1 • Public • Published

Zephyr Content Integration


NPM Package

Installation

npm install zephyr-ci

Implementation Server-Side

Client Configuration

const zephyr = require('zephyr-ci');

const config = {
    clientID: [client email],
    clientKey: [client key]
};

const connection = new zephyr.Zephyr(config);

Local File Example

const file = {
    name: "[Article Name]",
    description: "[Description of Article]",
    price: [price_of_content],
    content: "[file location]",
    type: "file"
};

Text Example

const text = {
    name: "[Article Name]",
    description: "[Description of Article]",
    price: [price_of_content],
    content: "[text]",
    type: "text"
};

URL Example

const article = {
    name: "[Article Name]",
    description: "[Description of Article]",
    price: [price_of_content],
    content: "[url link]",
    type: "url"
};

Asynchronous Content Fetching

const content_list = [file, text, article];

const content_complete = connection.getOutputs(content_list);

Input Content on Webpage

content_complete contains the HTML for each piece of content to display on website.

This can be utilized to place content on website however the developer deems appropriate.

Readme

Keywords

none

Package Sidebar

Install

npm i zephyr-ci

Weekly Downloads

1

Version

1.3.1

License

ISC

Unpacked Size

26.9 kB

Total Files

17

Last publish

Collaborators

  • kesquerra