losant_rest 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -11,6 +11,7 @@ module LosantRest
11
11
  #
12
12
  # Parameters:
13
13
  # * {string} orgId - ID associated with the organization
14
+ # * {string} losantdomain - Domain scope of request (rarely needed)
14
15
  # * {boolean} _actions - Return resource actions in response
15
16
  # * {boolean} _links - Return resource link in response
16
17
  # * {boolean} _embedded - Return embedded resources in response
@@ -29,6 +30,7 @@ module LosantRest
29
30
 
30
31
  raise ArgumentError.new("orgId is required") unless params.has_key?(:orgId)
31
32
 
33
+ headers[:losantdomain] = params[:losantdomain] if params.has_key?(:losantdomain)
32
34
  query_params[:_actions] = params[:_actions] if params.has_key?(:_actions)
33
35
  query_params[:_links] = params[:_links] if params.has_key?(:_links)
34
36
  query_params[:_embedded] = params[:_embedded] if params.has_key?(:_embedded)
@@ -47,6 +49,7 @@ module LosantRest
47
49
  #
48
50
  # Parameters:
49
51
  # * {string} orgId - ID associated with the organization
52
+ # * {string} losantdomain - Domain scope of request (rarely needed)
50
53
  # * {boolean} _actions - Return resource actions in response
51
54
  # * {boolean} _links - Return resource link in response
52
55
  # * {boolean} _embedded - Return embedded resources in response
@@ -65,6 +68,7 @@ module LosantRest
65
68
 
66
69
  raise ArgumentError.new("orgId is required") unless params.has_key?(:orgId)
67
70
 
71
+ headers[:losantdomain] = params[:losantdomain] if params.has_key?(:losantdomain)
68
72
  query_params[:_actions] = params[:_actions] if params.has_key?(:_actions)
69
73
  query_params[:_links] = params[:_links] if params.has_key?(:_links)
70
74
  query_params[:_embedded] = params[:_embedded] if params.has_key?(:_embedded)
@@ -84,6 +88,7 @@ module LosantRest
84
88
  # Parameters:
85
89
  # * {string} orgId - ID associated with the organization
86
90
  # * {hash} invite - Object containing new invite info (https://api.losant.com/#/definitions/orgInvitePost)
91
+ # * {string} losantdomain - Domain scope of request (rarely needed)
87
92
  # * {boolean} _actions - Return resource actions in response
88
93
  # * {boolean} _links - Return resource link in response
89
94
  # * {boolean} _embedded - Return embedded resources in response
@@ -104,6 +109,7 @@ module LosantRest
104
109
  raise ArgumentError.new("invite is required") unless params.has_key?(:invite)
105
110
 
106
111
  body = params[:invite] if params.has_key?(:invite)
112
+ headers[:losantdomain] = params[:losantdomain] if params.has_key?(:losantdomain)
107
113
  query_params[:_actions] = params[:_actions] if params.has_key?(:_actions)
108
114
  query_params[:_links] = params[:_links] if params.has_key?(:_links)
109
115
  query_params[:_embedded] = params[:_embedded] if params.has_key?(:_embedded)
@@ -123,6 +129,7 @@ module LosantRest
123
129
  # Parameters:
124
130
  # * {string} orgId - ID associated with the organization
125
131
  # * {hash} member - Object containing new member pair (https://api.losant.com/#/definitions/orgMemberPatch)
132
+ # * {string} losantdomain - Domain scope of request (rarely needed)
126
133
  # * {boolean} _actions - Return resource actions in response
127
134
  # * {boolean} _links - Return resource link in response
128
135
  # * {boolean} _embedded - Return embedded resources in response
@@ -143,6 +150,7 @@ module LosantRest
143
150
  raise ArgumentError.new("member is required") unless params.has_key?(:member)
144
151
 
145
152
  body = params[:member] if params.has_key?(:member)
153
+ headers[:losantdomain] = params[:losantdomain] if params.has_key?(:losantdomain)
146
154
  query_params[:_actions] = params[:_actions] if params.has_key?(:_actions)
147
155
  query_params[:_links] = params[:_links] if params.has_key?(:_links)
148
156
  query_params[:_embedded] = params[:_embedded] if params.has_key?(:_embedded)
@@ -162,6 +170,7 @@ module LosantRest
162
170
  # Parameters:
163
171
  # * {string} orgId - ID associated with the organization
164
172
  # * {hash} organization - Object containing new organization properties (https://api.losant.com/#/definitions/orgPatch)
173
+ # * {string} losantdomain - Domain scope of request (rarely needed)
165
174
  # * {boolean} _actions - Return resource actions in response
166
175
  # * {boolean} _links - Return resource link in response
167
176
  # * {boolean} _embedded - Return embedded resources in response
@@ -182,6 +191,7 @@ module LosantRest
182
191
  raise ArgumentError.new("organization is required") unless params.has_key?(:organization)
183
192
 
184
193
  body = params[:organization] if params.has_key?(:organization)
194
+ headers[:losantdomain] = params[:losantdomain] if params.has_key?(:losantdomain)
185
195
  query_params[:_actions] = params[:_actions] if params.has_key?(:_actions)
186
196
  query_params[:_links] = params[:_links] if params.has_key?(:_links)
187
197
  query_params[:_embedded] = params[:_embedded] if params.has_key?(:_embedded)
@@ -200,6 +210,7 @@ module LosantRest
200
210
  #
201
211
  # Parameters:
202
212
  # * {string} orgId - ID associated with the organization
213
+ # * {string} losantdomain - Domain scope of request (rarely needed)
203
214
  # * {boolean} _actions - Return resource actions in response
204
215
  # * {boolean} _links - Return resource link in response
205
216
  # * {boolean} _embedded - Return embedded resources in response
@@ -218,6 +229,7 @@ module LosantRest
218
229
 
219
230
  raise ArgumentError.new("orgId is required") unless params.has_key?(:orgId)
220
231
 
232
+ headers[:losantdomain] = params[:losantdomain] if params.has_key?(:losantdomain)
221
233
  query_params[:_actions] = params[:_actions] if params.has_key?(:_actions)
222
234
  query_params[:_links] = params[:_links] if params.has_key?(:_links)
223
235
  query_params[:_embedded] = params[:_embedded] if params.has_key?(:_embedded)
@@ -237,6 +249,7 @@ module LosantRest
237
249
  # Parameters:
238
250
  # * {string} orgId - ID associated with the organization
239
251
  # * {string} userId - Id of user to remove
252
+ # * {string} losantdomain - Domain scope of request (rarely needed)
240
253
  # * {boolean} _actions - Return resource actions in response
241
254
  # * {boolean} _links - Return resource link in response
242
255
  # * {boolean} _embedded - Return embedded resources in response
@@ -257,6 +270,7 @@ module LosantRest
257
270
  raise ArgumentError.new("userId is required") unless params.has_key?(:userId)
258
271
 
259
272
  query_params[:userId] = params[:userId] if params.has_key?(:userId)
273
+ headers[:losantdomain] = params[:losantdomain] if params.has_key?(:losantdomain)
260
274
  query_params[:_actions] = params[:_actions] if params.has_key?(:_actions)
261
275
  query_params[:_links] = params[:_links] if params.has_key?(:_links)
262
276
  query_params[:_embedded] = params[:_embedded] if params.has_key?(:_embedded)
@@ -276,6 +290,7 @@ module LosantRest
276
290
  # Parameters:
277
291
  # * {string} orgId - ID associated with the organization
278
292
  # * {string} inviteId - Id of invite to revoke
293
+ # * {string} losantdomain - Domain scope of request (rarely needed)
279
294
  # * {boolean} _actions - Return resource actions in response
280
295
  # * {boolean} _links - Return resource link in response
281
296
  # * {boolean} _embedded - Return embedded resources in response
@@ -296,6 +311,7 @@ module LosantRest
296
311
  raise ArgumentError.new("inviteId is required") unless params.has_key?(:inviteId)
297
312
 
298
313
  query_params[:inviteId] = params[:inviteId] if params.has_key?(:inviteId)
314
+ headers[:losantdomain] = params[:losantdomain] if params.has_key?(:losantdomain)
299
315
  query_params[:_actions] = params[:_actions] if params.has_key?(:_actions)
300
316
  query_params[:_links] = params[:_links] if params.has_key?(:_links)
301
317
  query_params[:_embedded] = params[:_embedded] if params.has_key?(:_embedded)
@@ -16,6 +16,7 @@ module LosantRest
16
16
  # * {string} perPage - How many items to return per page
17
17
  # * {string} filterField - Field to filter the results by. Blank or not provided means no filtering. Accepted values are: name
18
18
  # * {string} filter - Filter to apply against the filtered field. Supports globbing. Blank or not provided means no filtering.
19
+ # * {string} losantdomain - Domain scope of request (rarely needed)
19
20
  # * {boolean} _actions - Return resource actions in response
20
21
  # * {boolean} _links - Return resource link in response
21
22
  # * {boolean} _embedded - Return embedded resources in response
@@ -38,6 +39,7 @@ module LosantRest
38
39
  query_params[:perPage] = params[:perPage] if params.has_key?(:perPage)
39
40
  query_params[:filterField] = params[:filterField] if params.has_key?(:filterField)
