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/.
- simpleMDMpy - Python library
- simplemdmcollection - Postman collection
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:
gem'simplemdm'And then execute:
$ bundle
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 accessSimpleMDM::api_key='j75m8YtUGEaEO5TysjzAXihE07nKoUm9'# lock a devicedevice=SimpleMDM::Device.find(23)device.lockmessage: "This device has been locked. Please call the number provided.",phone_number: "5035555847"# upload an enterprise app and deploy it to a group of devicesdata=File.open('surfreport2.2.ipa')app=SimpleMDM::App.newname: "Surf Report",binary: dataapp.saveapp_group=SimpleMDM::AppGroup.find(37)app_group.add_app(app)app_group.push_appsAfter 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