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.
@@ -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} deviceRecipe - New device recipe information (https://api.losant.com/#/definitions/deviceRecipePost)
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("deviceRecipe is required") unless params.has_key?(:deviceRecipe)
81
84
 
82
85
  body = params[:deviceRecipe] if params.has_key?(:deviceRecipe)
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)
@@ -18,6 +18,7 @@ module LosantRest
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
20
  # * {hash} tagFilter - Array of tag pairs to filter by. (https://api.losant.com/#/definitions/deviceTagFilter)
21
+ # * {string} losantdomain - Domain scope of request (rarely needed)
21
22
  # * {boolean} _actions - Return resource actions in response
22
23
  # * {boolean} _links - Return resource link in response
23
24
  # * {boolean} _embedded - Return embedded resources in response
@@ -43,6 +44,7 @@ module LosantRest
43
44
  query_params[:filterField] = params[:filterField] if params.has_key?(:filterField)
44
45
  query_params[:filter] = params[:filter] if params.has_key?(:filter)
45
46
  query_params[:tagFilter] = params[:tagFilter] if params.has_key?(:tagFilter)
47
+ headers[:losantdomain] = params[:losantdomain] if params.has_key?(:losantdomain)
46
48
  query_params[:_actions] = params[:_actions] if params.has_key?(:_actions)
47
49
  query_params[:_links] = params[:_links] if params.has_key?(:_links)
48
50
  query_params[:_embedded] = params[:_embedded] if params.has_key?(:_embedded)
@@ -62,6 +64,7 @@ module LosantRest
62
64
  # Parameters:
63
65
  # * {string} applicationId - ID associated with the application
64
66
  # * {hash} device - New device information (https://api.losant.com/#/definitions/devicePost)
67
+ # * {string} losantdomain - Domain scope of request (rarely needed)
65
68
  # * {boolean} _actions - Return resource actions in response
66
69
  # * {boolean} _links - Return resource link in response
67
70
  # * {boolean} _embedded - Return embedded resources in response
@@ -82,6 +85,7 @@ module LosantRest
82
85
  raise ArgumentError.new("device is required") unless params.has_key?(:device)
83
86
 
84
87
  body = params[:device] if params.has_key?(:device)
88
+ headers[:losantdomain] = params[:losantdomain] if params.has_key?(:losantdomain)
85
89
  query_params[:_actions] = params[:_actions] if params.has_key?(:_actions)
86
90
  query_params[:_links] = params[:_links] if params.has_key?(:_links)
87
91
  query_params[:_embedded] = params[:_embedded] if params.has_key?(:_embedded)
@@ -101,6 +105,7 @@ module LosantRest
101
105
  # Parameters:
102
106
  # * {string} applicationId - ID associated with the application
103
107
  # * {hash} multiDeviceCommand - Command to send to the device (https://api.losant.com/#/definitions/multiDeviceCommand)
108
+ # * {string} losantdomain - Domain scope of request (rarely needed)
104
109
  # * {boolean} _actions - Return resource actions in response
105
110
  # * {boolean} _links - Return resource link in response
106
111
  # * {boolean} _embedded - Return embedded resources in response
@@ -121,6 +126,7 @@ module LosantRest
121
126
  raise ArgumentError.new("multiDeviceCommand is required") unless params.has_key?(:multiDeviceCommand)
122
127
 
123
128
  body = params[:multiDeviceCommand] if params.has_key?(:multiDeviceCommand)
129
+ headers[:losantdomain] = params[:losantdomain] if params.has_key?(:losantdomain)
124
130
  query_params[:_actions] = params[:_actions] if params.has_key?(:_actions)
125
131
  query_params[:_links] = params[:_links] if params.has_key?(:_links)
126
132
  query_params[:_embedded] = params[:_embedded] if params.has_key?(:_embedded)
@@ -12,6 +12,7 @@ module LosantRest
12
12
  # Parameters:
13
13
  # * {string} applicationId - ID associated with the application
14
14
  # * {string} eventId - ID associated with the event
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("eventId is required") unless params.has_key?(:eventId)
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} eventId - ID associated with the event
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("eventId is required") unless params.has_key?(:eventId)
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} eventId - ID associated with the event
91
95
  # * {hash} event - Object containing new properties of the event (https://api.losant.com/#/definitions/eventPatch)
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("event is required") unless params.has_key?(:event)
111
116
 
112
117
  body = params[:event] if params.has_key?(:event)
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)
@@ -18,6 +18,7 @@ module LosantRest
18
18
  # * {string} filterField - Field to filter the results by. Blank or not provided means no filtering. Accepted values are: subject
19
19
  # * {string} filter - Filter to apply against the filtered field. Supports globbing. Blank or not provided means no filtering.
20
20
  # * {string} state - If provided, return events only in the given state. Accepted values are: new, acknowledged, resolved
21
+ # * {string} losantdomain - Domain scope of request (rarely needed)
21
22
  # * {boolean} _actions - Return resource actions in response
22
23
  # * {boolean} _links - Return resource link in response
23
24
  # * {boolean} _embedded - Return embedded resources in response
@@ -43,6 +44,7 @@ module LosantRest
43
44
  query_params[:filterField] = params[:filterField] if params.has_key?(:filterField)
44
45
  query_params[:filter] = params[:filter] if params.has_key?(:filter)
45
46
  query_params[:state] = params[:state] if params.has_key?(:state)
47
+ headers[:losantdomain] = params[:losantdomain] if params.has_key?(:losantdomain)
46
48
  query_params[:_actions] = params[:_actions] if params.has_key?(:_actions)
47
49
  query_params[:_links] = params[:_links] if params.has_key?(:_links)
48
50
  query_params[:_embedded] = params[:_embedded] if params.has_key?(:_embedded)
@@ -62,6 +64,7 @@ module LosantRest
62
64
  # Parameters:
63
65
  # * {string} applicationId - ID associated with the application
64
66
  # * {string} filter - Filter to apply against event subjects. Supports globbing. Blank or not provided means no filtering.
67
+ # * {string} losantdomain - Domain scope of request (rarely needed)
65
68
  # * {boolean} _actions - Return resource actions in response
66
69
  # * {boolean} _links - Return resource link in response
67
70
  # * {boolean} _embedded - Return embedded resources in response
@@ -80,6 +83,7 @@ module LosantRest
80
83
  raise ArgumentError.new("applicationId is required") unless params.has_key?(:applicationId)
81
84
 
82
85
  query_params[:filter] = params[:filter] if params.has_key?(:filter)
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)
@@ -102,6 +106,7 @@ module LosantRest
102
106
  # * {string} filter - Filter to apply against the filtered field. Supports globbing. Blank or not provided means no filtering.
103
107
  # * {string} state - If provided, act on events only in the given state. Accepted values are: new, acknowledged, resolved
104
108
  # * {hash} updates - Object containing updated information for the events (https://api.losant.com/#/definitions/eventPatch)
109
+ # * {string} losantdomain - Domain scope of request (rarely needed)
105
110
  # * {boolean} _actions - Return resource actions in response
106
111
  # * {boolean} _links - Return resource link in response
107
112
  # * {boolean} _embedded - Return embedded resources in response
@@ -125,6 +130,7 @@ module LosantRest
125
130
  query_params[:filter] = params[:filter] if params.has_key?(:filter)
126
131
  query_params[:state] = params[:state] if params.has_key?(:state)
127
132
  body = params[:updates] if params.has_key?(:updates)
133
+ headers[:losantdomain] = params[:losantdomain] if params.has_key?(:losantdomain)
128
134
  query_params[:_actions] = params[:_actions] if params.has_key?(:_actions)
129
135
  query_params[:_links] = params[:_links] if params.has_key?(:_links)
130
136
  query_params[:_embedded] = params[:_embedded] if params.has_key?(:_embedded)
@@ -144,6 +150,7 @@ module LosantRest
144
150
  # Parameters:
145
151
  # * {string} applicationId - ID associated with the application
146
152
  # * {hash} event - New event information (https://api.losant.com/#/definitions/eventPost)
153
+ # * {string} losantdomain - Domain scope of request (rarely needed)
147
154
  # * {boolean} _actions - Return resource actions in response
148
155
  # * {boolean} _links - Return resource link in response
149
156
  # * {boolean} _embedded - Return embedded resources in response
@@ -165,6 +172,7 @@ module LosantRest
165
172
  raise ArgumentError.new("event is required") unless params.has_key?(:event)
166
173
 
167
174
  body = params[:event] if params.has_key?(:event)
175
+ headers[:losantdomain] = params[:losantdomain] if params.has_key?(:losantdomain)
168
176
  query_params[:_actions] = params[:_actions] if params.has_key?(:_actions)
169
177
  query_params[:_links] = params[:_links] if params.has_key?(:_links)
170
178
  query_params[:_embedded] = params[:_embedded] if params.has_key?(:_embedded)
@@ -12,6 +12,7 @@ module LosantRest
12
12
  # Parameters:
13
13
  # * {string} applicationId - ID associated with the application
14
14
  # * {string} flowId - ID associated with the flow
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("flowId is required") unless params.has_key?(:flowId)
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} flowId - ID associated with the flow
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("flowId is required") unless params.has_key?(:flowId)
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)
@@ -90,6 +94,7 @@ module LosantRest
90
94
  # * {string} flowId - ID associated with the flow
91
95
  # * {string} limit - Max log entries to return (ordered by time descending)
92
96
  # * {string} since - Look for log entries since this time (ms since epoch)
97
+ # * {string} losantdomain - Domain scope of request (rarely needed)
93
98
  # * {boolean} _actions - Return resource actions in response
94
99
  # * {boolean} _links - Return resource link in response
95
100
  # * {boolean} _embedded - Return embedded resources in response
@@ -111,6 +116,7 @@ module LosantRest
111
116
 
112
117
  query_params[:limit] = params[:limit] if params.has_key?(:limit)
113
118
  query_params[:since] = params[:since] if params.has_key?(:since)
119
+ headers[:losantdomain] = params[:losantdomain] if params.has_key?(:losantdomain)
114
120
  query_params[:_actions] = params[:_actions] if params.has_key?(:_actions)
115
121
  query_params[:_links] = params[:_links] if params.has_key?(:_links)
116
122
  query_params[:_embedded] = params[:_embedded] if params.has_key?(:_embedded)
@@ -130,6 +136,7 @@ module LosantRest
130
136
  # Parameters:
131
137
  # * {string} applicationId - ID associated with the application
132
138
  # * {string} flowId - ID associated with the flow
139
+ # * {string} losantdomain - Domain scope of request (rarely needed)
133
140
  # * {boolean} _actions - Return resource actions in response
134
141
  # * {boolean} _links - Return resource link in response
135
142
  # * {boolean} _embedded - Return embedded resources in response
@@ -149,6 +156,7 @@ module LosantRest
149
156
  raise ArgumentError.new("applicationId is required") unless params.has_key?(:applicationId)
150
157
  raise ArgumentError.new("flowId is required") unless params.has_key?(:flowId)
151
158
 
159
+ headers[:losantdomain] = params[:losantdomain] if params.has_key?(:losantdomain)
152
160
  query_params[:_actions] = params[:_actions] if params.has_key?(:_actions)
153
161
  query_params[:_links] = params[:_links] if params.has_key?(:_links)
154
162
  query_params[:_embedded] = params[:_embedded] if params.has_key?(:_embedded)
@@ -169,6 +177,7 @@ module LosantRest
169
177
  # * {string} applicationId - ID associated with the application
170
178
  # * {string} flowId - ID associated with the flow
171
179
  # * {hash} flow - Object containing new properties of the flow (https://api.losant.com/#/definitions/flowPatch)
180
+ # * {string} losantdomain - Domain scope of request (rarely needed)
172
181
  # * {boolean} _actions - Return resource actions in response
173
182
  # * {boolean} _links - Return resource link in response
174
183
  # * {boolean} _embedded - Return embedded resources in response
@@ -190,6 +199,7 @@ module LosantRest
190
199
  raise ArgumentError.new("flow is required") unless params.has_key?(:flow)
191
200
 
192
201
  body = params[:flow] if params.has_key?(:flow)
202
+ headers[:losantdomain] = params[:losantdomain] if params.has_key?(:losantdomain)
193
203
  query_params[:_actions] = params[:_actions] if params.has_key?(:_actions)
194
204
  query_params[:_links] = params[:_links] if params.has_key?(:_links)
195
205
  query_params[:_embedded] = params[:_embedded] if params.has_key?(:_embedded)
@@ -210,6 +220,7 @@ module LosantRest
210
220
  # * {string} applicationId - ID associated with the application
211
221
  # * {string} flowId - ID associated with the flow
212
222
  # * {hash} button - Object containing button key and payload (https://api.losant.com/#/definitions/virtualButtonPress)
223
+ # * {string} losantdomain - Domain scope of request (rarely needed)
213
224
  # * {boolean} _actions - Return resource actions in response
214
225
  # * {boolean} _links - Return resource link in response
215
226
  # * {boolean} _embedded - Return embedded resources in response
@@ -231,6 +242,7 @@ module LosantRest
231
242
  raise ArgumentError.new("button is required") unless params.has_key?(:button)
232
243
 
233
244
  body = params[:button] if params.has_key?(:button)
245
+ headers[:losantdomain] = params[:losantdomain] if params.has_key?(:losantdomain)
234
246
  query_params[:_actions] = params[:_actions] if params.has_key?(:_actions)
235
247
  query_params[:_links] = params[:_links] if params.has_key?(:_links)
236
248
  query_params[:_embedded] = params[:_embedded] if params.has_key?(:_embedded)
@@ -251,6 +263,7 @@ module LosantRest
251
263
  # * {string} applicationId - ID associated with the application
252
264
  # * {string} flowId - ID associated with the flow
253
265
  # * {hash} entry - Object containing storage entry (https://api.losant.com/#/definitions/flowStorageEntry)
266
+ # * {string} losantdomain - Domain scope of request (rarely needed)
254
267
  # * {boolean} _actions - Return resource actions in response
255
268
  # * {boolean} _links - Return resource link in response
256
269
  # * {boolean} _embedded - Return embedded resources in response
@@ -272,6 +285,7 @@ module LosantRest
272
285
  raise ArgumentError.new("entry is required") unless params.has_key?(:entry)
273
286
 
274
287
  body = params[:entry] if params.has_key?(:entry)
288
+ headers[:losantdomain] = params[:losantdomain] if params.has_key?(:losantdomain)
275
289
  query_params[:_actions] = params[:_actions] if params.has_key?(:_actions)
276
290
  query_params[:_links] = params[:_links] if params.has_key?(:_links)
277
291
  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} flow - New flow information (https://api.losant.com/#/definitions/flowPost)
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("flow is required") unless params.has_key?(:flow)
81
84
 
82
85
  body = params[:flow] if params.has_key?(:flow)
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)
@@ -11,6 +11,7 @@ module LosantRest
11
11
  #
12
12
  # Parameters:
13
13
  # * {hash} data - Object containing recent item info (https://api.losant.com/#/definitions/recentItem)
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
  raise ArgumentError.new("data is required") unless params.has_key?(:data)
30
31
 
31
32
  body = params[:data] if params.has_key?(:data)
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
  # * {hash} credentials - User authentication credentials (https://api.losant.com/#/definitions/userCredentials)
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
  raise ArgumentError.new("credentials is required") unless params.has_key?(:credentials)
66
69
 
67
70
  body = params[:credentials] if params.has_key?(:credentials)
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)
@@ -83,6 +87,7 @@ module LosantRest
83
87
  #
84
88
  # Parameters:
85
89
  # * {hash} data - Object containing two factor auth properties (https://api.losant.com/#/definitions/disableTwoFactorAuth)
90
+ # * {string} losantdomain - Domain scope of request (rarely needed)
86
91
  # * {boolean} _actions - Return resource actions in response
87
92
  # * {boolean} _links - Return resource link in response
88
93
  # * {boolean} _embedded - Return embedded resources in response
@@ -101,6 +106,7 @@ module LosantRest
101
106
  raise ArgumentError.new("data is required") unless params.has_key?(:data)
102
107
 
103
108
  body = params[:data] if params.has_key?(:data)
109
+ headers[:losantdomain] = params[:losantdomain] if params.has_key?(:losantdomain)
104
110
  query_params[:_actions] = params[:_actions] if params.has_key?(:_actions)
105
111
  query_params[:_links] = params[:_links] if params.has_key?(:_links)
106
112
  query_params[:_embedded] = params[:_embedded] if params.has_key?(:_embedded)
@@ -118,6 +124,7 @@ module LosantRest
118
124
  # Disconnects the user from Github
119
125
  #
120
126
  # Parameters:
127
+ # * {string} losantdomain - Domain scope of request (rarely needed)
121
128
  # * {boolean} _actions - Return resource actions in response
122
129
  # * {boolean} _links - Return resource link in response
123
130
  # * {boolean} _embedded - Return embedded resources in response
@@ -134,6 +141,7 @@ module LosantRest
134
141
  body = nil
135
142
 
136
143
 
144
+ headers[:losantdomain] = params[:losantdomain] if params.has_key?(:losantdomain)
137
145
  query_params[:_actions] = params[:_actions] if params.has_key?(:_actions)
138
146
  query_params[:_links] = params[:_links] if params.has_key?(:_links)
139
147
  query_params[:_embedded] = params[:_embedded] if params.has_key?(:_embedded)
@@ -151,6 +159,7 @@ module LosantRest
151
159
  # Disconnects the user from Twitter
152
160
  #
153
161
  # Parameters:
162
+ # * {string} losantdomain - Domain scope of request (rarely needed)
154
163
  # * {boolean} _actions - Return resource actions in response
155
164
  # * {boolean} _links - Return resource link in response
156
165
  # * {boolean} _embedded - Return embedded resources in response
@@ -167,6 +176,7 @@ module LosantRest
167
176
  body = nil
168
177
 
169
178
 
179
+ headers[:losantdomain] = params[:losantdomain] if params.has_key?(:losantdomain)
170
180
  query_params[:_actions] = params[:_actions] if params.has_key?(:_actions)
171
181
  query_params[:_links] = params[:_links] if params.has_key?(:_links)
172
182
  query_params[:_embedded] = params[:_embedded] if params.has_key?(:_embedded)
@@ -185,6 +195,7 @@ module LosantRest
185
195
  #
186
196
  # Parameters:
187
197
  # * {hash} data - Object containing two factor auth properties (https://api.losant.com/#/definitions/enableTwoFactorAuth)
198
+ # * {string} losantdomain - Domain scope of request (rarely needed)
188
199
  # * {boolean} _actions - Return resource actions in response
189
200
  # * {boolean} _links - Return resource link in response
190
201
  # * {boolean} _embedded - Return embedded resources in response
@@ -203,6 +214,7 @@ module LosantRest
203
214
  raise ArgumentError.new("data is required") unless params.has_key?(:data)
204
215
 
205
216
  body = params[:data] if params.has_key?(:data)
217
+ headers[:losantdomain] = params[:losantdomain] if params.has_key?(:losantdomain)
206
218
  query_params[:_actions] = params[:_actions] if params.has_key?(:_actions)
207
219
  query_params[:_links] = params[:_links] if params.has_key?(:_links)
208
220
  query_params[:_embedded] = params[:_embedded] if params.has_key?(:_embedded)
@@ -222,6 +234,7 @@ module LosantRest
222
234
  # Parameters:
223
235
  # * {string} parentId - Parent id of the recent list
224
236
  # * {undefined} itemType - Item type to get the recent list of. Accepted values are: application, device, flow, dashboard
237
+ # * {string} losantdomain - Domain scope of request (rarely needed)
225
238
  # * {boolean} _actions - Return resource actions in response
226
239
  # * {boolean} _links - Return resource link in response
227
240
  # * {boolean} _embedded - Return embedded resources in response
@@ -241,6 +254,7 @@ module LosantRest
241
254
 
242
255
  query_params[:parentId] = params[:parentId] if params.has_key?(:parentId)
243
256
  query_params[:itemType] = params[:itemType] if params.has_key?(:itemType)
257
+ headers[:losantdomain] = params[:losantdomain] if params.has_key?(:losantdomain)
244
258
  query_params[:_actions] = params[:_actions] if params.has_key?(:_actions)
245
259
  query_params[:_links] = params[:_links] if params.has_key?(:_links)
246
260
  query_params[:_embedded] = params[:_embedded] if params.has_key?(:_embedded)
@@ -259,6 +273,7 @@ module LosantRest
259
273
  #
260
274
  # Parameters:
261
275
  # * {undefined} includeRecent - Should the user include recent app/dashboard info
276
+ # * {string} losantdomain - Domain scope of request (rarely needed)
262
277
  # * {boolean} _actions - Return resource actions in response
263
278
  # * {boolean} _links - Return resource link in response
264
279
  # * {boolean} _embedded - Return embedded resources in response
@@ -275,6 +290,7 @@ module LosantRest
275
290
 
276
291
 
277
292
  query_params[:includeRecent] = params[:includeRecent] if params.has_key?(:includeRecent)
293
+ headers[:losantdomain] = params[:losantdomain] if params.has_key?(:losantdomain)
278
294
  query_params[:_actions] = params[:_actions] if params.has_key?(:_actions)
279
295
  query_params[:_links] = params[:_links] if params.has_key?(:_links)
280
296
  query_params[:_embedded] = params[:_embedded] if params.has_key?(:_embedded)
@@ -293,6 +309,7 @@ module LosantRest
293
309
  #
294
310
  # Parameters:
295
311
  # * {hash} user - Object containing new user properties (https://api.losant.com/#/definitions/mePatch)
312
+ # * {string} losantdomain - Domain scope of request (rarely needed)
296
313
  # * {boolean} _actions - Return resource actions in response
297
314
  # * {boolean} _links - Return resource link in response
298
315
  # * {boolean} _embedded - Return embedded resources in response
@@ -311,6 +328,7 @@ module LosantRest
311
328
  raise ArgumentError.new("user is required") unless params.has_key?(:user)
312
329
 
313
330
  body = params[:user] if params.has_key?(:user)
331
+ headers[:losantdomain] = params[:losantdomain] if params.has_key?(:losantdomain)
314
332
  query_params[:_actions] = params[:_actions] if params.has_key?(:_actions)
315
333
  query_params[:_links] = params[:_links] if params.has_key?(:_links)
316
334
  query_params[:_embedded] = params[:_embedded] if params.has_key?(:_embedded)
@@ -328,6 +346,7 @@ module LosantRest
328
346
  # Sends an email verification to the user
329
347
  #
330
348
  # Parameters:
349
+ # * {string} losantdomain - Domain scope of request (rarely needed)
331
350
  # * {boolean} _actions - Return resource actions in response
332
351
  # * {boolean} _links - Return resource link in response
333
352
  # * {boolean} _embedded - Return embedded resources in response
@@ -344,6 +363,7 @@ module LosantRest
344
363
  body = nil
345
364
 
346
365
 
366
+ headers[:losantdomain] = params[:losantdomain] if params.has_key?(:losantdomain)
347
367
  query_params[:_actions] = params[:_actions] if params.has_key?(:_actions)
348
368
  query_params[:_links] = params[:_links] if params.has_key?(:_links)
349
369
  query_params[:_embedded] = params[:_embedded] if params.has_key?(:_embedded)