Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Ruby API wrapper for the Microsoft Health Cloud.
Add this line to your application's Gemfile:
gem 'MShealth'
And then execute:
$ bundle
Or install it yourself as:
$ gem install MShealth
Check get started on how to register application and the application authentication scheme.
Set the token:
MShealth.configure do |c|
c.token = "your token"
end
Then get client:
client = MShealth.client
client.profile #Get the details about this user from their Microsoft Health profile.
client.device(id:'FFFF1700-FFFF-FFFF-8529-454E11000210') #Get the single device info
client.devices #Return a list devices
# Get the single activity. "details,minute_summaries,map_points" are optional.
activity = client.activity(id:"2519647921241112976",details:1,minute_summaries:1,map_points:1)
# Get all activities during the period in an array. "details,minute_summaries,map_points,activity_types" are optional.
activities = client.activities(start_time:Time.new(2015,5,27),
end_time:Time.new(2015,7,29),
activity_types:"Run,Sleep",
details:1,
minute_summaries:1,
map_points:1)
# Get all summaries during the period in an array. "end_time,device_id" are optional.
summary = client.summary(period:'hourly',
start_time:Time.new(2015,6,27),
end_time:Time.new(2015,7,20),
device_id:"FFFF1700-FFFF-FFFF-8529-454E11000210")
All returns are stored in a hash-like Mash object. All naming of parameters are ruby-ish.(eg:firstName -> first_name)
profile = client.profile
profile.first_name
# You can check the whole structure using to_yaml:
puts profile.to_yaml
Bug reports and pull requests are welcome on GitHub at https://github.com/yielder/MShealth.
The gem is available as open source under the terms of the MIT License.
FAQs
Unknown package
We found that MShealth 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.