Comparing version 0.1.0 to 0.1.1
@@ -50,4 +50,4 @@ /** | ||
Fastly.prototype.stats = function (service, type, callback) { | ||
var url = encodeURIComponent(serviceId) + '/stats/' + type; | ||
Fastly.prototype.stats = function (service, callback) { | ||
var url = encodeURIComponent(serviceId) + '/stats/summary'; | ||
this.request('GET', url, callback); | ||
@@ -54,0 +54,0 @@ }; |
@@ -7,3 +7,3 @@ { | ||
"keywords": "fastly, api, client", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"homepage": "https://github.com/thisandagain/fastly", | ||
@@ -10,0 +10,0 @@ "repository": { |
@@ -16,3 +16,3 @@ ## fastly | ||
fastly.authenticate('yourapikey'); | ||
fastly.purge('myhost.com', '/cats', function (err, obj) { | ||
fastly.purge('realtimecats.com', '/cats', function (err, obj) { | ||
if (err) { | ||
@@ -26,2 +26,21 @@ console.dir(err); // Oh no! | ||
### Helper Methods | ||
<table width="100%"> | ||
<tr> | ||
<th width="20%" valign="top">Method</td> | ||
<th width="75%" valign="top">Example</td> | ||
<th width="5%" valign="top"></td> | ||
</tr> | ||
<tr> | ||
<td valign="top">purge</td> | ||
<td valign="top"><pre lang="javascript"><code>fastly.purge('host.com', '/index.html', callback);</code></pre></td> | ||
<td valign="top"><a href="http://www.fastly.com/docs/api#purge">Link</a></td> | ||
</tr> | ||
<tr> | ||
<td valign="top">stats</td> | ||
<td valign="top"><pre lang="javascript"><code>fastly.stats('myServiceId', callback);</code></pre></td> | ||
<td valign="top"><a href="http://www.fastly.com/docs/api#stats">Link</a></td> | ||
</tr> | ||
</table> | ||
### Testing | ||
@@ -28,0 +47,0 @@ ```bash |
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
8106
47