Skip to content

lockieluke/puregym-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PureGym API

PureGym API wrapper powered by Deno. Underlying API reverse engineered on a jailbroken iPhone with the official PureGym app

Usage

Gym live count

Live information about the number of people at a specific gym, if id isn't provided it will automatically select your home gym

GET /count?email=[email]&pin=[pin]&id=[gym-id]

Gym Access QR Code

Get string of the gym access QR Code, you can use this to generate an access QR Code with something like Siri Shortcuts

GET /qrcode?email=[email]&pin=[pin]

Use cases

It would show 0 when there's less than 10 people at the gym, this is what the underlying API returns and indeed is a limitation
  • Use an app like SuperWidget to display your gym's live count on your home screen as a widget
  • Use Siri Shortcuts to generate a QR Code for your gym access

Security

The API does not store any data as it generates a new access token for every request and attempts to tell PureGym to invalidate it after the request is complete.

However, your email and pin are both sent in plain text same as PureGym's official API so there isn't much of a different, nothing we can do about that.

Deploy

Deno Deploy is the easiest way to deploy this API, but you can use any other service that supports Deno. You might have to change the project ID in deno.json to your own but running deno task deploy should work right away as long as deployctl is installed

Credits

  • palera1n for the jailbreak, jailbreak done on an old iPhone 7
  • SSL Kill Switch 3 for making it easy to disable SSL Pinning on a jailbroken iPhone
  • Proxyman for intercepting HTTP requests remotely on a Mac

About

PureGym API powered by Deno

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published