{"id":29995402,"url":"https://github.com/chrisdoc/hevy-api-client","last_synced_at":"2025-08-05T01:39:20.561Z","repository":{"id":305353324,"uuid":"1022658910","full_name":"chrisdoc/hevy-api-client","owner":"chrisdoc","description":null,"archived":false,"fork":false,"pushed_at":"2025-07-19T15:43:11.000Z","size":650,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-19T19:08:56.351Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/chrisdoc.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-07-19T14:50:37.000Z","updated_at":"2025-07-19T15:43:14.000Z","dependencies_parsed_at":"2025-07-19T19:09:21.604Z","dependency_job_id":"c22f983a-81a0-42b7-ba51-a01f93c22b40","html_url":"https://github.com/chrisdoc/hevy-api-client","commit_stats":null,"previous_names":["chrisdoc/hevy-api-client"],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/chrisdoc/hevy-api-client","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chrisdoc%2Fhevy-api-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chrisdoc%2Fhevy-api-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chrisdoc%2Fhevy-api-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chrisdoc%2Fhevy-api-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chrisdoc","download_url":"https://codeload.github.com/chrisdoc/hevy-api-client/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chrisdoc%2Fhevy-api-client/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268820431,"owners_count":24312380,"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","status":"online","status_checked_at":"2025-08-04T02:00:09.867Z","response_time":79,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":"2025-08-05T01:39:17.711Z","updated_at":"2025-08-05T01:39:20.552Z","avatar_url":"https://github.com/chrisdoc.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Hevy API Client\n\nA TypeScript client for the [Hevy API](https://www.hevy.com/developer), generated from the official OpenAPI specification.\n\n## Installation\n\n```bash\nnpm install hevy-api-client\n```\n\n## Usage\n\nFirst, you'll need to get your API key from the [Hevy developer settings](https://hevy.com/settings?developer).\n\nThen, you can import and use the `HevyAPIClient` in your project:\n\n```typescript\nimport { HevyAPIClient } from 'hevy-api-client';\n\n// 1. Create a new client instance with your API key.\nconst client = new HevyAPIClient('YOUR_HEVY_API_KEY');\n\n// 2. Define an async function to call the API.\nasync function getWorkouts() {\n  try {\n    // 3. Call the desired method with any required parameters.\n    // The API key is automatically included in the headers.\n    const response = await client.getV1Workouts({\n      query: {\n        page: 1,\n        pageSize: 10,\n      },\n    });\n\n    // 4. Log the response data.\n    console.log(response.data);\n  } catch (error) {\n    console.error('Failed to fetch workouts:', error);\n  }\n}\n\n// 5. Run the function.\ngetWorkouts();\n```\n\n## API Methods\n\nThe client provides the following methods:\n\n*   `getV1Workouts(options)`\n*   `postV1Workouts(options)`\n*   `getV1WorkoutsCount(options)`\n*   `getV1WorkoutsEvents(options)`\n*   `getV1WorkoutsByWorkoutId(options)`\n*   `putV1WorkoutsByWorkoutId(options)`\n*   `getV1Routines(options)`\n*   `postV1Routines(options)`\n*   `getV1RoutinesByRoutineId(options)`\n*   `putV1RoutinesByRoutineId(options)`\n*   `getV1ExerciseTemplates(options)`\n*   `getV1ExerciseTemplatesByExerciseTemplateId(options)`\n*   `getV1RoutineFolders(options)`\n*   `postV1RoutineFolders(options)`\n*   `getV1RoutineFoldersByFolderId(options)`\n*   `deleteV1WebhookSubscription(options)`\n*   `getV1WebhookSubscription(options)`\n*   `postV1WebhookSubscription(options)`\n\nFor more information on the available parameters for each method, please refer to the [Hevy API documentation](https://www.hevy.com/developer).\n\n## Error Handling\n\nAll API methods return a promise. If the request fails, the promise will be rejected with an error. You can use a `try...catch` block to handle these errors, as shown in the example above.\n\n## Contributing\n\nThis client is generated from the official Hevy OpenAPI specification using [@hey-api/openapi-ts](https://hey-api.com/openapi-ts).\n\nTo regenerate the client, first fetch the latest OpenAPI specification:\n\n```bash\nnpm run fetch-spec\n```\n\nThen, run the following command to regenerate the client:\n\n```bash\nnpm run generate-client\n```\n\nThis will output the generated files to the `src/generated` directory.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchrisdoc%2Fhevy-api-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchrisdoc%2Fhevy-api-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchrisdoc%2Fhevy-api-client/lists"}