Fixed README
This commit is contained in:
parent
9b9d800ef4
commit
05abb58875
1 changed files with 3 additions and 3 deletions
|
@ -10,8 +10,8 @@ npm install --save node-holidayapi
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
```javascript
|
```javascript
|
||||||
var hapi = require('node-holidayapi');
|
var HolidayAPI = require('node-holidayapi');
|
||||||
var Hapi = new HolidayAPI('_YOUR_API_KEY').v1;
|
var hapi = new HolidayAPI('_YOUR_API_KEY').v1;
|
||||||
|
|
||||||
var parameters = {
|
var parameters = {
|
||||||
// Required
|
// Required
|
||||||
|
@ -26,7 +26,7 @@ var parameters = {
|
||||||
// pretty: true,
|
// pretty: true,
|
||||||
};
|
};
|
||||||
|
|
||||||
var Hapi.holidays(parameters, function (err, data) {
|
var hapi.holidays(parameters, function (err, data) {
|
||||||
// Insert awesome code here...
|
// Insert awesome code here...
|
||||||
});
|
});
|
||||||
```
|
```
|
||||||
|
|
Reference in a new issue