[go: up one dir, main page]

Skip to content

aleplusplus/golfnow-node-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Node.js SDK for GolfNow

npm npm Build Status Coverage Status

Affiliate & Partner API. An easy to use tee time search and booking service for GolfNow Affiliates & Partners.

Installation

  • Install Node.js
  • Install GolfNow SDK with npm:

npm install golfnow

Usage

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();

Tests

npm test

Contributing

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.