Skip to content
SimpleMDM Ruby bindings
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin remove DS_Store files Jul 1, 2016
lib Updated Dependencies Oct 6, 2017
.gitignore remove DS_Store files Jul 1, 2016
CHANGELOG.md updated changelog and readme Oct 6, 2017
CODE_OF_CONDUCT.md WIP Oct 20, 2015
Gemfile doc update Oct 20, 2015
LICENSE.txt WIP Oct 20, 2015
README.md updated changelog and readme Oct 6, 2017
Rakefile WIP Oct 20, 2015
simplemdm.gemspec Updated Dependencies Oct 6, 2017

README.md

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/.

Related Projects

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.

Installation

Add this line to your application's Gemfile:

gem 'simplemdm'

And then execute:

$ bundle

Or install it yourself as:

$ gem install simplemdm

Usage

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

Development

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.

Contributing

  1. Fork it ( https://github.com/SimpleMDM/simplemdm-ruby/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request
You can’t perform that action at this time.