Please Note: This library is not officially supported nor maintained. It does not currently wrap the complete functionality of the SimpleMDM API. For a current listing of API functionality, please refer to the SimpleMDM documentation at http://www.simplemdm.com/docs/api/.
SimpleMDM Ruby bindings
This is a lightweight SDK that acts as a launching point for integrating ruby-based applications with SimpleMDM. The native API is a RESTful JSON implementation. These bindings wrap the API.
Add this line to your application's Gemfile:
And then execute:
Or install it yourself as:
$ gem install simplemdm
Full documentation is available here: http://www.simplemdm.com/docs/api/
require 'simplemdm' # provide your api key for access SimpleMDM::api_key = 'j75m8YtUGEaEO5TysjzAXihE07nKoUm9' # lock a device device = SimpleMDM::Device.find(23) device.lock message: "This device has been locked. Please call the number provided.", phone_number: "5035555847" # upload an enterprise app and deploy it to a group of devices data = File.open('surfreport2.2.ipa') app = SimpleMDM::App.new name: "Surf Report", binary: data app.save app_group = SimpleMDM::AppGroup.find(37) app_group.add_app(app) app_group.push_apps
After checking out the repo, run
bin/setup to install dependencies. Then, run
bin/console for an interactive prompt that will allow you to experiment.
To install this gem onto your local machine, run
bundle exec rake install. To release a new version, update the version number in
version.rb, and then run
bundle exec rake release to create a git tag for the version, push git commits and tags, and push the
.gem file to rubygems.org.
- Fork it ( https://github.com/SimpleMDM/simplemdm-ruby/fork )
- Create your feature branch (
git checkout -b my-new-feature)
- Commit your changes (
git commit -am 'Add some feature')
- Push to the branch (
git push origin my-new-feature)
- Create a new Pull Request