A JavaScript wrapper for the Backpulse API.
- Access every Backpulse API endpoint
- Asynchronous requests
- Simple to use
yarn add backpulse-wrapper
const Backpulse = require('backpulse-wrapper');
const client = new Backpulse('yoursitename');
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');
// 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;
});
fetchSiteInformations
Site informationsfetchAbout
About contentfetchContact
Contact contentfetchGalleries
Array of galleryfetchGallery(id)
Specific galleryfetchDefaultGallery
Default galleryfetchProjects
Array of projectfetchProject(id)
Specific projectfetchArticles
Array of articlesfetchArticle(id)
Specific articlefetchVideoGroups
Array of video groupsfetchVideoGroup(id)
Specific video groupfetchVideo(id)
Specific video