Affiliate & Partner API. An easy to use tee time search and booking service for GolfNow Affiliates & Partners.
- Install Node.js
- Install GolfNow SDK with
npm
:
npm install golfnow
var golfnow = require("golfnow");
var app = golfnow("CLIENT_ID", "CLIENT_SECRET");
var request = app.getApiRoot();
request.on('response', function(response) {
console.log(response);
});
request.on('error', function(error) {
console.log(error);
});
request.end();
npm test
In lieu of a formal style guide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code.