megam_api 0.93 → 0.95

Sign up to get free protection for your applications and to get access to all the features.
Files changed (97) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +2 -2
  3. data/lib/megam/api.rb +18 -4
  4. data/lib/megam/api/accounts.rb +19 -4
  5. data/lib/megam/api/assemblies.rb +15 -0
  6. data/lib/megam/api/assembly.rb +15 -1
  7. data/lib/megam/api/availableunits.rb +15 -0
  8. data/lib/megam/api/balances.rb +16 -1
  9. data/lib/megam/api/billedhistories.rb +15 -0
  10. data/lib/megam/api/billings.rb +15 -0
  11. data/lib/megam/api/components.rb +15 -0
  12. data/lib/megam/api/credithistories.rb +15 -0
  13. data/lib/megam/api/csars.rb +16 -1
  14. data/lib/megam/api/discounts.rb +15 -0
  15. data/lib/megam/api/domains.rb +32 -22
  16. data/lib/megam/api/errors.rb +15 -0
  17. data/lib/megam/api/invoices.rb +15 -0
  18. data/lib/megam/api/login.rb +15 -0
  19. data/lib/megam/api/marketplaces.rb +15 -0
  20. data/lib/megam/api/organizations.rb +31 -17
  21. data/lib/megam/api/promos.rb +18 -3
  22. data/lib/megam/api/requests.rb +15 -0
  23. data/lib/megam/api/sensors.rb +15 -0
  24. data/lib/megam/api/sshkeys.rb +15 -0
  25. data/lib/megam/api/subscriptions.rb +15 -0
  26. data/lib/megam/api/version.rb +16 -1
  27. data/lib/megam/core/account.rb +1 -1
  28. data/lib/megam/core/assemblies.rb +1 -1
  29. data/lib/megam/core/assemblies_collection.rb +1 -1
  30. data/lib/megam/core/assembly.rb +1 -1
  31. data/lib/megam/core/assembly_collection.rb +1 -1
  32. data/lib/megam/core/auth.rb +1 -1
  33. data/lib/megam/core/availableunits.rb +1 -1
  34. data/lib/megam/core/availableunits_collection.rb +1 -1
  35. data/lib/megam/core/balances.rb +4 -5
  36. data/lib/megam/core/balances_collection.rb +1 -1
  37. data/lib/megam/core/billedhistories.rb +4 -5
  38. data/lib/megam/core/billedhistories_collection.rb +1 -1
  39. data/lib/megam/core/billings.rb +4 -4
  40. data/lib/megam/core/billings_collection.rb +1 -1
  41. data/lib/megam/core/components.rb +1 -1
  42. data/lib/megam/core/components_collection.rb +1 -1
  43. data/lib/megam/core/config.rb +1 -1
  44. data/lib/megam/core/credithistories.rb +1 -1
  45. data/lib/megam/core/credithistories_collection.rb +1 -1
  46. data/lib/megam/core/csar.rb +1 -1
  47. data/lib/megam/core/csar_collection.rb +1 -1
  48. data/lib/megam/core/discounts.rb +1 -1
  49. data/lib/megam/core/discounts_collection.rb +1 -1
  50. data/lib/megam/core/domain_collection.rb +144 -0
  51. data/lib/megam/core/domains.rb +76 -85
  52. data/lib/megam/core/error.rb +1 -1
  53. data/lib/megam/core/invoices.rb +1 -1
  54. data/lib/megam/core/invoices_collection.rb +1 -1
  55. data/lib/megam/core/json_compat.rb +3 -0
  56. data/lib/megam/core/konipai.rb +1 -1
  57. data/lib/megam/core/marketplace.rb +1 -1
  58. data/lib/megam/core/marketplace_collection.rb +1 -1
  59. data/lib/megam/core/organizations.rb +1 -3
  60. data/lib/megam/core/organizations_collection.rb +1 -1
  61. data/lib/megam/core/promos.rb +1 -1
  62. data/lib/megam/core/request.rb +1 -1
  63. data/lib/megam/core/request_collection.rb +1 -1
  64. data/lib/megam/core/sensors.rb +1 -1
  65. data/lib/megam/core/sensors_collection.rb +1 -1
  66. data/lib/megam/core/server_api.rb +1 -1
  67. data/lib/megam/core/sshkey.rb +1 -1
  68. data/lib/megam/core/sshkey_collection.rb +1 -1
  69. data/lib/megam/core/subscriptions.rb +1 -1
  70. data/lib/megam/core/subscriptions_collection.rb +1 -1
  71. data/lib/megam/mixins/assemblies.rb +15 -0
  72. data/lib/megam/mixins/assembly.rb +16 -0
  73. data/lib/megam/mixins/common_deployable.rb +15 -0
  74. data/lib/megam/mixins/components.rb +15 -0
  75. data/lib/megam/mixins/megam_attributes.rb +15 -0
  76. data/lib/megam/mixins/outputs.rb +15 -0
  77. data/lib/megam/mixins/policies.rb +15 -0
  78. data/lib/megam_api.rb +15 -0
  79. data/megam_api.gemspec +6 -6
  80. data/test/test_accounts.rb +46 -9
  81. data/test/test_assemblies.rb +7 -7
  82. data/test/test_assembly.rb +4 -4
  83. data/test/test_availableunits.rb +3 -4
  84. data/test/test_balances.rb +9 -10
  85. data/test/test_billedhistories.rb +4 -4
  86. data/test/test_billings.rb +1 -2
  87. data/test/test_components.rb +4 -4
  88. data/test/test_credithistories.rb +3 -4
  89. data/test/test_csars.rb +2 -1
  90. data/test/test_discounts.rb +4 -5
  91. data/test/test_domains.rb +8 -7
  92. data/test/test_invoices.rb +2 -2
  93. data/test/test_marketplaces.rb +4 -4
  94. data/test/test_organizations.rb +3 -3
  95. data/test/test_requests.rb +1 -1
  96. data/test/test_sshkeys.rb +15 -14
  97. metadata +41 -12
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d8a15e5000dc77156d71acc72cfd7e6938bdd22a
4
- data.tar.gz: fb4fcafb4e1bd33e7a0813524d1b6c80fb4fed2f
3
+ metadata.gz: 1e8a0f42ca3b125e4c15c17b28b6678fe2283f93
4
+ data.tar.gz: fa7609f6ac9427fd2ffe8d117237ebb53fc9671d
5
5
  SHA512:
