unifi-api 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +10 -6
- data/lib/unifi-api.rb +1 -0
- data/lib/unifi/api/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: aa811e024197d3dbea2bf98ff58bc1baaae25c56
|
|
4
|
+
data.tar.gz: d4db373f77d442c4efdabd558dbcc855d241b9e0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 52125fdc81ffd13c5325d228cdac64ada4034dbe3d5ed1f58d30daec568eac467fb6a24c07c339a44bc68f3df90aa105ee72ebb68748f6fe8a8793ebd9557e0e
|
|
7
|
+
data.tar.gz: ae02ade9327580179f7a0ae01e5f5c76db0da5a05f4ebb6c8161b54597dffcc5234dd9edf3e0167ba749f51bbbbfde69d1cb9168881a8e22419154c6c51cf3b6
|
data/README.md
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
#
|
|
1
|
+
# unifi-api
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
TODO: Delete this and the text above, and describe your gem
|
|
3
|
+
unifi-api is a ruby client for the Ubiquiti Unifi wireless controller API. Based on the python implementation at https://github.com/calmh/unifi-api.
|
|
6
4
|
|
|
7
5
|
## Installation
|
|
8
6
|
|
|
@@ -22,7 +20,13 @@ Or install it yourself as:
|
|
|
22
20
|
|
|
23
21
|
## Usage
|
|
24
22
|
|
|
25
|
-
|
|
23
|
+
```ruby
|
|
24
|
+
require 'unifi-api'
|
|
25
|
+
|
|
26
|
+
unifi = Unifi::Api::Controller.new('unifi', 'admin', 'password', 8443, 'v4')
|
|
27
|
+
|
|
28
|
+
aps = unifi.get_aps
|
|
29
|
+
```
|
|
26
30
|
|
|
27
31
|
## Development
|
|
28
32
|
|
|
@@ -32,5 +36,5 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
|
|
|
32
36
|
|
|
33
37
|
## Contributing
|
|
34
38
|
|
|
35
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/
|
|
39
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/hculap/unifi-api.
|
|
36
40
|
|
data/lib/unifi-api.rb
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
require 'unifi/api'
|
data/lib/unifi/api/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: unifi-api
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- hculap
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2017-05-12 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -65,6 +65,7 @@ files:
|
|
|
65
65
|
- Rakefile
|
|
66
66
|
- bin/console
|
|
67
67
|
- bin/setup
|
|
68
|
+
- lib/unifi-api.rb
|
|
68
69
|
- lib/unifi/api.rb
|
|
69
70
|
- lib/unifi/api/version.rb
|
|
70
71
|
- unifi-api.gemspec
|