40
41
  query_params[:filter] = params[:filter] if params.has_key?(:filter)
42
+ headers[:losantdomain] = params[:losantdomain] if params.has_key?(:losantdomain)
41
43
  query_params[:_actions] = params[:_actions] if params.has_key?(:_actions)
42
44
  query_params[:_links] = params[:_links] if params.has_key?(:_links)
43
45
  query_params[:_embedded] = params[:_embedded] if params.has_key?(:_embedded)
@@ -56,6 +58,7 @@ module LosantRest
56
58
  #
57
59
  # Parameters:
58
60
  # * {hash} organization - New organization information (https://api.losant.com/#/definitions/orgPost)
61
+ # * {string} losantdomain - Domain scope of request (rarely needed)
59
62
  # * {boolean} _actions - Return resource actions in response
60
63
  # * {boolean} _links - Return resource link in response
61
64
  # * {boolean} _embedded - Return embedded resources in response
@@ -74,6 +77,7 @@ module LosantRest
74
77
  raise ArgumentError.new("organization is required") unless params.has_key?(:organization)
75
78
 
76
79
  body = params[:organization] if params.has_key?(:organization)
80
+ headers[:losantdomain] = params[:losantdomain] if params.has_key?(:losantdomain)
77
81
  query_params[:_actions] = params[:_actions] if params.has_key?(:_actions)
78
82
  query_params[:_links] = params[:_links] if params.has_key?(:_links)
79
83
  query_params[:_embedded] = params[:_embedded] if params.has_key?(:_embedded)
@@ -1,3 +1,3 @@
1
1
  module LosantRest
2
- VERSION = "1.0.1"
2
+ VERSION = "1.0.2"
3
3
  end
@@ -12,6 +12,7 @@ module LosantRest
12
12
  # Parameters:
13
13
  # * {string} applicationId - ID associated with the application
14
14
  # * {string} webhookId - ID associated with the webhook
15
+ # * {string} losantdomain - Domain scope of request (rarely needed)
15
16
  # * {boolean} _actions - Return resource actions in response
16
17
  # * {boolean} _links - Return resource link in response
17
18
  # * {boolean} _embedded - Return embedded resources in response
@@ -31,6 +32,7 @@ module LosantRest
31
32
  raise ArgumentError.new("applicationId is required") unless params.has_key?(:applicationId)
32
33
  raise ArgumentError.new("webhookId is required") unless params.has_key?(:webhookId)
33
34
 
35
+ headers[:losantdomain] = params[:losantdomain] if params.has_key?(:losantdomain)
34
36
  query_params[:_actions] = params[:_actions] if params.has_key?(:_actions)
35
37
  query_params[:_links] = params[:_links] if params.has_key?(:_links)
36
38
  query_params[:_embedded] = params[:_embedded] if params.has_key?(:_embedded)
@@ -50,6 +52,7 @@ module LosantRest
50
52
  # Parameters:
51
53
  # * {string} applicationId - ID associated with the application
52
54
  # * {string} webhookId - ID associated with the webhook
55
+ # * {string} losantdomain - Domain scope of request (rarely needed)
53
56
  # * {boolean} _actions - Return resource actions in response
54
57
  # * {boolean} _links - Return resource link in response
55
58
  # * {boolean} _embedded - Return embedded resources in response
@@ -69,6 +72,7 @@ module LosantRest
69
72
  raise ArgumentError.new("applicationId is required") unless params.has_key?(:applicationId)
70
73
  raise ArgumentError.new("webhookId is required") unless params.has_key?(:webhookId)
71
74
 
75
+ headers[:losantdomain] = params[:losantdomain] if params.has_key?(:losantdomain)
72
76
  query_params[:_actions] = params[:_actions] if params.has_key?(:_actions)
73
77
  query_params[:_links] = params[:_links] if params.has_key?(:_links)
74
78
  query_params[:_embedded] = params[:_embedded] if params.has_key?(:_embedded)
@@ -89,6 +93,7 @@ module LosantRest
89
93
  # * {string} applicationId - ID associated with the application
90
94
  # * {string} webhookId - ID associated with the webhook
91
95
  # * {hash} webhook - Object containing new properties of the webhook (https://api.losant.com/#/definitions/webhookPatch)
96
+ # * {string} losantdomain - Domain scope of request (rarely needed)
92
97
  # * {boolean} _actions - Return resource actions in response
93
98
  # * {boolean} _links - Return resource link in response
94
99
  # * {boolean} _embedded - Return embedded resources in response
@@ -110,6 +115,7 @@ module LosantRest
110
115
  raise ArgumentError.new("webhook is required") unless params.has_key?(:webhook)
111
116
 
112
117
  body = params[:webhook] if params.has_key?(:webhook)