6
- metadata.gz: 58ef61fcfeeef6795df7fbb9f94ba8cf884d24b6e78e03e3b0ec3663d552bb572698a2218bba9441a178109921ea42bd5a6621ead97126a562aa55cdd658204a
7
- data.tar.gz: 267663ea7f418aa31a6cad29e0d1155ea941b0f223283c0145dbf7652d624dbd3ab31d03123e1b1d2cf9f75fc9052cd2d30baeffac2ce6b8a1d06e0cc8031da3
6
+ metadata.gz: ce7978f9c336ae585c443cd7edc00085a55425727192d9844d2e785ab0992f07efdb6a107903a47c4b433fa3fb42c1d944b0e0f6a0f3154f9e6c461bf89d9a0a
7
+ data.tar.gz: 9401e01eef3c64befc83a9a14a4285361870c2afa0c9964b9afafc154be6e24b5005d2e6ca3909a62b047944a609cbad98b9714918d58d40dc6fdea5432fd92c
data/.travis.yml CHANGED
@@ -3,9 +3,9 @@ language: ruby
3
3
  notifications:
4
4
  email:
5
5
  recipients:
6
- - info@megam.io
6
+ - ranjithar@megam.io
7
7
 
8
8
  rvm:
9
- - 2.2.2
9
+ - 2.3.0
10
10
 
11
11
  script: bundle exec rake
data/lib/megam/api.rb CHANGED
@@ -1,11 +1,24 @@
1
+ # Copyright:: Copyright (c) 2013-2016 Megam Systems
2
+ # License:: Apache License, Version 2.0
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+ #
1
16
  require 'base64'
2
17
  require 'time'
3
18
  require 'excon'
4
19
  require 'uri'
5
20
  require 'zlib'
6
21
  require 'openssl'
7
- # open it up when needed. This will be needed when a new customer onboarded via pug.
8
- require 'securerandom'
9
22
 
10
23
  __LIB_DIR__ = File.expand_path(File.join(File.dirname(__FILE__), '..'))
11
24
  $LOAD_PATH.unshift(__LIB_DIR__) unless $LOAD_PATH.include?(__LIB_DIR__)
@@ -59,6 +72,7 @@ require 'megam/core/marketplace_collection'
59
72
  require 'megam/core/organizations'
60
73
  require 'megam/core/organizations_collection'
61
74
  require 'megam/core/domains'
75
+ require 'megam/core/domain_collection'
62
76
  require 'megam/core/assemblies'
63
77
  require 'megam/core/assemblies_collection'
64
78
  require 'megam/core/csar'
@@ -187,7 +201,7 @@ module Megam
187
201
  Megam::Log.debug("#{response.body}")
188
202
 
189
203
  begin
190
- unless response.headers[X_Megam_OTTAI]
204
+ unless response.headers[X_Megam_OTTAI]
191
205
  response.body = Megam::JSONCompat.from_json(response.body.chomp)
192
206
  Megam::Log.debug('RESPONSE: Ruby Object')
193
207
  else
@@ -251,7 +265,7 @@ module Megam
251
265
  data = "#{current_date}" + "\n" + "#{cmd_parms[:path]}" + "\n" + "#{body_base64}"
252
266
 
253
267
  digest = OpenSSL::Digest.new('sha1')
254
- movingFactor = data.rstrip!
268
+ movingFactor = data.rstrip!
255
269
  if !(@password.nil?)
256
270
  hash = OpenSSL::HMAC.hexdigest(digest, Base64.strict_decode64(@password), movingFactor)
257
271
  else
@@ -1,3 +1,18 @@
1
+ # Copyright:: Copyright (c) 2013-2016 Megam Systems
2
+ # License:: Apache License, Version 2.0
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+ #
1
16
  module Megam
2
17
  class API
3
18
  # GET /accounts
@@ -25,19 +40,19 @@ module Megam
25
40
  :body => @options[:body]
26
41
  )
27
42
  end
28
-
43
+
29
44
  def update_accounts(update_account)
30
45
  @options = {:path => '/accounts/update',
31
46
  :body => Megam::JSONCompat.to_json(update_account)}.merge(@options)
32
-
47
+
33
48
  request(
34
- :expects => 201,
49
+ :expects => 201,
35
50
  :method => :post,
36
51
  :body => @options[:body]
37
52
  )
38
53
  end
39
54
 
40
-
55
+
41
56
 
42
57
  end
43
58
  end
@@ -1,3 +1,18 @@
1
+ # Copyright:: Copyright (c) 2013-2016 Megam Systems
2
+ # License:: Apache License, Version 2.0
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+ #
1
16
  module Megam
2
17
  class API
3
18
  # GET /nodes
@@ -1,4 +1,18 @@
1
-
1
+ # Copyright:: Copyright (c) 2013-2016 Megam Systems
2
+ # License:: Apache License, Version 2.0
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+ #
2
16
  module Megam
3
17
  class API
4
18
  def get_one_assembly(asm_id)
@@ -1,3 +1,18 @@
1
+ # Copyright:: Copyright (c) 2013-2016 Megam Systems
2
+ # License:: Apache License, Version 2.0
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+ #
1
16
  module Megam
2
17
  class API
3
18
  def get_availableunits
@@ -1,3 +1,18 @@
1
+ # Copyright:: Copyright (c) 2013-2016 Megam Systems
2
+ # License:: Apache License, Version 2.0
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+ #
1
16
  module Megam
2
17
  class API
3
18
  def get_balances
@@ -30,7 +45,7 @@ module Megam
30
45
  :body => @options[:body]
31
46
  )
32
47
  end
33
-
48
+
34
49
  def update_balance(new_balance)
35
50
  @options = {:path => '/balances/update',
36
51
  :body => Megam::JSONCompat.to_json(new_balance)}.merge(@options)
