1.0.3 • Published 5 years ago

backpulse-wrapper v1.0.3

Weekly downloads
-
License
MIT
Repository
-
Last release
5 years ago

npm version

Backpulse API Wrapper

A JavaScript wrapper for the Backpulse API.

Features

  • Access every Backpulse API endpoint
  • Asynchronous requests
  • Simple to use

Usage

Node

yarn add backpulse-wrapper
const Backpulse = require('backpulse-wrapper');
const client = new Backpulse('yoursitename');

Browser

Backpulse API Wrapper is usable with module bundlers such as Browserify.

yarn add backpulse-wrapper
import Backpulse from 'backpulse-wrapper';

const client = new Backpulse('yoursitename');

Example

// Fetch about content
client.fetchAbout((about, err) => {
    console.log(about);

    if(err) throw err;
});

// Fetch a specific gallery
client.fetchGallery("1a2b3c", (gallery, err) => {
    console.log(gallery);

    if(err) throw err;
});

Methods

  • fetchSiteInformations Site informations
  • fetchAbout About content
  • fetchContact Contact content
  • fetchGalleries Array of gallery
  • fetchGallery(id) Specific gallery
  • fetchDefaultGallery Default gallery
  • fetchProjects Array of project
  • fetchProject(id) Specific project
  • fetchArticles Array of articles
  • fetchArticle(id) Specific article
  • fetchVideoGroups Array of video groups
  • fetchVideoGroup(id) Specific video group
  • fetchVideo(id) Specific video
1.0.3

5 years ago

1.0.2

5 years ago

1.1.0

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago