Comparing version 1.12.1 to 1.13.0
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ /** |
@@ -25,2 +25,3 @@ /** | ||
, 'distance' | ||
, 'private' | ||
] | ||
@@ -30,2 +31,3 @@ , _updateAllowedProps = [ | ||
, 'type' | ||
, 'private' | ||
, 'commute' | ||
@@ -32,0 +34,0 @@ , 'trainer' |
@@ -52,3 +52,7 @@ /** | ||
}; | ||
athlete.listZones = function(args,done) { | ||
_listHelper('zones',args,done); | ||
}; | ||
athlete.update = function(args,done) { | ||
@@ -55,0 +59,0 @@ |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ var fs = require('fs'); |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ /** |
{ | ||
"name": "strava-v3", | ||
"version": "1.12.1", | ||
"version": "1.13.0", | ||
"description": "Simple wrapper for strava v3 api", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -38,3 +38,3 @@ | ||
* Create an application at [strava.com/developers](http://www.strava.com/developers) and make note of your `access_token` | ||
* Create an application at [strava.com/settings/api](https://www.strava.com/settings/api) and make note of your `access_token` | ||
* from the root of your node application: `$ npm install strava-v3` | ||
@@ -127,3 +127,3 @@ * `$ mkdir data` | ||
var strava = require('strava-v3'); | ||
strava.athlete.getFollowers({ | ||
strava.athlete.listFollowers({ | ||
'page':1 | ||
@@ -172,2 +172,3 @@ , 'per_page':2 | ||
* `strava.athlete.listClubs(args,done)` | ||
* `strava.athlete.listZones(args,done)` | ||
@@ -241,3 +242,3 @@ Athletes: | ||
* Make sure you've filled out all the fields in `data/strava_config`. | ||
* Use `strava.oauth.getRequestAccessURL({scope:"view_private write"})` to generate the request url and query it via your browser. | ||
* Use `strava.oauth.getRequestAccessURL({scope:"view_private,write"})` to generate the request url and query it via your browser. | ||
* Strava will prompt you (the user) to allow access, say yes and you'll be sent to your Authorization Redirection URI - the parameter `code` will be included in the redirection url. | ||
@@ -244,0 +245,0 @@ * Exchange the `code` for a new `access_token`: |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ /** |
@@ -138,2 +138,21 @@ | ||
describe('#listZones()', function() { | ||
it('should return information about heart-rate zones associated to athlete with access_token', function(done) { | ||
strava.athlete.listZones({},function(err,payload){ | ||
if(!err) { | ||
//console.log(payload); | ||
payload.should.be.instanceof(Object); | ||
} | ||
else { | ||
console.log(err); | ||
} | ||
done(); | ||
}); | ||
}); | ||
}); | ||
describe('#update()', function() { | ||
@@ -140,0 +159,0 @@ |
@@ -0,0 +0,0 @@ |
@@ -0,0 +0,0 @@ |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ |
@@ -0,0 +0,0 @@ |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ /** |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
123702
2076
260
1