betscoreapi
Advanced tools
Comparing version 1.0.2 to 1.0.3
10
index.js
@@ -62,2 +62,12 @@ 'use strict' | ||
} | ||
statistic(eventId, timestamp) { | ||
return new Promise((resolve, reject) => { | ||
api.get(`https://www.sofascore.com/event/${eventId}/general/json?_=${timestamp}`).then((rest) => { | ||
return resolve(rest.data) | ||
}).catch((err) => { | ||
return reject('Error: ' + err) | ||
}) | ||
}) | ||
} | ||
} | ||
@@ -64,0 +74,0 @@ |
{ | ||
"name": "betscoreapi", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "data score for bet365", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
363481
74