
Security News
AGENTS.md Gains Traction as an Open Format for AI Coding Agents
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.
= health_graph
Ruby gem to work with RunKeeper Health Graph API. More information about RunKeeper Health Graph API http://developer.runkeeper.com/healthgraph.
== Usage
=== Authentication
HealthGraph.configure do |config| config.client_id = [YOUR HEALTH GRAPH CLIENT ID] config.client_secret = [YOUR HEALTH GRAPH CLIENT SECRET] config.authorization_redirect_url = [PAGE TO REDIRECT THE USER TO AFTER AUTH] end
auth_url = HealthGraph.authorize_url
access_token = HealthGraph.access_token(auth_code)
For more information on authentication & authorization, see http://developer.runkeeper.com/healthgraph/registration-authorization
=== Accessing Health Graph API
user = HealthGraph::User.new(access_token) profile = user.profile fitness_activities = user.fitness_activities.items sleep = user.sleep.items weight = user.weight.items
=== Other Configuration options
HealthGraph.configure do |config|
config.client_id = [YOUR HEALTH GRAPH CLIENT ID. REQUIRED.]
config.client_secret = [YOUR HEALTH GRAPH CLIENT SECRET. REQUIRED.]
config.authorization_redirect_url = [PAGE TO REDIRECT THE USER TO AFTER AUTH. REQUIRED.]
config.authorization_url = [URL TO AUTHORIZE USER. DEFAULT IS http://runkeeper.com/apps/authorize]
config.access_token_url = [URL TO GET USER ACCESS TOKEN. DEFAULT IS http://runkeeper.com/apps/token]
config.endpoint = [API ENDPOINT. DEFAULT IS http://api.runkeeper.com]
config.adapter = [FARADAY ADAPTER. DEFAULT IS net_http]
config.faraday_options = [ADDITIONAL FARADAY OPTIONS. DEFAULT IS EMPTY.]
end
== Contributing to health_graph
== Copyright
Copyright (c) 2011 Kenny Ma. See LICENSE.txt for further details.
FAQs
Unknown package
We found that health_graph demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.