TACore 4.0.0 → 4.0.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0ec21334daa177ad0be7d4b05f11c57f5f3a91a2
4
- data.tar.gz: b2c0e09008db885a7c5c468cc4c3638be6e73eaa
3
+ metadata.gz: 1f75c89cea08134c5a2b93e4843887f67ff504a8
4
+ data.tar.gz: 9cd0c5e3dbdee6002dab82fa2540c3b096840b1e
5
5
  SHA512:
6
- metadata.gz: 9b26c61ba13a59bf68aa2cffb50e5930dd015b58e5d3ba9adaa974608c352dfd73725c8efb39b590978c1cdac6e568a8fbcf42c801c4ae590d3506c96a1910f1
7
- data.tar.gz: 694abc8c10680189bf8485b2dffa26f9508cdd1c6d75a202641cdeda676c3e126b395c1d20481d2b163ba7c115f6290db46c24e9151ab2d770b349103aeb2906
6
+ metadata.gz: 5b2792d03d8bb65a9db9258de9a01e4b6cb7b4857b13347c4b919ebf201abef2b7dcd870e7a8567d623964d83b62cf2a6549430c1f5a6bb5ea769289d17102c0
7
+ data.tar.gz: 45b5a453814e9033bc8532ea300e44767b6c89abc22f58e90f620f23d0501b524411789ff6a6a6cae97c44a8b6045442125a6a4348e74f840b6a55027e7b02f6
@@ -15,5 +15,19 @@ module TACore
15
15
  request(:get, '/application/all', {}, {"token": token})
16
16
  end
17
17
 
18
+ # Get all Iris devices assigned to your application
19
+ # @param token [String] Application Token after Authentication
20
+ # @return [Object] in JSON format
21
+ def self.devices(token)
22
+ request(:get, '/application/iris', {}, {"token": token})
23
+ end
24
+
25
+ # Get all Cirrus gateways assigned to your application
26
+ # @param token [String] Application Token after Authentication
27
+ # @return [Object] in JSON format
28
+ def self.gateways(token)
29
+ request(:get, '/application/cirrus', {}, {"token": token})
30
+ end
31
+
18
32
  end
19
33
  end
@@ -43,5 +43,30 @@ module TACore
43
43
  def self.destroy(token, client_id)
44
44
  request(:delete, '/client/', {"token": token, "client-id" => client_id})
45
45
  end
46
+
47
+ # Get all devices assigned to this client-id
48
+ # @param token [String] Client Token after Authentication
49
+ # @param client_id [String] used from {Client.create}
50
+ # @return [Object] in JSON format
51
+ def self.devices(token, client_id)
52
+ request(:get, '/client/devices',{}, {"token": token, "client-id" => client_id})
53
+ end
54
+
55
+ # Get all gateways assigned to this client-id
56
+ # @param token [String] Client Token after Authentication
57
+ # @param client_id [String] used from {Client.create}
58
+ # @return [Object] in JSON format
59
+ def self.gateways(token, client_id)
60
+ request(:get, '/client/gateways',{}, {"token": token, "client-id" => client_id})
61
+ end
62
+
63
+ # Get all Venues created by this client-id
64
+ # @param token [String] Client Token after Authentication
65
+ # @param client_id [String] used from {Client.create}
66
+ # @return [Object] in JSON format
67
+ def self.venues(token, client_id)
68
+ request(:get, '/client/venues',{}, {"token": token, "client-id" => client_id})
69
+ end
70
+
46
71
  end
47
72
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: TACore
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.0
4
+ version: 4.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Greg Winn
@@ -16,14 +16,14 @@ dependencies:
16
16
  name: rest-client
17
17
  requirement: !ruby/object:Gem::Requirement
18
18
  requirements:
19
- - - '='
19
+ - - "~>"
20
20
  - !ruby/object:Gem::Version
21
21
  version: 2.0.0
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
25
25
  requirements:
26
- - - '='
26
+ - - "~>"
27
27
  - !ruby/object:Gem::Version
28
28
  version: 2.0.0
29
29
  - !ruby/object:Gem::Dependency
@@ -55,7 +55,7 @@ files:
55
55
  - lib/tacore/venue.rb
56
56
  homepage: http://thinaer.io
57
57
  licenses:
58
- - None
58
+ - MIT
59
59
  metadata: {}
60
60
  post_install_message:
61
61
  rdoc_options: []
@@ -73,7 +73,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
73
73
  version: '0'
74
74
  requirements: []
75
75
  rubyforge_project:
76
- rubygems_version: 2.4.6
76
+ rubygems_version: 2.4.8
77
77
  signing_key:
78
78
  specification_version: 4
79
79
  summary: ThinAer Core API for the THINaer Platform