2 - Using Strava API with JavaScript - Strava API for Beginners

preview_player
Показать описание
In this video we access the Strava api using JavaScript and fetch command.

@2:28 meant to say Promise!
Рекомендации по теме
Комментарии
Автор

This was a super informational video. Thank you for taking the time to explain this

adriannearevalo
Автор

Thank you so much! Great video for people like me who did not understand Strava's documentation!

loganholmes
Автор

Thanks for this. Had been trying for days to get a ReAuthorize solution before finding your video

CoachKevTour
Автор

Stumbled upon this video when I came up with a similar idea for class. Everything is working as intended for me so far. I was curious about the responses from the getActivities function. The default value on the strava developers page is set to 30 items per page and the default page number is just 1. I was curious if you know how to go about either increasing the number of items in the response or increasing the number of pages read. Thanks!

kyleanderson
Автор

thanks for the tutorial, worked for me so far.

seanbrackstone
Автор

{"message":"Authorization Error", "errors":[{"resource":"AccessToken", "field":"activity:read_permission", "code":"missing"}]}

Hi man, I'm trying to get access, but it always says access denied, is there any previous configuration so that it is possible to access my data?... I found the error strange because my profile is public and my training and activities are also public, and my token has not yet arrived within the expiration date, do you have any tips?

DrFelixMarques
Автор

I'm frustrated... Response after running the js: Failed to load resource: the server responded with a status of 401 (Unauthorized)

rlemon
Автор

to use the fetch in this is npm install fetch enough? and Do i install it in the given directory or globally? thanks

elamelanin
Автор

How would you call the getActivities function, like lets say you want the activity types. the parameter is (res) in it but how would I call this, thanks

elamelanin
Автор

Great video! I just have one question. If I was going to use this fetch request in React App would I just put it in a component? Thanks

martynolan
Автор

Thank you Francis for the nice video. Do you know what to do if I only want to get the results from type = run (activitytype)? Thanks in advance.

erikdejonge
Автор

Any idea why i might be getting a 401 unauthorized? the request works perfectly and returns in postman but not when using the code?

BenCowley
Автор

Helpful but according to the docs the refresh token will change after getting a new access token. Was this not the case before?

toneking
Автор

This is great! Thank you. I do see the promise but not sure if that can be rendered? Would it be possible to add another .then on there to get the data?

stephangriesel
Автор

great tutorial, in the github code however it's missing the 27th line just a heads up

bigsmerdo
Автор

I'm getting errors on the promise test. Not sure what's going wrong as it's working in Postman...
It's saying: code: "invalid" field: "access_token" resource: "Athlete

the-freedomguy
Автор

Do you have any simple solution to use this code in public without burst all sensitive keys? I want to go as minimalistic as possible.

alexanderadolfsson
Автор

Hi there, i am getting "activity:read_permission" due to access_token, even though i am providing it. Do you have any idea about it???

mohammadquanit
Автор

Thank you for the videos, it helped me unblock the whole authorization flow process but there's still one thing I'm not sure how to do it. Since you went to Postman to copy the code from the redirect_uri to make a POST request to get the refresh token, how is this automatically done for other users? For example, the VeloViewer app asks the user to "Connect with Strava", the user logs in and authorizes the app and then can see the content but how does the app gets that redirect_uri code and makes the new POST request? :S

fmo
Автор

Really appreciate your effort, i followed this video precisely but what is next? what if i need to start to use the data in promisevalue ? how can i get this data and start to use it in a web application because i am working on one now :) thnx

wfareed
welcome to shbcf.ru