@@ -1,3 +1,18 @@
1
+ # Copyright:: Copyright (c) 2013-2016 Megam Systems
2
+ # License:: Apache License, Version 2.0
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+ #
1
16
  module Megam
2
17
  class API
3
18
  def get_billedhistories
@@ -1,3 +1,18 @@
1
+ # Copyright:: Copyright (c) 2013-2016 Megam Systems
2
+ # License:: Apache License, Version 2.0
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+ #
1
16
  module Megam
2
17
  class API
3
18
  def get_billings
@@ -1,3 +1,18 @@
1
+ # Copyright:: Copyright (c) 2013-2016 Megam Systems
2
+ # License:: Apache License, Version 2.0
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+ #
1
16
  module Megam
2
17
  class API
3
18
  def get_components(comp_id)
@@ -1,3 +1,18 @@
1
+ # Copyright:: Copyright (c) 2013-2016 Megam Systems
2
+ # License:: Apache License, Version 2.0
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+ #
1
16
  module Megam
2
17
  class API
3
18
  def get_credithistories
@@ -1,3 +1,18 @@
1
+ # Copyright:: Copyright (c) 2013-2016 Megam Systems
2
+ # License:: Apache License, Version 2.0
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+ #
1
16
  module Megam
2
17
  class API
3
18
 
@@ -32,7 +47,7 @@ module Megam
32
47
  :body => @options[:body]
33
48
  )
34
49
  end
35
-
50
+
36
51
  def push_csar(id)
37
52
  @options = {:path => "/csars/push/#{id}",:body => ""}.merge(@options)
38
53
 
@@ -1,3 +1,18 @@
1
+ # Copyright:: Copyright (c) 2013-2016 Megam Systems
2
+ # License:: Apache License, Version 2.0
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+ #
1
16
  module Megam
2
17
  class API
3
18
  def get_discounts
@@ -1,30 +1,40 @@
1
+ # Copyright:: Copyright (c) 2013-2016 Megam Systems
2
+ # License:: Apache License, Version 2.0
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+ #
1
16
  module Megam
2
17
  class API
3
18
 
4
- def get_domains(name)
5
19
 
6
- @options = {:path => "/domains/#{name}",
7
- :body => ''}.merge(@options)
8
-
9
- request(
10
- :expects => 200,
11
- :method => :get,
12
- :body => @options[:body]
13
- )
14
- end
20
+ def get_domains
21
+ @options = {:path => "/domains", :body => ''}.merge(@options)
22
+ request(
23
+ :expects => 200,
24
+ :method => :get,
25
+ :body => @options[:body]
26
+ )
27
+ end
15
28
 
16
29
 
17
- def post_domains(new_domain)
18
-
30
+ def post_domains(new_domain)
19
31
  @options = {:path => '/domains/content',
20
- :body => Megam::JSONCompat.to_json(new_domain)}.merge(@options)
21
-
22
-
23
- request(
24
- :expects => 201,
25
- :method => :post,
26
- :body => @options[:body]
27
- )
28
- end
29
- end
32
+ :body => Megam::JSONCompat.to_json(new_domain)}.merge(@options)
33
+ request(
34
+ :expects => 201,
35
+ :method => :post,
36
+ :body => @options[:body]
37
+ )
38
+ end
39
+ end
30
40
  end
@@ -1,3 +1,18 @@
1
+ # Copyright:: Copyright (c) 2013-2016 Megam Systems
2
+ # License:: Apache License, Version 2.0
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+ #
1
16
  module Megam
2
17
  class API
3
18
  module Errors
@@ -1,3 +1,18 @@
1
+ # Copyright:: Copyright (c) 2013-2016 Megam Systems
2
+ # License:: Apache License, Version 2.0
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+ #
1
16
  module Megam
2
17
  class API
3
18
  def get_invoices
@@ -1,3 +1,18 @@
1
+ # Copyright:: Copyright (c) 2013-2016 Megam Systems
2
+ # License:: Apache License, Version 2.0
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+ #
1
16
  module Megam
2
17
  class API
3
18
  def post_auth