Skip to content

Gem for Flespi — Universal Telematics Gateway, Parser & API

License

Notifications You must be signed in to change notification settings

vladkostikov/flespi-ruby

Repository files navigation

Flespi

Gem Version

Official documentation Flespi

Installation

Add this line to your application's Gemfile:

gem "flespi-ruby"

And then execute:

bundle install

Usage

require "flespi"

# Initialize flespi instance
flespi_client = Flespi.new("FlespiToken", debug: true)

# Get collection of all devices
flespi_client.get("/gw/devices/all")

# Get device by device id
flespi_client.get("/gw/devices/123456")

# Create new device
flespi_client.create("/gw/devices", ["configuration": { "ident": "123456" }, 
                                     "device_type_id": 10, 
                                     "name": "Device name"])

# Delete device by device id
flespi_client.delete("/gw/devices/123456")

About

Gem for Flespi — Universal Telematics Gateway, Parser & API

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published