Sha256: a0bd6f9345d16c78c71769b820bedb6b9575d1b8b2053fcfa8db7b316c857230

Contents?: true

Size: 1.4 KB

Versions: 1

Compression:

Stored size: 1.4 KB

Contents

Freebox OS API bindings for Ruby
================================

WARNING: Work In Progress.

Overview
--------

This gem contains Freebox OS API bindings for the Ruby language.
I started working on that to use it with https://github.com/mcanevet/puppet-freebox

Obtaining an app\_token
-----------------------

```ruby
require 'freebox_api'

puts FreeboxApi::Freebox.app_token('fr.freebox.testapp', 'Test App', '0.0.7', 'Pc de Xavier')
```

Initialize application
----------------------

```ruby
require 'freebox_api'

mafreebox = FreeboxApi::Freebox.new('dyNYgfK0Ya6FWGqq83sBHa7TwzWo+pg4fDFUJHShcjVYzTfaRrZzm93p7OTAfH/0', 'fr.freebox.testapp', 'Test App', '0.0.7', 'Pc de Xavier', 'http://mafreebox.example.com:4242')
```

Get the current challenge
-------------------------

```ruby
puts mafreebox.challenge
```

Get the current password
------------------------

```ruby
puts mafreebox.password
```

Get the current session\_token
-----------------------------

```ruby
puts mafreebox.session_token
```

Get the list of browsable LAN interfaces
----------------------------------------

```ruby
puts mafreebox.interfaces
```

Get the list of LAN hosts
-------------------------

```ruby
puts mafreebox.lan_hosts
```

Get the list of DHCP static leases
----------------------------------

```ruby
puts mafreebox.static_leases
```

Get the list of Port Forwardings
--------------------------------

```ruby
puts mafreebox.redirs
```

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
freebox_api-0.0.1 README.md