Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

strava-v3

Package Overview
Dependencies
Maintainers
2
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

strava-v3 - npm Package Compare versions

Comparing version 1.12.1 to 1.13.0

0

gruntfile.js

@@ -0,0 +0,0 @@ /**

@@ -0,0 +0,0 @@ /**

2

lib/activities.js

@@ -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 @@ /**

2

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc