artikcloud 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/Gemfile +4 -0
- data/Gemfile.lock +65 -0
- data/LICENSE +202 -0
- data/README.md +230 -0
- data/artikcloud.gemspec +32 -0
- data/docs/AckEnvelope.md +8 -0
- data/docs/Acknowledgement.md +11 -0
- data/docs/ActionDetails.md +9 -0
- data/docs/ActionDetailsArray.md +8 -0
- data/docs/ActionIn.md +13 -0
- data/docs/ActionOut.md +12 -0
- data/docs/AggregateData.md +13 -0
- data/docs/AggregatesHistogramData.md +14 -0
- data/docs/AggregatesHistogramResponse.md +14 -0
- data/docs/AggregatesResponse.md +13 -0
- data/docs/AppProperties.md +10 -0
- data/docs/CheckTokenMessage.md +8 -0
- data/docs/CheckTokenResponse.md +8 -0
- data/docs/Device.md +21 -0
- data/docs/DeviceArray.md +8 -0
- data/docs/DeviceEnvelope.md +8 -0
- data/docs/DeviceRegCompleteRequest.md +8 -0
- data/docs/DeviceRegConfirmUserRequest.md +10 -0
- data/docs/DeviceRegConfirmUserResponse.md +8 -0
- data/docs/DeviceRegConfirmUserResponseEnvelope.md +8 -0
- data/docs/DeviceRegStatusResponse.md +9 -0
- data/docs/DeviceRegStatusResponseEnvelope.md +8 -0
- data/docs/DeviceToken.md +11 -0
- data/docs/DeviceTokenEnvelope.md +8 -0
- data/docs/DeviceType.md +25 -0
- data/docs/DeviceTypeArray.md +8 -0
- data/docs/DeviceTypeEnvelope.md +8 -0
- data/docs/DeviceTypesApi.md +284 -0
- data/docs/DeviceTypesEnvelope.md +11 -0
- data/docs/DevicesApi.md +382 -0
- data/docs/DevicesEnvelope.md +11 -0
- data/docs/ErrorEnvelope.md +8 -0
- data/docs/ExportApi.md +225 -0
- data/docs/ExportData.md +14 -0
- data/docs/ExportDataArray.md +8 -0
- data/docs/ExportHistoryResponse.md +11 -0
- data/docs/ExportNormalizedMessagesResponse.md +20 -0
- data/docs/ExportRequest.md +15 -0
- data/docs/ExportRequestData.md +18 -0
- data/docs/ExportRequestInfo.md +17 -0
- data/docs/ExportRequestResponse.md +8 -0
- data/docs/ExportResponse.md +18 -0
- data/docs/ExportStatusResponse.md +12 -0
- data/docs/FieldPath.md +8 -0
- data/docs/FieldPresence.md +8 -0
- data/docs/FieldPresenceEnvelope.md +14 -0
- data/docs/FieldsActions.md +9 -0
- data/docs/ManifestProperties.md +8 -0
- data/docs/ManifestPropertiesEnvelope.md +8 -0
- data/docs/ManifestVersions.md +8 -0
- data/docs/ManifestVersionsEnvelope.md +8 -0
- data/docs/MessageAction.md +12 -0
- data/docs/MessageID.md +8 -0
- data/docs/MessageIDEnvelope.md +8 -0
- data/docs/MessageIn.md +13 -0
- data/docs/MessageOut.md +12 -0
- data/docs/MessagesApi.md +382 -0
- data/docs/NonEmptyString.md +8 -0
- data/docs/NormalizedMessage.md +15 -0
- data/docs/NormalizedMessagesEnvelope.md +17 -0
- data/docs/OutputRule.md +21 -0
- data/docs/PropertiesEnvelope.md +8 -0
- data/docs/RefreshTokenResponse.md +11 -0
- data/docs/RegisterMessage.md +12 -0
- data/docs/RegistrationsApi.md +167 -0
- data/docs/RuleArray.md +8 -0
- data/docs/RuleCreationInfo.md +11 -0
- data/docs/RuleEnvelope.md +8 -0
- data/docs/RuleError.md +11 -0
- data/docs/RuleUpdateInfo.md +11 -0
- data/docs/RuleWarningOutput.md +9 -0
- data/docs/RulesApi.md +226 -0
- data/docs/RulesEnvelope.md +11 -0
- data/docs/Tag.md +9 -0
- data/docs/TagArray.md +8 -0
- data/docs/TagsApi.md +169 -0
- data/docs/TagsEnvelope.md +8 -0
- data/docs/Token.md +11 -0
- data/docs/TokenRequest.md +8 -0
- data/docs/TokenResponse.md +8 -0
- data/docs/TokensApi.md +117 -0
- data/docs/UnregisterDeviceResponse.md +18 -0
- data/docs/UnregisterDeviceResponseEnvelope.md +8 -0
- data/docs/User.md +14 -0
- data/docs/UserEnvelope.md +8 -0
- data/docs/UsersApi.md +474 -0
- data/docs/WebSocketError.md +10 -0
- data/git_push.sh +52 -0
- data/lib/artikcloud/api/device_types_api.rb +340 -0
- data/lib/artikcloud/api/devices_api.rb +450 -0
- data/lib/artikcloud/api/export_api.rb +269 -0
- data/lib/artikcloud/api/messages_api.rb +468 -0
- data/lib/artikcloud/api/registrations_api.rb +205 -0
- data/lib/artikcloud/api/rules_api.rb +276 -0
- data/lib/artikcloud/api/tags_api.rb +209 -0
- data/lib/artikcloud/api/tokens_api.rb +152 -0
- data/lib/artikcloud/api/users_api.rb +552 -0
- data/lib/artikcloud/api_client.rb +336 -0
- data/lib/artikcloud/api_error.rb +38 -0
- data/lib/artikcloud/configuration.rb +170 -0
- data/lib/artikcloud/models/ack_envelope.rb +164 -0
- data/lib/artikcloud/models/acknowledgement.rb +198 -0
- data/lib/artikcloud/models/action_details.rb +178 -0
- data/lib/artikcloud/models/action_details_array.rb +166 -0
- data/lib/artikcloud/models/action_in.rb +221 -0
- data/lib/artikcloud/models/action_out.rb +209 -0
- data/lib/artikcloud/models/aggregate_data.rb +214 -0
- data/lib/artikcloud/models/aggregates_histogram_data.rb +224 -0
- data/lib/artikcloud/models/aggregates_histogram_response.rb +226 -0
- data/lib/artikcloud/models/aggregates_response.rb +216 -0
- data/lib/artikcloud/models/app_properties.rb +184 -0
- data/lib/artikcloud/models/check_token_message.rb +164 -0
- data/lib/artikcloud/models/check_token_response.rb +164 -0
- data/lib/artikcloud/models/device.rb +310 -0
- data/lib/artikcloud/models/device_array.rb +166 -0
- data/lib/artikcloud/models/device_envelope.rb +164 -0
- data/lib/artikcloud/models/device_reg_complete_request.rb +165 -0
- data/lib/artikcloud/models/device_reg_confirm_user_request.rb +187 -0
- data/lib/artikcloud/models/device_reg_confirm_user_response.rb +165 -0
- data/lib/artikcloud/models/device_reg_confirm_user_response_envelope.rb +164 -0
- data/lib/artikcloud/models/device_reg_status_response.rb +176 -0
- data/lib/artikcloud/models/device_reg_status_response_envelope.rb +164 -0
- data/lib/artikcloud/models/device_token.rb +194 -0
- data/lib/artikcloud/models/device_token_envelope.rb +164 -0
- data/lib/artikcloud/models/device_type.rb +353 -0
- data/lib/artikcloud/models/device_type_array.rb +166 -0
- data/lib/artikcloud/models/device_type_envelope.rb +164 -0
- data/lib/artikcloud/models/device_types_envelope.rb +194 -0
- data/lib/artikcloud/models/devices_envelope.rb +194 -0
- data/lib/artikcloud/models/error_envelope.rb +165 -0
- data/lib/artikcloud/models/export_data.rb +225 -0
- data/lib/artikcloud/models/export_data_array.rb +166 -0
- data/lib/artikcloud/models/export_history_response.rb +194 -0
- data/lib/artikcloud/models/export_normalized_messages_response.rb +284 -0
- data/lib/artikcloud/models/export_request.rb +234 -0
- data/lib/artikcloud/models/export_request_data.rb +275 -0
- data/lib/artikcloud/models/export_request_info.rb +264 -0
- data/lib/artikcloud/models/export_request_response.rb +164 -0
- data/lib/artikcloud/models/export_response.rb +275 -0
- data/lib/artikcloud/models/export_status_response.rb +205 -0
- data/lib/artikcloud/models/field_path.rb +166 -0
- data/lib/artikcloud/models/field_presence.rb +164 -0
- data/lib/artikcloud/models/field_presence_envelope.rb +226 -0
- data/lib/artikcloud/models/fields_actions.rb +180 -0
- data/lib/artikcloud/models/manifest_properties.rb +164 -0
- data/lib/artikcloud/models/manifest_properties_envelope.rb +164 -0
- data/lib/artikcloud/models/manifest_versions.rb +166 -0
- data/lib/artikcloud/models/manifest_versions_envelope.rb +164 -0
- data/lib/artikcloud/models/message_action.rb +210 -0
- data/lib/artikcloud/models/message_id.rb +165 -0
- data/lib/artikcloud/models/message_id_envelope.rb +164 -0
- data/lib/artikcloud/models/message_in.rb +224 -0
- data/lib/artikcloud/models/message_out.rb +209 -0
- data/lib/artikcloud/models/non_empty_string.rb +164 -0
- data/lib/artikcloud/models/normalized_message.rb +236 -0
- data/lib/artikcloud/models/normalized_messages_envelope.rb +256 -0
- data/lib/artikcloud/models/output_rule.rb +296 -0
- data/lib/artikcloud/models/properties_envelope.rb +164 -0
- data/lib/artikcloud/models/refresh_token_response.rb +194 -0
- data/lib/artikcloud/models/register_message.rb +211 -0
- data/lib/artikcloud/models/rule_array.rb +166 -0
- data/lib/artikcloud/models/rule_creation_info.rb +200 -0
- data/lib/artikcloud/models/rule_envelope.rb +164 -0
- data/lib/artikcloud/models/rule_error.rb +196 -0
- data/lib/artikcloud/models/rule_update_info.rb +200 -0
- data/lib/artikcloud/models/rule_warning_output.rb +174 -0
- data/lib/artikcloud/models/rules_envelope.rb +194 -0
- data/lib/artikcloud/models/tag.rb +176 -0
- data/lib/artikcloud/models/tag_array.rb +166 -0
- data/lib/artikcloud/models/tags_envelope.rb +164 -0
- data/lib/artikcloud/models/token.rb +194 -0
- data/lib/artikcloud/models/token_request.rb +164 -0
- data/lib/artikcloud/models/token_response.rb +164 -0
- data/lib/artikcloud/models/unregister_device_response.rb +275 -0
- data/lib/artikcloud/models/unregister_device_response_envelope.rb +164 -0
- data/lib/artikcloud/models/user.rb +224 -0
- data/lib/artikcloud/models/user_envelope.rb +164 -0
- data/lib/artikcloud/models/web_socket_error.rb +187 -0
- data/lib/artikcloud/version.rb +17 -0
- data/lib/artikcloud.rb +128 -0
- data/pom.xml +60 -0
- data/spec/api/messages_api_spec.rb +79 -0
- data/spec/api/tokens_api_spec.rb +79 -0
- data/spec/api/users_api_spec.rb +50 -0
- data/spec/spec.opts +4 -0
- data/spec/spec_helper.rb +36 -0
- metadata +420 -0
data/docs/DevicesApi.md
ADDED
|
@@ -0,0 +1,382 @@
|
|
|
1
|
+
# ArtikCloud::DevicesApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://api.artik.cloud/v1.1*
|
|
4
|
+
|
|
5
|
+
Method | HTTP request | Description
|
|
6
|
+
------------- | ------------- | -------------
|
|
7
|
+
[**add_device**](DevicesApi.md#add_device) | **POST** /devices | Add Device
|
|
8
|
+
[**delete_device**](DevicesApi.md#delete_device) | **DELETE** /devices/{deviceId} | Delete Device
|
|
9
|
+
[**delete_device_token**](DevicesApi.md#delete_device_token) | **DELETE** /devices/{deviceId}/tokens | Delete Device Token
|
|
10
|
+
[**get_device**](DevicesApi.md#get_device) | **GET** /devices/{deviceId} | Get Device
|
|
11
|
+
[**get_device_token**](DevicesApi.md#get_device_token) | **GET** /devices/{deviceId}/tokens | Get Device Token
|
|
12
|
+
[**update_device**](DevicesApi.md#update_device) | **PUT** /devices/{deviceId} | Update Device
|
|
13
|
+
[**update_device_token**](DevicesApi.md#update_device_token) | **PUT** /devices/{deviceId}/tokens | Update Device Token
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
# **add_device**
|
|
17
|
+
> DeviceEnvelope add_device(device)
|
|
18
|
+
|
|
19
|
+
Add Device
|
|
20
|
+
|
|
21
|
+
Create a device
|
|
22
|
+
|
|
23
|
+
### Example
|
|
24
|
+
```ruby
|
|
25
|
+
# load the gem
|
|
26
|
+
require 'artikcloud'
|
|
27
|
+
# setup authorization
|
|
28
|
+
ArtikCloud.configure do |config|
|
|
29
|
+
# Configure OAuth2 access token for authorization: artikcloud_oauth
|
|
30
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
api_instance = ArtikCloud::DevicesApi.new
|
|
34
|
+
|
|
35
|
+
device = ArtikCloud::Device.new # Device | Device to be added to the user
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
begin
|
|
39
|
+
#Add Device
|
|
40
|
+
result = api_instance.add_device(device)
|
|
41
|
+
p result
|
|
42
|
+
rescue ArtikCloud::ApiError => e
|
|
43
|
+
puts "Exception when calling DevicesApi->add_device: #{e}"
|
|
44
|
+
end
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
### Parameters
|
|
48
|
+
|
|
49
|
+
Name | Type | Description | Notes
|
|
50
|
+
------------- | ------------- | ------------- | -------------
|
|
51
|
+
**device** | [**Device**](Device.md)| Device to be added to the user |
|
|
52
|
+
|
|
53
|
+
### Return type
|
|
54
|
+
|
|
55
|
+
[**DeviceEnvelope**](DeviceEnvelope.md)
|
|
56
|
+
|
|
57
|
+
### Authorization
|
|
58
|
+
|
|
59
|
+
[artikcloud_oauth](../README.md#artikcloud_oauth)
|
|
60
|
+
|
|
61
|
+
### HTTP reuqest headers
|
|
62
|
+
|
|
63
|
+
- **Content-Type**: application/json
|
|
64
|
+
- **Accept**: application/json
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
# **delete_device**
|
|
69
|
+
> DeviceEnvelope delete_device(device_id)
|
|
70
|
+
|
|
71
|
+
Delete Device
|
|
72
|
+
|
|
73
|
+
Deletes a device
|
|
74
|
+
|
|
75
|
+
### Example
|
|
76
|
+
```ruby
|
|
77
|
+
# load the gem
|
|
78
|
+
require 'artikcloud'
|
|
79
|
+
# setup authorization
|
|
80
|
+
ArtikCloud.configure do |config|
|
|
81
|
+
# Configure OAuth2 access token for authorization: artikcloud_oauth
|
|
82
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
|
83
|
+
end
|
|
84
|
+
|
|
85
|
+
api_instance = ArtikCloud::DevicesApi.new
|
|
86
|
+
|
|
87
|
+
device_id = "device_id_example" # String | deviceId
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
begin
|
|
91
|
+
#Delete Device
|
|
92
|
+
result = api_instance.delete_device(device_id)
|
|
93
|
+
p result
|
|
94
|
+
rescue ArtikCloud::ApiError => e
|
|
95
|
+
puts "Exception when calling DevicesApi->delete_device: #{e}"
|
|
96
|
+
end
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
### Parameters
|
|
100
|
+
|
|
101
|
+
Name | Type | Description | Notes
|
|
102
|
+
------------- | ------------- | ------------- | -------------
|
|
103
|
+
**device_id** | **String**| deviceId |
|
|
104
|
+
|
|
105
|
+
### Return type
|
|
106
|
+
|
|
107
|
+
[**DeviceEnvelope**](DeviceEnvelope.md)
|
|
108
|
+
|
|
109
|
+
### Authorization
|
|
110
|
+
|
|
111
|
+
[artikcloud_oauth](../README.md#artikcloud_oauth)
|
|
112
|
+
|
|
113
|
+
### HTTP reuqest headers
|
|
114
|
+
|
|
115
|
+
- **Content-Type**: Not defined
|
|
116
|
+
- **Accept**: application/json
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
# **delete_device_token**
|
|
121
|
+
> DeviceTokenEnvelope delete_device_token(device_id)
|
|
122
|
+
|
|
123
|
+
Delete Device Token
|
|
124
|
+
|
|
125
|
+
Deletes a device's token
|
|
126
|
+
|
|
127
|
+
### Example
|
|
128
|
+
```ruby
|
|
129
|
+
# load the gem
|
|
130
|
+
require 'artikcloud'
|
|
131
|
+
# setup authorization
|
|
132
|
+
ArtikCloud.configure do |config|
|
|
133
|
+
# Configure OAuth2 access token for authorization: artikcloud_oauth
|
|
134
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
|
135
|
+
end
|
|
136
|
+
|
|
137
|
+
api_instance = ArtikCloud::DevicesApi.new
|
|
138
|
+
|
|
139
|
+
device_id = "device_id_example" # String | deviceId
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
begin
|
|
143
|
+
#Delete Device Token
|
|
144
|
+
result = api_instance.delete_device_token(device_id)
|
|
145
|
+
p result
|
|
146
|
+
rescue ArtikCloud::ApiError => e
|
|
147
|
+
puts "Exception when calling DevicesApi->delete_device_token: #{e}"
|
|
148
|
+
end
|
|
149
|
+
```
|
|
150
|
+
|
|
151
|
+
### Parameters
|
|
152
|
+
|
|
153
|
+
Name | Type | Description | Notes
|
|
154
|
+
------------- | ------------- | ------------- | -------------
|
|
155
|
+
**device_id** | **String**| deviceId |
|
|
156
|
+
|
|
157
|
+
### Return type
|
|
158
|
+
|
|
159
|
+
[**DeviceTokenEnvelope**](DeviceTokenEnvelope.md)
|
|
160
|
+
|
|
161
|
+
### Authorization
|
|
162
|
+
|
|
163
|
+
[artikcloud_oauth](../README.md#artikcloud_oauth)
|
|
164
|
+
|
|
165
|
+
### HTTP reuqest headers
|
|
166
|
+
|
|
167
|
+
- **Content-Type**: Not defined
|
|
168
|
+
- **Accept**: application/json
|
|
169
|
+
|
|
170
|
+
|
|
171
|
+
|
|
172
|
+
# **get_device**
|
|
173
|
+
> DeviceEnvelope get_device(device_id)
|
|
174
|
+
|
|
175
|
+
Get Device
|
|
176
|
+
|
|
177
|
+
Retrieves a device
|
|
178
|
+
|
|
179
|
+
### Example
|
|
180
|
+
```ruby
|
|
181
|
+
# load the gem
|
|
182
|
+
require 'artikcloud'
|
|
183
|
+
# setup authorization
|
|
184
|
+
ArtikCloud.configure do |config|
|
|
185
|
+
# Configure OAuth2 access token for authorization: artikcloud_oauth
|
|
186
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
|
187
|
+
end
|
|
188
|
+
|
|
189
|
+
api_instance = ArtikCloud::DevicesApi.new
|
|
190
|
+
|
|
191
|
+
device_id = "device_id_example" # String | deviceId
|
|
192
|
+
|
|
193
|
+
|
|
194
|
+
begin
|
|
195
|
+
#Get Device
|
|
196
|
+
result = api_instance.get_device(device_id)
|
|
197
|
+
p result
|
|
198
|
+
rescue ArtikCloud::ApiError => e
|
|
199
|
+
puts "Exception when calling DevicesApi->get_device: #{e}"
|
|
200
|
+
end
|
|
201
|
+
```
|
|
202
|
+
|
|
203
|
+
### Parameters
|
|
204
|
+
|
|
205
|
+
Name | Type | Description | Notes
|
|
206
|
+
------------- | ------------- | ------------- | -------------
|
|
207
|
+
**device_id** | **String**| deviceId |
|
|
208
|
+
|
|
209
|
+
### Return type
|
|
210
|
+
|
|
211
|
+
[**DeviceEnvelope**](DeviceEnvelope.md)
|
|
212
|
+
|
|
213
|
+
### Authorization
|
|
214
|
+
|
|
215
|
+
[artikcloud_oauth](../README.md#artikcloud_oauth)
|
|
216
|
+
|
|
217
|
+
### HTTP reuqest headers
|
|
218
|
+
|
|
219
|
+
- **Content-Type**: Not defined
|
|
220
|
+
- **Accept**: application/json
|
|
221
|
+
|
|
222
|
+
|
|
223
|
+
|
|
224
|
+
# **get_device_token**
|
|
225
|
+
> DeviceTokenEnvelope get_device_token(device_id)
|
|
226
|
+
|
|
227
|
+
Get Device Token
|
|
228
|
+
|
|
229
|
+
Retrieves a device's token
|
|
230
|
+
|
|
231
|
+
### Example
|
|
232
|
+
```ruby
|
|
233
|
+
# load the gem
|
|
234
|
+
require 'artikcloud'
|
|
235
|
+
# setup authorization
|
|
236
|
+
ArtikCloud.configure do |config|
|
|
237
|
+
# Configure OAuth2 access token for authorization: artikcloud_oauth
|
|
238
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
|
239
|
+
end
|
|
240
|
+
|
|
241
|
+
api_instance = ArtikCloud::DevicesApi.new
|
|
242
|
+
|
|
243
|
+
device_id = "device_id_example" # String | deviceId
|
|
244
|
+
|
|
245
|
+
|
|
246
|
+
begin
|
|
247
|
+
#Get Device Token
|
|
248
|
+
result = api_instance.get_device_token(device_id)
|
|
249
|
+
p result
|
|
250
|
+
rescue ArtikCloud::ApiError => e
|
|
251
|
+
puts "Exception when calling DevicesApi->get_device_token: #{e}"
|
|
252
|
+
end
|
|
253
|
+
```
|
|
254
|
+
|
|
255
|
+
### Parameters
|
|
256
|
+
|
|
257
|
+
Name | Type | Description | Notes
|
|
258
|
+
------------- | ------------- | ------------- | -------------
|
|
259
|
+
**device_id** | **String**| deviceId |
|
|
260
|
+
|
|
261
|
+
### Return type
|
|
262
|
+
|
|
263
|
+
[**DeviceTokenEnvelope**](DeviceTokenEnvelope.md)
|
|
264
|
+
|
|
265
|
+
### Authorization
|
|
266
|
+
|
|
267
|
+
[artikcloud_oauth](../README.md#artikcloud_oauth)
|
|
268
|
+
|
|
269
|
+
### HTTP reuqest headers
|
|
270
|
+
|
|
271
|
+
- **Content-Type**: Not defined
|
|
272
|
+
- **Accept**: application/json
|
|
273
|
+
|
|
274
|
+
|
|
275
|
+
|
|
276
|
+
# **update_device**
|
|
277
|
+
> DeviceEnvelope update_device(device_id, device)
|
|
278
|
+
|
|
279
|
+
Update Device
|
|
280
|
+
|
|
281
|
+
Updates a device
|
|
282
|
+
|
|
283
|
+
### Example
|
|
284
|
+
```ruby
|
|
285
|
+
# load the gem
|
|
286
|
+
require 'artikcloud'
|
|
287
|
+
# setup authorization
|
|
288
|
+
ArtikCloud.configure do |config|
|
|
289
|
+
# Configure OAuth2 access token for authorization: artikcloud_oauth
|
|
290
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
|
291
|
+
end
|
|
292
|
+
|
|
293
|
+
api_instance = ArtikCloud::DevicesApi.new
|
|
294
|
+
|
|
295
|
+
device_id = "device_id_example" # String | deviceId
|
|
296
|
+
|
|
297
|
+
device = ArtikCloud::Device.new # Device | Device to be updated
|
|
298
|
+
|
|
299
|
+
|
|
300
|
+
begin
|
|
301
|
+
#Update Device
|
|
302
|
+
result = api_instance.update_device(device_id, device)
|
|
303
|
+
p result
|
|
304
|
+
rescue ArtikCloud::ApiError => e
|
|
305
|
+
puts "Exception when calling DevicesApi->update_device: #{e}"
|
|
306
|
+
end
|
|
307
|
+
```
|
|
308
|
+
|
|
309
|
+
### Parameters
|
|
310
|
+
|
|
311
|
+
Name | Type | Description | Notes
|
|
312
|
+
------------- | ------------- | ------------- | -------------
|
|
313
|
+
**device_id** | **String**| deviceId |
|
|
314
|
+
**device** | [**Device**](Device.md)| Device to be updated |
|
|
315
|
+
|
|
316
|
+
### Return type
|
|
317
|
+
|
|
318
|
+
[**DeviceEnvelope**](DeviceEnvelope.md)
|
|
319
|
+
|
|
320
|
+
### Authorization
|
|
321
|
+
|
|
322
|
+
[artikcloud_oauth](../README.md#artikcloud_oauth)
|
|
323
|
+
|
|
324
|
+
### HTTP reuqest headers
|
|
325
|
+
|
|
326
|
+
- **Content-Type**: application/json
|
|
327
|
+
- **Accept**: application/json
|
|
328
|
+
|
|
329
|
+
|
|
330
|
+
|
|
331
|
+
# **update_device_token**
|
|
332
|
+
> DeviceTokenEnvelope update_device_token(device_id)
|
|
333
|
+
|
|
334
|
+
Update Device Token
|
|
335
|
+
|
|
336
|
+
Updates a device's token
|
|
337
|
+
|
|
338
|
+
### Example
|
|
339
|
+
```ruby
|
|
340
|
+
# load the gem
|
|
341
|
+
require 'artikcloud'
|
|
342
|
+
# setup authorization
|
|
343
|
+
ArtikCloud.configure do |config|
|
|
344
|
+
# Configure OAuth2 access token for authorization: artikcloud_oauth
|
|
345
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
|
346
|
+
end
|
|
347
|
+
|
|
348
|
+
api_instance = ArtikCloud::DevicesApi.new
|
|
349
|
+
|
|
350
|
+
device_id = "device_id_example" # String | deviceId
|
|
351
|
+
|
|
352
|
+
|
|
353
|
+
begin
|
|
354
|
+
#Update Device Token
|
|
355
|
+
result = api_instance.update_device_token(device_id)
|
|
356
|
+
p result
|
|
357
|
+
rescue ArtikCloud::ApiError => e
|
|
358
|
+
puts "Exception when calling DevicesApi->update_device_token: #{e}"
|
|
359
|
+
end
|
|
360
|
+
```
|
|
361
|
+
|
|
362
|
+
### Parameters
|
|
363
|
+
|
|
364
|
+
Name | Type | Description | Notes
|
|
365
|
+
------------- | ------------- | ------------- | -------------
|
|
366
|
+
**device_id** | **String**| deviceId |
|
|
367
|
+
|
|
368
|
+
### Return type
|
|
369
|
+
|
|
370
|
+
[**DeviceTokenEnvelope**](DeviceTokenEnvelope.md)
|
|
371
|
+
|
|
372
|
+
### Authorization
|
|
373
|
+
|
|
374
|
+
[artikcloud_oauth](../README.md#artikcloud_oauth)
|
|
375
|
+
|
|
376
|
+
### HTTP reuqest headers
|
|
377
|
+
|
|
378
|
+
- **Content-Type**: application/json
|
|
379
|
+
- **Accept**: application/json
|
|
380
|
+
|
|
381
|
+
|
|
382
|
+
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# ArtikCloud::DevicesEnvelope
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
Name | Type | Description | Notes
|
|
5
|
+
------------ | ------------- | ------------- | -------------
|
|
6
|
+
**total** | **Integer** | |
|
|
7
|
+
**count** | **Integer** | |
|
|
8
|
+
**offset** | **Integer** | |
|
|
9
|
+
**data** | [**DeviceArray**](DeviceArray.md) | | [optional]
|
|
10
|
+
|
|
11
|
+
|
data/docs/ExportApi.md
ADDED
|
@@ -0,0 +1,225 @@
|
|
|
1
|
+
# ArtikCloud::ExportApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://api.artik.cloud/v1.1*
|
|
4
|
+
|
|
5
|
+
Method | HTTP request | Description
|
|
6
|
+
------------- | ------------- | -------------
|
|
7
|
+
[**export_request**](ExportApi.md#export_request) | **POST** /messages/export | Create Export Request
|
|
8
|
+
[**get_export_history**](ExportApi.md#get_export_history) | **GET** /messages/export/history | Get Export History
|
|
9
|
+
[**get_export_result**](ExportApi.md#get_export_result) | **GET** /messages/export/{exportId}/result | Get Export Result
|
|
10
|
+
[**get_export_status**](ExportApi.md#get_export_status) | **GET** /messages/export/{exportId}/status | Check Export Status
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
# **export_request**
|
|
14
|
+
> ExportRequestResponse export_request(export_request_info)
|
|
15
|
+
|
|
16
|
+
Create Export Request
|
|
17
|
+
|
|
18
|
+
Export normalized messages. The following input combinations are supported:<br/><table><tr><th>Combination</th><th>Parameters</th><th>Description</th></tr><tr><td>Get by users</td><td>uids</td><td>Search by a list of User IDs. For each user in the list, the current authenticated user must have read access over the specified user.</td></tr><tr><td>Get by devices</td><td>sdids</td><td>Search by Source Device IDs.</td></tr><tr><td>Get by device types</td><td>uids,sdtids</td><td>Search by list of Source Device Type IDs for the given list of users.</td></tr><tr><td>Get by trial</td><td>trialId</td><td>Search by Trial ID.</td></tr><tr><td>Get by combination of parameters</td><td>uids,sdids,sdtids</td><td>Search by list of Source Device IDs. Each Device ID must belong to a Source Device Type ID and a User ID.</td></tr><tr><td>Common</td><td>startDate,endDate,order,format,url,csvHeaders</td><td>Parameters that can be used with the above combinations.</td></tr></table>
|
|
19
|
+
|
|
20
|
+
### Example
|
|
21
|
+
```ruby
|
|
22
|
+
# load the gem
|
|
23
|
+
require 'artikcloud'
|
|
24
|
+
# setup authorization
|
|
25
|
+
ArtikCloud.configure do |config|
|
|
26
|
+
# Configure OAuth2 access token for authorization: artikcloud_oauth
|
|
27
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
api_instance = ArtikCloud::ExportApi.new
|
|
31
|
+
|
|
32
|
+
export_request_info = ArtikCloud::ExportRequestInfo.new # ExportRequestInfo | ExportRequest object that is passed in the body
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
begin
|
|
36
|
+
#Create Export Request
|
|
37
|
+
result = api_instance.export_request(export_request_info)
|
|
38
|
+
p result
|
|
39
|
+
rescue ArtikCloud::ApiError => e
|
|
40
|
+
puts "Exception when calling ExportApi->export_request: #{e}"
|
|
41
|
+
end
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
### Parameters
|
|
45
|
+
|
|
46
|
+
Name | Type | Description | Notes
|
|
47
|
+
------------- | ------------- | ------------- | -------------
|
|
48
|
+
**export_request_info** | [**ExportRequestInfo**](ExportRequestInfo.md)| ExportRequest object that is passed in the body |
|
|
49
|
+
|
|
50
|
+
### Return type
|
|
51
|
+
|
|
52
|
+
[**ExportRequestResponse**](ExportRequestResponse.md)
|
|
53
|
+
|
|
54
|
+
### Authorization
|
|
55
|
+
|
|
56
|
+
[artikcloud_oauth](../README.md#artikcloud_oauth)
|
|
57
|
+
|
|
58
|
+
### HTTP reuqest headers
|
|
59
|
+
|
|
60
|
+
- **Content-Type**: Not defined
|
|
61
|
+
- **Accept**: application/json
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
# **get_export_history**
|
|
66
|
+
> ExportHistoryResponse get_export_history(opts)
|
|
67
|
+
|
|
68
|
+
Get Export History
|
|
69
|
+
|
|
70
|
+
Get the history of export requests.
|
|
71
|
+
|
|
72
|
+
### Example
|
|
73
|
+
```ruby
|
|
74
|
+
# load the gem
|
|
75
|
+
require 'artikcloud'
|
|
76
|
+
# setup authorization
|
|
77
|
+
ArtikCloud.configure do |config|
|
|
78
|
+
# Configure OAuth2 access token for authorization: artikcloud_oauth
|
|
79
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
|
80
|
+
end
|
|
81
|
+
|
|
82
|
+
api_instance = ArtikCloud::ExportApi.new
|
|
83
|
+
|
|
84
|
+
opts = {
|
|
85
|
+
trial_id: "trial_id_example", # String | Filter by trialId.
|
|
86
|
+
count: 56, # Integer | Pagination count.
|
|
87
|
+
offset: 56 # Integer | Pagination offset.
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
begin
|
|
91
|
+
#Get Export History
|
|
92
|
+
result = api_instance.get_export_history(opts)
|
|
93
|
+
p result
|
|
94
|
+
rescue ArtikCloud::ApiError => e
|
|
95
|
+
puts "Exception when calling ExportApi->get_export_history: #{e}"
|
|
96
|
+
end
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
### Parameters
|
|
100
|
+
|
|
101
|
+
Name | Type | Description | Notes
|
|
102
|
+
------------- | ------------- | ------------- | -------------
|
|
103
|
+
**trial_id** | **String**| Filter by trialId. | [optional]
|
|
104
|
+
**count** | [**Integer**](.md)| Pagination count. | [optional]
|
|
105
|
+
**offset** | [**Integer**](.md)| Pagination offset. | [optional]
|
|
106
|
+
|
|
107
|
+
### Return type
|
|
108
|
+
|
|
109
|
+
[**ExportHistoryResponse**](ExportHistoryResponse.md)
|
|
110
|
+
|
|
111
|
+
### Authorization
|
|
112
|
+
|
|
113
|
+
[artikcloud_oauth](../README.md#artikcloud_oauth)
|
|
114
|
+
|
|
115
|
+
### HTTP reuqest headers
|
|
116
|
+
|
|
117
|
+
- **Content-Type**: Not defined
|
|
118
|
+
- **Accept**: application/json
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
# **get_export_result**
|
|
123
|
+
> String get_export_result(export_id)
|
|
124
|
+
|
|
125
|
+
Get Export Result
|
|
126
|
+
|
|
127
|
+
Retrieve result of the export query in tgz format. The tar file may contain one or more files with the results.
|
|
128
|
+
|
|
129
|
+
### Example
|
|
130
|
+
```ruby
|
|
131
|
+
# load the gem
|
|
132
|
+
require 'artikcloud'
|
|
133
|
+
# setup authorization
|
|
134
|
+
ArtikCloud.configure do |config|
|
|
135
|
+
# Configure OAuth2 access token for authorization: artikcloud_oauth
|
|
136
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
|
137
|
+
end
|
|
138
|
+
|
|
139
|
+
api_instance = ArtikCloud::ExportApi.new
|
|
140
|
+
|
|
141
|
+
export_id = "export_id_example" # String | Export ID of the export query.
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
begin
|
|
145
|
+
#Get Export Result
|
|
146
|
+
result = api_instance.get_export_result(export_id)
|
|
147
|
+
p result
|
|
148
|
+
rescue ArtikCloud::ApiError => e
|
|
149
|
+
puts "Exception when calling ExportApi->get_export_result: #{e}"
|
|
150
|
+
end
|
|
151
|
+
```
|
|
152
|
+
|
|
153
|
+
### Parameters
|
|
154
|
+
|
|
155
|
+
Name | Type | Description | Notes
|
|
156
|
+
------------- | ------------- | ------------- | -------------
|
|
157
|
+
**export_id** | **String**| Export ID of the export query. |
|
|
158
|
+
|
|
159
|
+
### Return type
|
|
160
|
+
|
|
161
|
+
**String**
|
|
162
|
+
|
|
163
|
+
### Authorization
|
|
164
|
+
|
|
165
|
+
[artikcloud_oauth](../README.md#artikcloud_oauth)
|
|
166
|
+
|
|
167
|
+
### HTTP reuqest headers
|
|
168
|
+
|
|
169
|
+
- **Content-Type**: Not defined
|
|
170
|
+
- **Accept**: application/json
|
|
171
|
+
|
|
172
|
+
|
|
173
|
+
|
|
174
|
+
# **get_export_status**
|
|
175
|
+
> ExportStatusResponse get_export_status(export_id)
|
|
176
|
+
|
|
177
|
+
Check Export Status
|
|
178
|
+
|
|
179
|
+
Check status of the export query.
|
|
180
|
+
|
|
181
|
+
### Example
|
|
182
|
+
```ruby
|
|
183
|
+
# load the gem
|
|
184
|
+
require 'artikcloud'
|
|
185
|
+
# setup authorization
|
|
186
|
+
ArtikCloud.configure do |config|
|
|
187
|
+
# Configure OAuth2 access token for authorization: artikcloud_oauth
|
|
188
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
|
189
|
+
end
|
|
190
|
+
|
|
191
|
+
api_instance = ArtikCloud::ExportApi.new
|
|
192
|
+
|
|
193
|
+
export_id = "export_id_example" # String | Export ID of the export query.
|
|
194
|
+
|
|
195
|
+
|
|
196
|
+
begin
|
|
197
|
+
#Check Export Status
|
|
198
|
+
result = api_instance.get_export_status(export_id)
|
|
199
|
+
p result
|
|
200
|
+
rescue ArtikCloud::ApiError => e
|
|
201
|
+
puts "Exception when calling ExportApi->get_export_status: #{e}"
|
|
202
|
+
end
|
|
203
|
+
```
|
|
204
|
+
|
|
205
|
+
### Parameters
|
|
206
|
+
|
|
207
|
+
Name | Type | Description | Notes
|
|
208
|
+
------------- | ------------- | ------------- | -------------
|
|
209
|
+
**export_id** | **String**| Export ID of the export query. |
|
|
210
|
+
|
|
211
|
+
### Return type
|
|
212
|
+
|
|
213
|
+
[**ExportStatusResponse**](ExportStatusResponse.md)
|
|
214
|
+
|
|
215
|
+
### Authorization
|
|
216
|
+
|
|
217
|
+
[artikcloud_oauth](../README.md#artikcloud_oauth)
|
|
218
|
+
|
|
219
|
+
### HTTP reuqest headers
|
|
220
|
+
|
|
221
|
+
- **Content-Type**: Not defined
|
|
222
|
+
- **Accept**: application/json
|
|
223
|
+
|
|
224
|
+
|
|
225
|
+
|
data/docs/ExportData.md
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# ArtikCloud::ExportData
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
Name | Type | Description | Notes
|
|
5
|
+
------------ | ------------- | ------------- | -------------
|
|
6
|
+
**expiration_date** | **Integer** | | [optional]
|
|
7
|
+
**export_id** | **String** | | [optional]
|
|
8
|
+
**file_size** | **Integer** | | [optional]
|
|
9
|
+
**md5** | **String** | | [optional]
|
|
10
|
+
**request** | [**ExportRequest**](ExportRequest.md) | | [optional]
|
|
11
|
+
**status** | **String** | Export status | [optional]
|
|
12
|
+
**total_messages** | **Integer** | | [optional]
|
|
13
|
+
|
|
14
|
+
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# ArtikCloud::ExportHistoryResponse
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
Name | Type | Description | Notes
|
|
5
|
+
------------ | ------------- | ------------- | -------------
|
|
6
|
+
**count** | **Integer** | | [optional]
|
|
7
|
+
**data** | [**ExportDataArray**](ExportDataArray.md) | | [optional]
|
|
8
|
+
**offset** | **Integer** | | [optional]
|
|
9
|
+
**total** | **Integer** | | [optional]
|
|
10
|
+
|
|
11
|
+
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# ArtikCloud::ExportNormalizedMessagesResponse
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
Name | Type | Description | Notes
|
|
5
|
+
------------ | ------------- | ------------- | -------------
|
|
6
|
+
**csv_headers** | **BOOLEAN** | | [optional]
|
|
7
|
+
**end_date** | **Integer** | | [optional]
|
|
8
|
+
**export_id** | **String** | | [optional]
|
|
9
|
+
**format** | **String** | | [optional]
|
|
10
|
+
**order** | **String** | | [optional]
|
|
11
|
+
**sdid** | **String** | | [optional]
|
|
12
|
+
**sdids** | **String** | | [optional]
|
|
13
|
+
**start_date** | **Integer** | | [optional]
|
|
14
|
+
**stdids** | **String** | | [optional]
|
|
15
|
+
**trial_id** | **String** | | [optional]
|
|
16
|
+
**uid** | **String** | | [optional]
|
|
17
|
+
**uids** | **String** | | [optional]
|
|
18
|
+
**url** | **String** | | [optional]
|
|
19
|
+
|
|
20
|
+
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# ArtikCloud::ExportRequest
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
Name | Type | Description | Notes
|
|
5
|
+
------------ | ------------- | ------------- | -------------
|
|
6
|
+
**end_date** | **Integer** | | [optional]
|
|
7
|
+
**format** | **String** | | [optional]
|
|
8
|
+
**order** | **String** | | [optional]
|
|
9
|
+
**sdids** | **String** | | [optional]
|
|
10
|
+
**sdtids** | **String** | | [optional]
|
|
11
|
+
**start_date** | **Integer** | | [optional]
|
|
12
|
+
**trial_id** | **String** | | [optional]
|
|
13
|
+
**uids** | **String** | | [optional]
|
|
14
|
+
|
|
15
|
+
|