Skip to content

Repository files navigation

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
constBackpulse=require('backpulse-wrapper');constclient=newBackpulse('yoursitename');

Browser

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

yarn add backpulse-wrapper
importBackpulsefrom'backpulse-wrapper';constclient=newBackpulse('yoursitename');

Example

// Fetch about contentclient.fetchAbout((about,err)=>{console.log(about);if(err)throwerr;});// Fetch a specific galleryclient.fetchGallery("1a2b3c",(gallery,err)=>{console.log(gallery);if(err)throwerr;});

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

About

A JavaScript wrapper for the Backpulse API.

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages