Node wrapper for the Golfbert API.
Please reference https://golfbert.com/api/docs for additional parameters to pass in as options to certain methods.
npm i node-golfbert
const Golfbert = require('node-golfbert');
const golfbert = new Golfbert({
apiKey: 'GOLFBERT_API_KEY',
accessKey: 'GOLFBERT_ACCESS_KEY',
secretKey: 'GOLFBERT_SECRET_KEY'
});
golfbert
.getCourses()
.then((data) => console.log(data))
.catch((err) => console.log(err));
golfbert.ping()
golfbert.getCourses(options)
golfbert.getCourseById(id)
golfbert.getCourseHolesById(id)
golfbert.getCourseScorecardById(id)
golfbert.getCourseTeeboxesById(id)
golfbert.getHoles(options)
golfbert.getHoleById(id)
golfbert.getHolePolygonsById(id)
golfbert.getHoleTeeboxesById(id)
golfbert.getTeeboxColors()
golfbert.getTeeboxTypes()