Comparing version 1.3.0 to 1.3.1
{ | ||
"name": "pageviews", | ||
"version": "1.3.0", | ||
"version": "1.3.1", | ||
"description": "A lightweight JavaScript client library for the Wikimedia Pageviews API for Wikipedia and various of its sister projects for Node.js and the browser.", | ||
@@ -5,0 +5,0 @@ "main": "pageviews.js", |
@@ -121,2 +121,13 @@ # pageviews.js | ||
}); | ||
// Getting legacy pagecounts | ||
pageviews.getAggregatedLegacyPagecounts({ | ||
project: 'en.wikipedia', | ||
start: new Date(2008, 12, 1, 1), | ||
end: new Date(2008, 12, 1, 2) | ||
}).then(function(result) { | ||
console.log(JSON.stringify(result, null, 2)); | ||
}).catch(function(error) { | ||
console.log(error); | ||
}); | ||
``` | ||
@@ -187,2 +198,10 @@ | ||
/** | ||
* Given a date range between December 2007 and August 2016, | ||
* returns a timeseries of pageview counts. You can filter by | ||
* project and access method. You can choose between daily, | ||
* hourly and monthly granularity as well. | ||
*/ | ||
getAggregatedLegacyPagecounts | ||
/** | ||
* Given a project and a date range, returns a timeseries of unique devices | ||
@@ -198,2 +217,3 @@ * counts. You can filter by access site and choose between daily and | ||
- [@marcelrf](https://github.com/marcelrf) | ||
- [@fdansv](https://github.com/fdansv) | ||
@@ -200,0 +220,0 @@ # License |
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
84367
233