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.
- checksums.yaml +4 -4
- data/docs/_schemas.md +12 -5
- data/docs/accessTokens.md +1 -1
- data/docs/dashboard.md +1 -1
- data/docs/device.md +74 -0
- data/docs/me.md +3 -3
- data/lib/losant_rest/access_token.rb +6 -0
- data/lib/losant_rest/access_tokens.rb +4 -0
- data/lib/losant_rest/application.rb +6 -0
- data/lib/losant_rest/application_key.rb +6 -0
- data/lib/losant_rest/application_keys.rb +4 -0
- data/lib/losant_rest/applications.rb +4 -0
- data/lib/losant_rest/auth.rb +6 -0
- data/lib/losant_rest/client.rb +2 -2
- data/lib/losant_rest/dashboard.rb +6 -0
- data/lib/losant_rest/dashboards.rb +4 -0
- data/lib/losant_rest/data.rb +4 -0
- data/lib/losant_rest/device.rb +104 -0
- data/lib/losant_rest/device_recipe.rb +8 -0
- data/lib/losant_rest/device_recipes.rb +4 -0
- data/lib/losant_rest/devices.rb +6 -0
- data/lib/losant_rest/event.rb +6 -0
- data/lib/losant_rest/events.rb +8 -0
- data/lib/losant_rest/flow.rb +14 -0
- data/lib/losant_rest/flows.rb +4 -0
- data/lib/losant_rest/me.rb +20 -0
- data/lib/losant_rest/org.rb +16 -0
- data/lib/losant_rest/orgs.rb +4 -0
- data/lib/losant_rest/version.rb +1 -1
- data/lib/losant_rest/webhook.rb +6 -0
- data/lib/losant_rest/webhooks.rb +4 -0
- data/schemas/deviceState.json +1 -0
- data/schemas/deviceStates.json +1 -0
- data/schemas/virtualButtonPress.json +2 -1
- data/schemas/webhook.json +2 -1
- data/schemas/webhookPatch.json +2 -1
- data/schemas/webhookPost.json +2 -1
- data/schemas/webhooks.json +2 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1a8febd9df2e048e29e135b1db4c17e2132a6485
|
4
|
+
data.tar.gz: 78e7a33f4159244aedd42ea3b6c0defd5d4c078b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 63b50ed6cd120c8abfa915b45b074574f778d214a7c7461a5e48a14b61a40e0686ad6c0c1b640b7e034f90ec40e33ccc5138a35955aad5ca15273db17a89e2ac
|
7
|
+
data.tar.gz: 4ddf7b70d5ae181504c00cd5bc0febaa458951d3fb98d2a9a65ab2fd37833c6e50a955f0675ae8fef76ba9aab20c7491c9b08cdf905743d011f1864e02df6fe3
|
data/docs/_schemas.md
CHANGED
@@ -2874,6 +2874,7 @@ Schema for a single Device state
|
|
2874
2874
|
"relayId": {
|
2875
2875
|
"type": "string"
|
2876
2876
|
},
|
2877
|
+
"meta": {},
|
2877
2878
|
"data": {
|
2878
2879
|
"type": "object",
|
2879
2880
|
"patternProperties": {
|
@@ -2929,6 +2930,7 @@ Schema for an array of Device states
|
|
2929
2930
|
"relayId": {
|
2930
2931
|
"type": "string"
|
2931
2932
|
},
|
2933
|
+
"meta": {},
|
2932
2934
|
"data": {
|
2933
2935
|
"type": "object",
|
2934
2936
|
"patternProperties": {
|
@@ -6039,7 +6041,8 @@ Schema for the body of a request to press a Workflow virtual button
|
|
6039
6041
|
"key": {
|
6040
6042
|
"type": "string"
|
6041
6043
|
},
|
6042
|
-
"payload": {}
|
6044
|
+
"payload": {},
|
6045
|
+
"meta": {}
|
6043
6046
|
},
|
6044
6047
|
"required": [
|
6045
6048
|
"key"
|
@@ -6110,7 +6113,8 @@ Schema for a single Webhook
|
|
6110
6113
|
"enum": [
|
6111
6114
|
"facebook",
|
6112
6115
|
"fitbit",
|
6113
|
-
"none"
|
6116
|
+
"none",
|
6117
|
+
"twilio"
|
6114
6118
|
]
|
6115
6119
|
},
|
6116
6120
|
"verificationCode": {
|
@@ -6163,7 +6167,8 @@ Schema for the body of a Webhook modification request
|
|
6163
6167
|
"enum": [
|
6164
6168
|
"facebook",
|
6165
6169
|
"fitbit",
|
6166
|
-
"none"
|
6170
|
+
"none",
|
6171
|
+
"twilio"
|
6167
6172
|
]
|
6168
6173
|
},
|
6169
6174
|
"verificationCode": {
|
@@ -6211,7 +6216,8 @@ Schema for the body of a Webhook creation request
|
|
6211
6216
|
"enum": [
|
6212
6217
|
"facebook",
|
6213
6218
|
"fitbit",
|
6214
|
-
"none"
|
6219
|
+
"none",
|
6220
|
+
"twilio"
|
6215
6221
|
]
|
6216
6222
|
},
|
6217
6223
|
"verificationCode": {
|
@@ -6292,7 +6298,8 @@ Schema for a collection of Webhooks
|
|
6292
6298
|
"enum": [
|
6293
6299
|
"facebook",
|
6294
6300
|
"fitbit",
|
6295
|
-
"none"
|
6301
|
+
"none",
|
6302
|
+
"twilio"
|
6296
6303
|
]
|
6297
6304
|
},
|
6298
6305
|
"verificationCode": {
|
data/docs/accessTokens.md
CHANGED
data/docs/dashboard.md
CHANGED
@@ -58,7 +58,7 @@ puts result
|
|
58
58
|
| Name | Type | Required | Description | Default | Example |
|
59
59
|
| ---- | ---- | -------- | ----------- | ------- | ------- |
|
60
60
|
| dashboardId | string | Y | ID of the associated dashboard | | 575ece2b7ae143cd83dc4a9b |
|
61
|
-
| password | string | N | Password for password-protected dashboards | |
|
61
|
+
| password | string | N | Password for password-protected dashboards | | myPassword |
|
62
62
|
|
63
63
|
#### Successful Responses
|
64
64
|
|
data/docs/device.md
CHANGED
@@ -7,11 +7,13 @@ parameters and the potential responses.
|
|
7
7
|
##### Contents
|
8
8
|
|
9
9
|
* [Delete](#delete)
|
10
|
+
* [Export](#export)
|
10
11
|
* [Get](#get)
|
11
12
|
* [Get Command](#get-command)
|
12
13
|
* [Get Log Entries](#get-log-entries)
|
13
14
|
* [Get State](#get-state)
|
14
15
|
* [Patch](#patch)
|
16
|
+
* [Remove Data](#remove-data)
|
15
17
|
* [Send Command](#send-command)
|
16
18
|
* [Send State](#send-state)
|
17
19
|
|
@@ -51,6 +53,42 @@ puts result
|
|
51
53
|
|
52
54
|
<br/>
|
53
55
|
|
56
|
+
## Export
|
57
|
+
|
58
|
+
Creates a device data export (to be emailed to the requestor). Defaults to all data.
|
59
|
+
|
60
|
+
```ruby
|
61
|
+
result = client.device.export(
|
62
|
+
applicationId: my_application_id,
|
63
|
+
deviceId: my_device_id)
|
64
|
+
|
65
|
+
puts result
|
66
|
+
```
|
67
|
+
|
68
|
+
#### Available Parameters
|
69
|
+
|
70
|
+
| Name | Type | Required | Description | Default | Example |
|
71
|
+
| ---- | ---- | -------- | ----------- | ------- | ------- |
|
72
|
+
| applicationId | string | Y | ID associated with the application | | 575ec8687ae143cd83dc4a97 |
|
73
|
+
| deviceId | string | Y | ID associated with the device | | 575ecf887ae143cd83dc4aa2 |
|
74
|
+
| start | string | N | Start time of export (ms since epoch - 0 means now, negative is relative to now) | 1 | 1465790400000 |
|
75
|
+
| end | string | N | End time of export (ms since epoch - 0 means now, negative is relative to now) | 0 | 1465790400000 |
|
76
|
+
|
77
|
+
#### Successful Responses
|
78
|
+
|
79
|
+
| Code | Type | Description |
|
80
|
+
| ---- | ---- | ----------- |
|
81
|
+
| 200 | [Success](_schemas.md#success) | If generation of export was successfully started |
|
82
|
+
|
83
|
+
#### Error Responses
|
84
|
+
|
85
|
+
| Code | Type | Description |
|
86
|
+
| ---- | ---- | ----------- |
|
87
|
+
| 400 | [Error](_schemas.md#error) | Error if malformed request |
|
88
|
+
| 404 | [Error](_schemas.md#error) | Error if device was not found |
|
89
|
+
|
90
|
+
<br/>
|
91
|
+
|
54
92
|
## Get
|
55
93
|
|
56
94
|
Retrieves information on a device
|
@@ -229,6 +267,42 @@ puts result
|
|
229
267
|
|
230
268
|
<br/>
|
231
269
|
|
270
|
+
## Remove Data
|
271
|
+
|
272
|
+
Removes all device data for the specified time range. Defaults to all data.
|
273
|
+
|
274
|
+
```ruby
|
275
|
+
result = client.device.remove_data(
|
276
|
+
applicationId: my_application_id,
|
277
|
+
deviceId: my_device_id)
|
278
|
+
|
279
|
+
puts result
|
280
|
+
```
|
281
|
+
|
282
|
+
#### Available Parameters
|
283
|
+
|
284
|
+
| Name | Type | Required | Description | Default | Example |
|
285
|
+
| ---- | ---- | -------- | ----------- | ------- | ------- |
|
286
|
+
| applicationId | string | Y | ID associated with the application | | 575ec8687ae143cd83dc4a97 |
|
287
|
+
| deviceId | string | Y | ID associated with the device | | 575ecf887ae143cd83dc4aa2 |
|
288
|
+
| start | string | N | Start time of export (ms since epoch - 0 means now, negative is relative to now) | 1 | 1465790400000 |
|
289
|
+
| end | string | N | End time of export (ms since epoch - 0 means now, negative is relative to now) | 0 | 1465790400000 |
|
290
|
+
|
291
|
+
#### Successful Responses
|
292
|
+
|
293
|
+
| Code | Type | Description |
|
294
|
+
| ---- | ---- | ----------- |
|
295
|
+
| 200 | [Success](_schemas.md#success) | If data removal was successfully started |
|
296
|
+
|
297
|
+
#### Error Responses
|
298
|
+
|
299
|
+
| Code | Type | Description |
|
300
|
+
| ---- | ---- | ----------- |
|
301
|
+
| 400 | [Error](_schemas.md#error) | Error if malformed request |
|
302
|
+
| 404 | [Error](_schemas.md#error) | Error if device was not found |
|
303
|
+
|
304
|
+
<br/>
|
305
|
+
|
232
306
|
## Send Command
|
233
307
|
|
234
308
|
Send a command to a device
|
data/docs/me.md
CHANGED
@@ -114,7 +114,7 @@ puts result
|
|
114
114
|
Disconnects the user from Github
|
115
115
|
|
116
116
|
```ruby
|
117
|
-
result = client.me.disconnect_github
|
117
|
+
result = client.me.disconnect_github(optional_params)
|
118
118
|
|
119
119
|
puts result
|
120
120
|
```
|
@@ -142,7 +142,7 @@ No parameters needed for this call.
|
|
142
142
|
Disconnects the user from Twitter
|
143
143
|
|
144
144
|
```ruby
|
145
|
-
result = client.me.disconnect_twitter
|
145
|
+
result = client.me.disconnect_twitter(optional_params)
|
146
146
|
|
147
147
|
puts result
|
148
148
|
```
|
@@ -290,7 +290,7 @@ puts result
|
|
290
290
|
Sends an email verification to the user
|
291
291
|
|
292
292
|
```ruby
|
293
|
-
result = client.me.verify_email
|
293
|
+
result = client.me.verify_email(optional_params)
|
294
294
|
|
295
295
|
puts result
|
296
296
|
```
|
@@ -11,6 +11,7 @@ module LosantRest
|
|
11
11
|
#
|
12
12
|
# Parameters:
|
13
13
|
# * {string} accessTokenId - ID associated with the accessToken
|
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("accessTokenId is required") unless params.has_key?(:accessTokenId)
|
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} accessTokenId - ID associated with the accessToken
|
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("accessTokenId is required") unless params.has_key?(:accessTokenId)
|
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} accessTokenId - ID associated with the accessToken
|
86
90
|
# * {hash} accessToken - Object containing new properties of the accessToken (https://api.losant.com/#/definitions/accessTokenPatch)
|
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("accessToken is required") unless params.has_key?(:accessToken)
|
105
110
|
|
106
111
|
body = params[:accessToken] if params.has_key?(:accessToken)
|
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)
|
@@ -10,6 +10,7 @@ module LosantRest
|
|
10
10
|
# Returns the accessTokens for a user
|
11
11
|
#
|
12
12
|
# Parameters:
|
13
|
+
# * {string} losantdomain - Domain scope of request (rarely needed)
|
13
14
|
# * {boolean} _actions - Return resource actions in response
|
14
15
|
# * {boolean} _links - Return resource link in response
|
15
16
|
# * {boolean} _embedded - Return embedded resources in response
|
@@ -26,6 +27,7 @@ module LosantRest
|
|
26
27
|
body = nil
|
27
28
|
|
28
29
|
|
30
|
+
headers[:losantdomain] = params[:losantdomain] if params.has_key?(:losantdomain)
|
29
31
|
query_params[:_actions] = params[:_actions] if params.has_key?(:_actions)
|
30
32
|
query_params[:_links] = params[:_links] if params.has_key?(:_links)
|
31
33
|
query_params[:_embedded] = params[:_embedded] if params.has_key?(:_embedded)
|
@@ -44,6 +46,7 @@ module LosantRest
|
|
44
46
|
#
|
45
47
|
# Parameters:
|
46
48
|
# * {hash} accessToken - AccessToken information (https://api.losant.com/#/definitions/accessTokenPost)
|
49
|
+
# * {string} losantdomain - Domain scope of request (rarely needed)
|
47
50
|
# * {boolean} _actions - Return resource actions in response
|
48
51
|
# * {boolean} _links - Return resource link in response
|
49
52
|
# * {boolean} _embedded - Return embedded resources in response
|
@@ -62,6 +65,7 @@ module LosantRest
|
|
62
65
|
raise ArgumentError.new("accessToken is required") unless params.has_key?(:accessToken)
|
63
66
|
|
64
67
|
body = params[:accessToken] if params.has_key?(:accessToken)
|
68
|
+
headers[:losantdomain] = params[:losantdomain] if params.has_key?(:losantdomain)
|
65
69
|
query_params[:_actions] = params[:_actions] if params.has_key?(:_actions)
|
66
70
|
query_params[:_links] = params[:_links] if params.has_key?(:_links)
|
67
71
|
query_params[:_embedded] = params[:_embedded] if params.has_key?(:_embedded)
|
@@ -11,6 +11,7 @@ module LosantRest
|
|
11
11
|
#
|
12
12
|
# Parameters:
|
13
13
|
# * {string} applicationId - ID of the associated application
|
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("applicationId is required") unless params.has_key?(:applicationId)
|
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} applicationId - ID of the associated application
|
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("applicationId is required") unless params.has_key?(:applicationId)
|
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} applicationId - ID of the associated application
|
86
90
|
# * {hash} application - Object containing new application properties (https://api.losant.com/#/definitions/applicationPatch)
|
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("application is required") unless params.has_key?(:application)
|
105
110
|
|
106
111
|
body = params[:application] if params.has_key?(:application)
|
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)
|
@@ -12,6 +12,7 @@ module LosantRest
|
|
12
12
|
# Parameters:
|
13
13
|
# * {string} applicationId - ID associated with the application
|
14
14
|
# * {string} applicationKeyId - ID associated with the applicationKey
|
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("applicationKeyId is required") unless params.has_key?(:applicationKeyId)
|
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} applicationKeyId - ID associated with the applicationKey
|
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("applicationKeyId is required") unless params.has_key?(:applicationKeyId)
|
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} applicationKeyId - ID associated with the applicationKey
|
91
95
|
# * {hash} applicationKey - Object containing new properties of the applicationKey (https://api.losant.com/#/definitions/applicationKeyPatch)
|
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("applicationKey is required") unless params.has_key?(:applicationKey)
|
111
116
|
|
112
117
|
body = params[:applicationKey] if params.has_key?(:applicationKey)
|
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: key, status
|
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} applicationKey - ApplicationKey information (https://api.losant.com/#/definitions/applicationKeyPost)
|
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("applicationKey is required") unless params.has_key?(:applicationKey)
|
81
84
|
|
82
85
|
body = params[:applicationKey] if params.has_key?(:applicationKey)
|
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)
|
@@ -17,6 +17,7 @@ module LosantRest
|
|
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
19
|
# * {string} orgId - If not provided, return all applications. If provided but blank, only return applications belonging to the current user. If provided and an id, only return applications belonging to the given organization id.
|
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
|
@@ -40,6 +41,7 @@ module LosantRest
|
|
40
41
|
query_params[:filterField] = params[:filterField] if params.has_key?(:filterField)
|
41
42
|
query_params[:filter] = params[:filter] if params.has_key?(:filter)
|
42
43
|
query_params[:orgId] = params[:orgId] if params.has_key?(:orgId)
|
44
|
+
headers[:losantdomain] = params[:losantdomain] if params.has_key?(:losantdomain)
|
43
45
|
query_params[:_actions] = params[:_actions] if params.has_key?(:_actions)
|
44
46
|
query_params[:_links] = params[:_links] if params.has_key?(:_links)
|
45
47
|
query_params[:_embedded] = params[:_embedded] if params.has_key?(:_embedded)
|
@@ -58,6 +60,7 @@ module LosantRest
|
|
58
60
|
#
|
59
61
|
# Parameters:
|
60
62
|
# * {hash} application - New application information (https://api.losant.com/#/definitions/applicationPost)
|
63
|
+
# * {string} losantdomain - Domain scope of request (rarely needed)
|
61
64
|
# * {boolean} _actions - Return resource actions in response
|
62
65
|
# * {boolean} _links - Return resource link in response
|
63
66
|
# * {boolean} _embedded - Return embedded resources in response
|
@@ -76,6 +79,7 @@ module LosantRest
|
|
76
79
|
raise ArgumentError.new("application is required") unless params.has_key?(:application)
|
77
80
|
|
78
81
|
body = params[:application] if params.has_key?(:application)
|
82
|
+
headers[:losantdomain] = params[:losantdomain] if params.has_key?(:losantdomain)
|
79
83
|
query_params[:_actions] = params[:_actions] if params.has_key?(:_actions)
|
80
84
|
query_params[:_links] = params[:_links] if params.has_key?(:_links)
|
81
85
|
query_params[:_embedded] = params[:_embedded] if params.has_key?(:_embedded)
|