Monogoto API Ruby Client
A simple and unofficial Ruby wrapper for the Monogoto IoT Connectivity API.
⚠️ This gem is not affiliated with Monogoto. Use it at your own risk.
1. Installation
Add this line to your application's Gemfile:
gem "monogoto_api"
And then execute:
bundle install
Or install it manually with:
gem install monogoto_api
2. Usage
1. Configure the client
You can authenticate with your Monogoto credentials:
require "monogoto_api"
client = MonogotoApi::Client.new("monogoto_user", "monogoto_pass")
You can retive account information
things_list = client.things
or you can operate by Things with the ICCID
thing = client.thing(iccid)
pings = client.thing_ping(iccid)
result = clientg.thing_state(iccid)
result = client.thing_session_status(iccid)
result = client.thing_refresh_connection(iccid)
events = client.thing_events(iccid)
Contributing
Bug reports and pull requests are welcome! Please open an issue first to discuss changes.
To contribute:
- Fork the repo
- Create a new branch
- Commit your changes
- Submit a Pull Request
Enviroment variables to develop
You have to set this ENV vars in the file .env
in the root directory
MONOGOTO_USER="<email>"
MONOGOTO_PASS="<PASSWORD>"
MONOGOTO_ICCID_SAMPLE="<ICCID>"
License
This project is licensed under the MIT License.