{"id":17910173,"url":"https://github.com/denolfe/jefit","last_synced_at":"2025-03-23T20:32:01.569Z","repository":{"id":35936984,"uuid":"40225485","full_name":"denolfe/jefit","owner":"denolfe","description":"A third-party API for accessing JeFit data","archived":false,"fork":false,"pushed_at":"2023-11-13T19:19:41.000Z","size":6,"stargazers_count":16,"open_issues_count":1,"forks_count":4,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-18T23:43:57.351Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/denolfe.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-08-05T05:03:56.000Z","updated_at":"2024-07-11T20:53:34.000Z","dependencies_parsed_at":"2022-08-27T05:21:57.772Z","dependency_job_id":null,"html_url":"https://github.com/denolfe/jefit","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/denolfe%2Fjefit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/denolfe%2Fjefit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/denolfe%2Fjefit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/denolfe%2Fjefit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/denolfe","download_url":"https://codeload.github.com/denolfe/jefit/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245165208,"owners_count":20571266,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-28T19:29:27.279Z","updated_at":"2025-03-23T20:32:01.283Z","avatar_url":"https://github.com/denolfe.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Jefit\r\n\r\nThird-party API for accessing JeFit data\r\n\r\n## Installation\r\n\r\n`npm install jefit`\r\n\r\nOR\r\n\r\n`yarn add jefit`\r\n\r\n## Prerequisites\r\n\r\n* This client will only work if your privacy (under your settings) is set to: \u003cb\u003eEveryone\u003c/b\u003e\r\n* Grab your userId from https://www.jefit.com/my-jefit/, look for https://jefit.com/[USERID] url.\r\n\r\n## Usage\r\n\r\n`var jefit = require('jefit');`\r\n\r\n### jefit.fetchMostRecent(userId, callback)\r\n\r\n* userId `String`\r\n* callback `Function`\r\n\r\nExample:\r\n\r\n```\r\njefit.fetchMostRecent('111111', function (result) {\r\n  console.log(result);\r\n});\r\n```\r\n\r\n### jefit.fetchSingleDate(userId, date, callback)\r\n\r\n* userId `String`\r\n* date `String` with format `YYYY-MM-DD`\r\n* callback `Function`\r\n\r\nExample:\r\n\r\n```\r\njefit.fetchSingleDate('111111', '2014-01-13', function (result) {\r\n  console.log(result);\r\n});\r\n```\r\n\r\n### Output:\r\n\r\n```\r\n{\r\n  \"exercises\": [\r\n    {\r\n      \"sets\": [\r\n        {\r\n          \"index\": 1,\r\n          \"duration\": 600\r\n        }\r\n      ],\r\n      \"name\": \"Elliptical Training\",\r\n      \"oneRepMax\": null,\r\n      \"type\": \"Cardio\"\r\n    },\r\n    {\r\n      \"sets\": [\r\n        {\r\n          \"index\": 1,\r\n          \"weight\": 25,\r\n          \"reps\": 12\r\n        },\r\n        {\r\n          \"index\": 2,\r\n          \"weight\": 30,\r\n          \"reps\": 12\r\n        },\r\n        {\r\n          \"index\": 3,\r\n          \"weight\": 35,\r\n          \"reps\": 12\r\n        }\r\n      ],\r\n      \"name\": \"Dumbbell Bench Press\",\r\n      \"oneRepMax\": 49,\r\n      \"type\": \"Lift\"\r\n    }\r\n  ],\r\n  \"date\": \"2015-08-03\",\r\n  \"sessionLength\": 1602,\r\n  \"actualWorkout\": 1062,\r\n  \"wastedTime\": 0,\r\n  \"restTimer\": 540,\r\n  \"exercisesDone\": 2,\r\n  \"weightLifted\": 1080\r\n}\r\n```\r\n\r\n## To Do\r\n\r\n- Add proper tests\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdenolfe%2Fjefit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdenolfe%2Fjefit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdenolfe%2Fjefit/lists"}