Comparing version 1.1.0 to 1.2.0
{ | ||
"name": "sportmonks", | ||
"version": "1.1.0", | ||
"version": "1.2.0", | ||
"description": "Sportmonks Soccer API", | ||
"main": "dist/index.js", | ||
"typings": "dist/index.d.ts", | ||
"main": "dist/sportmonks.class.js", | ||
"typings": "dist/sportmonks.class.d.ts", | ||
"directories": { | ||
@@ -8,0 +8,0 @@ "test": "dist/test" |
@@ -8,5 +8,17 @@ # SportMonks Soccer API | ||
# import | ||
## ES6 | ||
```js | ||
import { SportmonksApi } from 'sportmonks'; | ||
const sportmonks = new SportmonksApi(__YOUR_API_TOKEN__); | ||
``` | ||
## CommonJS | ||
```js | ||
var SportmonksApi = require('sportmonks').SportmonksApi; | ||
var sportmonks = new SportmonksApi(__YOUR_API_TOKEN__); | ||
``` | ||
# usage | ||
```js | ||
var sportmonks = new Sportmonks(__YOUR_API_TOKEN__); | ||
var sportmonks = new SportmonksApi(__YOUR_API_TOKEN__); | ||
@@ -13,0 +25,0 @@ sportmonks.get(endpoint,params).then( function(resp){ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
9250
61