sladkovm / stravaio Goto Github PK
View Code? Open in Web Editor NEWPython client for Strava API with a focus on fluent data handling
License: MIT License
Python client for Strava API with a focus on fluent data handling
License: MIT License
get_logged_in_athlete_activities()
fails with after
set to slang dates e.g. last year.
The problem is likely in wrong usage of maya
parse
and when
methods.
Hy,
I am trying to get all the segments inside an activity.
And for that, I am using the get_activity_by_id function.
For that function to return the effort list, I needed to include the 'include_all_efforts' parameters.
Here is my code:
params = {'include_all_efforts':True}
activity = client.get_activity_by_id(some_id ,**params)
I am getting the ERROR:
TypeError: get_activity_by_id() got an unexpected keyword argument 'include_all_efforts'
The strange thing is that I checked the source code here and in line 225 there is the same ERROR but with different text. This means the code is not getting here, I suppose.
Am I doing something wrong?
Hi @sladkovm
Thanks for putting up this package. This is the only one I am able to use given my level of python knowledge.
If I wanted to use the method get_logged_in_athlete_activities() to pull activity summary of more than 30 activity. How can I return a list of activities with all the my activities.
If I put no after parameter that would return more than 30 activity it only return a list of the last n activities that is the reminder of the division of total activities by 30.
Thanks
Pedro
Hi,
I would like to programmatically add manual activities to my Strava timeline. I can do this using the Gui, but it's tedious because I want to log all my bicycle commutes. I studied the code, but it does not seem to be possible, am I right? (Access level 'read', etc)
Cheers!
AJ
Add get_local_athlete_by_id()
method to the StravaIO
class.
(Thanks for the API and docs, they are great.)
I am not seeing heart rate data in the return response when using the client.get_activity_by_id(activity_id)
call. I have checked that my heart rate data is not restricted by my privacy settings, so I believe it is visible:
This is with version:
stravaio 0.0.9
Is this a bug?
Seems to be an issue setting the scope. strava_oauth2 seems to work for setting the read scope, and it opens a window at strava that says "View data about your activities" but when I look on the api page for my app it just has the read scope.
I can fetch basic profile information but activity calls return nothing.
Got error when retrieving hiking activity:
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/swagger_client/models/summary_segment.py", line 196, in activity_type .format(activity_type, allowed_values)
ValueError: Invalid value foractivity_type
(Hike), must be one of ['Ride', 'Run']
is it possible to add other types of activities?
When using stravaio_oauth2 to authenticate an application, there is no way to change the access scope to allow for write access to anything. The scope has been hardcoded to read access only: https://github.com/sladkovm/stravaio/blob/master/stravaio.py#L366
The scope should be exposed as an argument to the public strava_oauth2 function.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.