{"id":28763932,"url":"https://github.com/marksoper/node-runkeeper","last_synced_at":"2025-06-17T09:10:48.229Z","repository":{"id":140705254,"uuid":"2262368","full_name":"marksoper/node-runkeeper","owner":"marksoper","description":"Node.js Client for Runkeeper Health Graph API","archived":false,"fork":false,"pushed_at":"2012-03-04T01:42:45.000Z","size":113,"stargazers_count":32,"open_issues_count":1,"forks_count":20,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-04-26T04:04:59.684Z","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/marksoper.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":"2011-08-24T15:25:16.000Z","updated_at":"2021-11-20T03:27:51.000Z","dependencies_parsed_at":"2023-05-22T20:18:49.968Z","dependency_job_id":null,"html_url":"https://github.com/marksoper/node-runkeeper","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/marksoper/node-runkeeper","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marksoper%2Fnode-runkeeper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marksoper%2Fnode-runkeeper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marksoper%2Fnode-runkeeper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marksoper%2Fnode-runkeeper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/marksoper","download_url":"https://codeload.github.com/marksoper/node-runkeeper/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marksoper%2Fnode-runkeeper/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260326793,"owners_count":22992388,"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":"2025-06-17T09:10:47.447Z","updated_at":"2025-06-17T09:10:48.203Z","avatar_url":"https://github.com/marksoper.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n\nnode-runkeeper - Node.js Client for Runkeeper Health Graph API\n==============================================================\n\u003cbr\u003e\n\n## Author: [Mark Soper](masoper@gmail.com)\n\nA client/wrapper for the Runkeeper Health Graph API:\nhttp://developer.runkeeper.com/healthgraph\n\n## Installation\n\n- node-runkeeper isn't on NPM yet, so for now the best way is cloning the respository from Github and making it available to your code\n\n```bash\n$ git clone git@github.com:/marksoper/node-runkeeper support/runkeeper/\n```\n```javascript\n// in your code\nrequire.paths.unshift('support/runkeeper/lib');\n```\n\n## Creating a client\n\nRegister your application with Runkeeper to get the credentials needed below:\nhttp://runkeeper.com/partner/applications\n\n\n```javascript\n\nvar options = exports.options = {\n\n    // Client ID: \n    // This value is the OAuth 2.0 client ID for your application.  \n    client_id : \"\u003c client id \u003e\",\n\n    // Client Secret:  \n    // This value is the OAuth 2.0 shared secret for your application.   \n    client_secret : \"\u003c client secret \u003e\",\n    \n    // Authorization URL:   \n    // This is the URL to which your application should redirect the user in order to authorize access to his or her RunKeeper account.   \n    auth_url : \"https://runkeeper.com/apps/authorize\",\n\n    // Access Token URL:    \n    // This is the URL at which your application can convert an authorization code to an access token. \n    access_token_url : \"https://runkeeper.com/apps/token\",\n\n    // Redirect URI:   \n    // This is the URL that RK sends user to after successful auth  \n    // URI naming based on Runkeeper convention \n    redirect_uri : \"\u003c redirect uri \u003e\"\n\n};\n\nvar runkeeper = require('./support/runkeeper/lib/runkeeper');\n\nvar client = new runkeeper.HealthGraph(options);\n\n```\n\n## Using the client\n\nUsing any of the client's API methods assumes that it has a valid access_token. Once the Health Graph API issues your application an authorization code ([see here](http://developer.runkeeper.com/healthgraph/registration-authorization) for more information on registering an application with the Health Graph), you can request an access token.\n\n```javascript\nclient.getNewToken(authorization_code, function(access_token) {\n  client.access_token = access_token;\n\n  // Now you're free to do whatever you'd like with the client.\n\n  // e.g. Get user profile information\n  client.profile(function(data) {\n    // data returned in JSON with format depending on type of call\n    var obj = JSON.parse(data);\n});\n})\n```\n\n\n## Extending the client\n\nOnly a few of basic API calls are currently supported.  Adding support for new calls should be easy - just add entries into this dictionary in api.js\n\n```javascript\n// this is from api.js\n//\nvar API = exports.API = {\n    \"user\": {\"media_type\": \"application/vnd.com.runkeeper.User+json\",\n             \"uri\": \"/user\"},\n    \"profile\": {\"media_type\": \"application/vnd.com.runkeeper.Profile+json\",\n                \"uri\": \"/profile\"},\n    \"settings\": {\"media_type\": \"application/vnd.com.runkeeper.Settings+json\",\n                \"uri\": \"/settings\"},\n    \"fitnessActivityFeed\": {\"media_type\": \"application/vnd.com.runkeeper.FitnessActivityFeed+json\",\n                \"uri\": \"/fitnessActivities\"},\n    \"fitnessActivities\": {\"media_type\": \"application/vnd.com.runkeeper.FitnessActivity+json\",\n                \"uri\": \"/fitnessActivities\"},\n};\n```\n\n\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarksoper%2Fnode-runkeeper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarksoper%2Fnode-runkeeper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarksoper%2Fnode-runkeeper/lists"}