npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

strava-api-v3

v0.0.47

Published

strava-api-v3 wrapper

Downloads

8

Readme

!!!!! DON T USE THIS CODE FOR THE MOMENT

strava-api-v3

learn and create strava wrapper api implementation with ts/fetch

.env.exemple

.env exemple -> use that for testing purpose

usage

futur usage here

api routes

-------------------------------------

Get oauth token :

thank s to https://github.com/franchyze923/Code_From_Tutorials/blob/master/Strava_Api/request_links.txt

1) Get authorization code from authorization page. This is a one time, manual step. 
Paste the below code in a browser, hit enter then grab the "code" part from the resulting url. 

https://www.strava.com/oauth/authorize?client_id=your_client_id&redirect_uri=http://localhost&response_type=code&scope=activity:read_all
2) Exchange authorization code for access token & refresh token

https://www.strava.com/oauth/token?client_id=your_client_id&client_secret=your_client_secret&code=your_code_from_previous_step&grant_type=authorization_code
3) View your activities using the access token just received

https://www.strava.com/api/v3/athlete/activities?access_token=access_token_from_previous_step
4) Use refresh token to get new access tokens

https://www.strava.com/oauth/token?client_id=your_client_id&client_secret=your_client_secret&refresh_token=your_refresh_token_from_previous_step&grant_type=refresh_token

todo list

  • integration test
  • entity system : some field mismatch between doc and api, for exemple some field missing, or could be null or no present
  • unit test
  • mocking test
  • check upload
  • check stream implementation

api problem :

DetailedAthlete

  • username not defined inside the documentation for DetailedAthlete doc object
  • bio same
  • badge_type_id
  • friend: any | null; // ?????
  • follower : any | null; // ????
  • check request with bool and array
  • check stream request
  • check upload request

detailed club

  • profile : string; // doc no present
  • activity_types_icon : string; // doc no present
  • dimensions : string[]; // doc no present
  • localized_sport_type : string; // same
  • description : string; // doc no present
  • club_type : string; // doc no present
  • website : string; // doc no present

club member

member no present membership : 'member' | ???