118
+ headers[:losantdomain] = params[:losantdomain] if params.has_key?(:losantdomain)
113
119
  query_params[:_actions] = params[:_actions] if params.has_key?(:_actions)
114
120
  query_params[:_links] = params[:_links] if params.has_key?(:_links)
115
121
  query_params[:_embedded] = params[:_embedded] if params.has_key?(:_embedded)
@@ -17,6 +17,7 @@ module LosantRest
17
17
  # * {string} perPage - How many items to return per page
18
18
  # * {string} filterField - Field to filter the results by. Blank or not provided means no filtering. Accepted values are: name
19
19
  # * {string} filter - Filter to apply against the filtered field. Supports globbing. Blank or not provided means no filtering.
20
+ # * {string} losantdomain - Domain scope of request (rarely needed)
20
21
  # * {boolean} _actions - Return resource actions in response
21
22
  # * {boolean} _links - Return resource link in response
22
23
  # * {boolean} _embedded - Return embedded resources in response
@@ -41,6 +42,7 @@ module LosantRest
41
42
  query_params[:perPage] = params[:perPage] if params.has_key?(:perPage)
42
43
  query_params[:filterField] = params[:filterField] if params.has_key?(:filterField)
43
44
  query_params[:filter] = params[:filter] if params.has_key?(:filter)
45
+ headers[:losantdomain] = params[:losantdomain] if params.has_key?(:losantdomain)
44
46
  query_params[:_actions] = params[:_actions] if params.has_key?(:_actions)
45
47
  query_params[:_links] = params[:_links] if params.has_key?(:_links)
46
48
  query_params[:_embedded] = params[:_embedded] if params.has_key?(:_embedded)
@@ -60,6 +62,7 @@ module LosantRest
60
62
  # Parameters:
61
63
  # * {string} applicationId - ID associated with the application
62
64
  # * {hash} webhook - New webhook information (https://api.losant.com/#/definitions/webhookPost)
65
+ # * {string} losantdomain - Domain scope of request (rarely needed)
63
66
  # * {boolean} _actions - Return resource actions in response
64
67
  # * {boolean} _links - Return resource link in response
65
68
  # * {boolean} _embedded - Return embedded resources in response
@@ -80,6 +83,7 @@ module LosantRest
80
83
  raise ArgumentError.new("webhook is required") unless params.has_key?(:webhook)
81
84
 
82
85
  body = params[:webhook] if params.has_key?(:webhook)
86
+ headers[:losantdomain] = params[:losantdomain] if params.has_key?(:losantdomain)
83
87
  query_params[:_actions] = params[:_actions] if params.has_key?(:_actions)
84
88
  query_params[:_links] = params[:_links] if params.has_key?(:_links)
85
89
  query_params[:_embedded] = params[:_embedded] if params.has_key?(:_embedded)
@@ -9,6 +9,7 @@
9
9
  "relayId": {
10
10
  "type": "string"
11
11
  },
12
+ "meta": {},
12
13
  "data": {
13
14
  "type": "object",
14
15
  "patternProperties": {
@@ -13,6 +13,7 @@
13
13
  "relayId": {
14
14
  "type": "string"
15
15
  },
16
+ "meta": {},
16
17
  "data": {
17
18
  "type": "object",
18
19
  "patternProperties": {
@@ -5,7 +5,8 @@
5
5
  "key": {
6
6
  "type": "string"
7
7
  },
8
- "payload": {}
8
+ "payload": {},
9
+ "meta": {}
9
10
  },
10
11
  "required": [
11
12
  "key"
@@ -41,7 +41,8 @@
41
41
  "enum": [
42
42
  "facebook",
43
43
  "fitbit",
44
- "none"
44
+ "none",
45
+ "twilio"
45
46
  ]
46
47
  },
47
48
  "verificationCode": {
@@ -17,7 +17,8 @@
17
17
  "enum": [
18
18
  "facebook",
19
19
  "fitbit",
20
- "none"
20
+ "none",
21
+ "twilio"
21
22
  ]
22
23
  },
23
24
  "verificationCode": {
@@ -17,7 +17,8 @@
17
17
  "enum": [
18
18
  "facebook",
19
19
  "fitbit",
20
- "none"
20
+ "none",
21
+ "twilio"
21
22
  ]
22
23
  },
23
24
  "verificationCode": {
@@ -48,7 +48,8 @@
48
48
  "enum": [
49
49
  "facebook",
50
50
  "fitbit",
51
- "none"
51
+ "none",
52
+ "twilio"
52
53
  ]
53
54
  },
54
55
  "verificationCode": {
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: losant_rest
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Kuehl
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-06-23 00:00:00.000000000 Z
11
+ date: 2016-07-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty