A JavaScript wrapper for the Backpulse API.
- Access every Backpulse API endpoint
- Asynchronous requests
- Simple to use
yarn add backpulse-wrapperconstBackpulse=require('backpulse-wrapper');constclient=newBackpulse('yoursitename');Backpulse API Wrapper is usable with module bundlers such as Browserify.
yarn add backpulse-wrapperimportBackpulsefrom'backpulse-wrapper';constclient=newBackpulse('yoursitename');// 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;});fetchSiteInformationsSite informationsfetchAboutAbout contentfetchContactContact contentfetchGalleriesArray of galleryfetchGallery(id)Specific galleryfetchDefaultGalleryDefault galleryfetchProjectsArray of projectfetchProject(id)Specific projectfetchArticlesArray of articlesfetchArticle(id)Specific articlefetchVideoGroupsArray of video groupsfetchVideoGroup(id)Specific video groupfetchVideo(id)Specific video