artikcloud 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- 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/Token.md
ADDED
@@ -0,0 +1,11 @@
|
|
1
|
+
# ArtikCloud::Token
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**access_token** | **String** | | [optional]
|
7
|
+
**expires_in** | **Integer** | | [optional]
|
8
|
+
**scope** | **String** | | [optional]
|
9
|
+
**token_type** | **String** | | [optional]
|
10
|
+
|
11
|
+
|
data/docs/TokensApi.md
ADDED
@@ -0,0 +1,117 @@
|
|
1
|
+
# ArtikCloud::TokensApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://api.artik.cloud/v1.1*
|
4
|
+
|
5
|
+
Method | HTTP request | Description
|
6
|
+
------------- | ------------- | -------------
|
7
|
+
[**check_token**](TokensApi.md#check_token) | **POST** /checkToken | Check Token
|
8
|
+
[**refresh_token**](TokensApi.md#refresh_token) | **POST** /token | Refresh Token
|
9
|
+
|
10
|
+
|
11
|
+
# **check_token**
|
12
|
+
> CheckTokenResponse check_token(token_info)
|
13
|
+
|
14
|
+
Check Token
|
15
|
+
|
16
|
+
Check Token
|
17
|
+
|
18
|
+
### Example
|
19
|
+
```ruby
|
20
|
+
# load the gem
|
21
|
+
require 'artikcloud'
|
22
|
+
# setup authorization
|
23
|
+
ArtikCloud.configure do |config|
|
24
|
+
# Configure OAuth2 access token for authorization: artikcloud_oauth
|
25
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
26
|
+
end
|
27
|
+
|
28
|
+
api_instance = ArtikCloud::TokensApi.new
|
29
|
+
|
30
|
+
token_info = ArtikCloud::TokenRequest.new # TokenRequest | Token object to be checked
|
31
|
+
|
32
|
+
|
33
|
+
begin
|
34
|
+
#Check Token
|
35
|
+
result = api_instance.check_token(token_info)
|
36
|
+
p result
|
37
|
+
rescue ArtikCloud::ApiError => e
|
38
|
+
puts "Exception when calling TokensApi->check_token: #{e}"
|
39
|
+
end
|
40
|
+
```
|
41
|
+
|
42
|
+
### Parameters
|
43
|
+
|
44
|
+
Name | Type | Description | Notes
|
45
|
+
------------- | ------------- | ------------- | -------------
|
46
|
+
**token_info** | [**TokenRequest**](TokenRequest.md)| Token object to be checked |
|
47
|
+
|
48
|
+
### Return type
|
49
|
+
|
50
|
+
[**CheckTokenResponse**](CheckTokenResponse.md)
|
51
|
+
|
52
|
+
### Authorization
|
53
|
+
|
54
|
+
[artikcloud_oauth](../README.md#artikcloud_oauth)
|
55
|
+
|
56
|
+
### HTTP reuqest headers
|
57
|
+
|
58
|
+
- **Content-Type**: Not defined
|
59
|
+
- **Accept**: application/json
|
60
|
+
|
61
|
+
|
62
|
+
|
63
|
+
# **refresh_token**
|
64
|
+
> RefreshTokenResponse refresh_token(grant_type, refresh_token)
|
65
|
+
|
66
|
+
Refresh Token
|
67
|
+
|
68
|
+
Refresh Token
|
69
|
+
|
70
|
+
### Example
|
71
|
+
```ruby
|
72
|
+
# load the gem
|
73
|
+
require 'artikcloud'
|
74
|
+
# setup authorization
|
75
|
+
ArtikCloud.configure do |config|
|
76
|
+
# Configure OAuth2 access token for authorization: artikcloud_oauth
|
77
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
78
|
+
end
|
79
|
+
|
80
|
+
api_instance = ArtikCloud::TokensApi.new
|
81
|
+
|
82
|
+
grant_type = "grant_type_example" # String | Grant Type.
|
83
|
+
|
84
|
+
refresh_token = "refresh_token_example" # String | Refresh Token.
|
85
|
+
|
86
|
+
|
87
|
+
begin
|
88
|
+
#Refresh Token
|
89
|
+
result = api_instance.refresh_token(grant_type, refresh_token)
|
90
|
+
p result
|
91
|
+
rescue ArtikCloud::ApiError => e
|
92
|
+
puts "Exception when calling TokensApi->refresh_token: #{e}"
|
93
|
+
end
|
94
|
+
```
|
95
|
+
|
96
|
+
### Parameters
|
97
|
+
|
98
|
+
Name | Type | Description | Notes
|
99
|
+
------------- | ------------- | ------------- | -------------
|
100
|
+
**grant_type** | **String**| Grant Type. |
|
101
|
+
**refresh_token** | **String**| Refresh Token. |
|
102
|
+
|
103
|
+
### Return type
|
104
|
+
|
105
|
+
[**RefreshTokenResponse**](RefreshTokenResponse.md)
|
106
|
+
|
107
|
+
### Authorization
|
108
|
+
|
109
|
+
[artikcloud_oauth](../README.md#artikcloud_oauth)
|
110
|
+
|
111
|
+
### HTTP reuqest headers
|
112
|
+
|
113
|
+
- **Content-Type**: application/x-www-form-urlencoded
|
114
|
+
- **Accept**: application/json
|
115
|
+
|
116
|
+
|
117
|
+
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# ArtikCloud::UnregisterDeviceResponse
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**certificate_info** | **String** | Device certificate information. | [optional]
|
7
|
+
**certificate_signature** | **String** | Certificate's signature. | [optional]
|
8
|
+
**created_on** | **Integer** | Device created on date. | [optional]
|
9
|
+
**dtid** | **String** | Device type id. | [optional]
|
10
|
+
**eid** | **String** | External ID of the device. | [optional]
|
11
|
+
**id** | **String** | Device id. | [optional]
|
12
|
+
**manifest_version** | **Integer** | Device manifest version. | [optional]
|
13
|
+
**manifest_version_policy** | **String** | Device manifest version policy. | [optional]
|
14
|
+
**name** | **String** | Device name. | [optional]
|
15
|
+
**need_provider_auth** | **BOOLEAN** | Device need provider auth. | [optional]
|
16
|
+
**uid** | **String** | User id. | [optional]
|
17
|
+
|
18
|
+
|
data/docs/User.md
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
# ArtikCloud::User
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**id** | **String** | |
|
7
|
+
**name** | **String** | |
|
8
|
+
**email** | **String** | |
|
9
|
+
**full_name** | **String** | |
|
10
|
+
**sa_identity** | **String** | | [optional]
|
11
|
+
**created_on** | **Integer** | |
|
12
|
+
**modified_on** | **Integer** | |
|
13
|
+
|
14
|
+
|
data/docs/UsersApi.md
ADDED
@@ -0,0 +1,474 @@
|
|
1
|
+
# ArtikCloud::UsersApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://api.artik.cloud/v1.1*
|
4
|
+
|
5
|
+
Method | HTTP request | Description
|
6
|
+
------------- | ------------- | -------------
|
7
|
+
[**create_user_properties**](UsersApi.md#create_user_properties) | **POST** /users/{userId}/properties | Create User Application Properties
|
8
|
+
[**delete_user_properties**](UsersApi.md#delete_user_properties) | **DELETE** /users/{userId}/properties | Delete User Application Properties
|
9
|
+
[**get_self**](UsersApi.md#get_self) | **GET** /users/self | Get Current User Profile
|
10
|
+
[**get_user_device_types**](UsersApi.md#get_user_device_types) | **GET** /users/{userId}/devicetypes | Get User Device Types
|
11
|
+
[**get_user_devices**](UsersApi.md#get_user_devices) | **GET** /users/{userId}/devices | Get User Devices
|
12
|
+
[**get_user_properties**](UsersApi.md#get_user_properties) | **GET** /users/{userId}/properties | Get User application properties
|
13
|
+
[**get_user_rules**](UsersApi.md#get_user_rules) | **GET** /users/{userId}/rules | Get User Rules
|
14
|
+
[**update_user_properties**](UsersApi.md#update_user_properties) | **PUT** /users/{userId}/properties | Update User Application Properties
|
15
|
+
|
16
|
+
|
17
|
+
# **create_user_properties**
|
18
|
+
> PropertiesEnvelope create_user_properties(user_id, properties, opts)
|
19
|
+
|
20
|
+
Create User Application Properties
|
21
|
+
|
22
|
+
Create application properties for a user
|
23
|
+
|
24
|
+
### Example
|
25
|
+
```ruby
|
26
|
+
# load the gem
|
27
|
+
require 'artikcloud'
|
28
|
+
# setup authorization
|
29
|
+
ArtikCloud.configure do |config|
|
30
|
+
# Configure OAuth2 access token for authorization: artikcloud_oauth
|
31
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
32
|
+
end
|
33
|
+
|
34
|
+
api_instance = ArtikCloud::UsersApi.new
|
35
|
+
|
36
|
+
user_id = "user_id_example" # String | User Id
|
37
|
+
|
38
|
+
properties = ArtikCloud::AppProperties.new # AppProperties | Properties to be updated
|
39
|
+
|
40
|
+
opts = {
|
41
|
+
aid: "aid_example" # String | Application ID
|
42
|
+
}
|
43
|
+
|
44
|
+
begin
|
45
|
+
#Create User Application Properties
|
46
|
+
result = api_instance.create_user_properties(user_id, properties, opts)
|
47
|
+
p result
|
48
|
+
rescue ArtikCloud::ApiError => e
|
49
|
+
puts "Exception when calling UsersApi->create_user_properties: #{e}"
|
50
|
+
end
|
51
|
+
```
|
52
|
+
|
53
|
+
### Parameters
|
54
|
+
|
55
|
+
Name | Type | Description | Notes
|
56
|
+
------------- | ------------- | ------------- | -------------
|
57
|
+
**user_id** | **String**| User Id |
|
58
|
+
**properties** | [**AppProperties**](AppProperties.md)| Properties to be updated |
|
59
|
+
**aid** | **String**| Application ID | [optional]
|
60
|
+
|
61
|
+
### Return type
|
62
|
+
|
63
|
+
[**PropertiesEnvelope**](PropertiesEnvelope.md)
|
64
|
+
|
65
|
+
### Authorization
|
66
|
+
|
67
|
+
[artikcloud_oauth](../README.md#artikcloud_oauth)
|
68
|
+
|
69
|
+
### HTTP reuqest headers
|
70
|
+
|
71
|
+
- **Content-Type**: application/json
|
72
|
+
- **Accept**: application/json
|
73
|
+
|
74
|
+
|
75
|
+
|
76
|
+
# **delete_user_properties**
|
77
|
+
> PropertiesEnvelope delete_user_properties(user_id, opts)
|
78
|
+
|
79
|
+
Delete User Application Properties
|
80
|
+
|
81
|
+
Deletes a user's application properties
|
82
|
+
|
83
|
+
### Example
|
84
|
+
```ruby
|
85
|
+
# load the gem
|
86
|
+
require 'artikcloud'
|
87
|
+
# setup authorization
|
88
|
+
ArtikCloud.configure do |config|
|
89
|
+
# Configure OAuth2 access token for authorization: artikcloud_oauth
|
90
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
91
|
+
end
|
92
|
+
|
93
|
+
api_instance = ArtikCloud::UsersApi.new
|
94
|
+
|
95
|
+
user_id = "user_id_example" # String | User Id
|
96
|
+
|
97
|
+
opts = {
|
98
|
+
aid: "aid_example" # String | Application ID
|
99
|
+
}
|
100
|
+
|
101
|
+
begin
|
102
|
+
#Delete User Application Properties
|
103
|
+
result = api_instance.delete_user_properties(user_id, opts)
|
104
|
+
p result
|
105
|
+
rescue ArtikCloud::ApiError => e
|
106
|
+
puts "Exception when calling UsersApi->delete_user_properties: #{e}"
|
107
|
+
end
|
108
|
+
```
|
109
|
+
|
110
|
+
### Parameters
|
111
|
+
|
112
|
+
Name | Type | Description | Notes
|
113
|
+
------------- | ------------- | ------------- | -------------
|
114
|
+
**user_id** | **String**| User Id |
|
115
|
+
**aid** | **String**| Application ID | [optional]
|
116
|
+
|
117
|
+
### Return type
|
118
|
+
|
119
|
+
[**PropertiesEnvelope**](PropertiesEnvelope.md)
|
120
|
+
|
121
|
+
### Authorization
|
122
|
+
|
123
|
+
[artikcloud_oauth](../README.md#artikcloud_oauth)
|
124
|
+
|
125
|
+
### HTTP reuqest headers
|
126
|
+
|
127
|
+
- **Content-Type**: Not defined
|
128
|
+
- **Accept**: application/json
|
129
|
+
|
130
|
+
|
131
|
+
|
132
|
+
# **get_self**
|
133
|
+
> UserEnvelope get_self
|
134
|
+
|
135
|
+
Get Current User Profile
|
136
|
+
|
137
|
+
Get's the current user's profile
|
138
|
+
|
139
|
+
### Example
|
140
|
+
```ruby
|
141
|
+
# load the gem
|
142
|
+
require 'artikcloud'
|
143
|
+
# setup authorization
|
144
|
+
ArtikCloud.configure do |config|
|
145
|
+
# Configure OAuth2 access token for authorization: artikcloud_oauth
|
146
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
147
|
+
end
|
148
|
+
|
149
|
+
api_instance = ArtikCloud::UsersApi.new
|
150
|
+
|
151
|
+
begin
|
152
|
+
#Get Current User Profile
|
153
|
+
result = api_instance.get_self
|
154
|
+
p result
|
155
|
+
rescue ArtikCloud::ApiError => e
|
156
|
+
puts "Exception when calling UsersApi->get_self: #{e}"
|
157
|
+
end
|
158
|
+
```
|
159
|
+
|
160
|
+
### Parameters
|
161
|
+
This endpoint does not need any parameter.
|
162
|
+
|
163
|
+
### Return type
|
164
|
+
|
165
|
+
[**UserEnvelope**](UserEnvelope.md)
|
166
|
+
|
167
|
+
### Authorization
|
168
|
+
|
169
|
+
[artikcloud_oauth](../README.md#artikcloud_oauth)
|
170
|
+
|
171
|
+
### HTTP reuqest headers
|
172
|
+
|
173
|
+
- **Content-Type**: Not defined
|
174
|
+
- **Accept**: application/json
|
175
|
+
|
176
|
+
|
177
|
+
|
178
|
+
# **get_user_device_types**
|
179
|
+
> DeviceTypesEnvelope get_user_device_types(user_id, opts)
|
180
|
+
|
181
|
+
Get User Device Types
|
182
|
+
|
183
|
+
Retrieve User's Device Types
|
184
|
+
|
185
|
+
### Example
|
186
|
+
```ruby
|
187
|
+
# load the gem
|
188
|
+
require 'artikcloud'
|
189
|
+
# setup authorization
|
190
|
+
ArtikCloud.configure do |config|
|
191
|
+
# Configure OAuth2 access token for authorization: artikcloud_oauth
|
192
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
193
|
+
end
|
194
|
+
|
195
|
+
api_instance = ArtikCloud::UsersApi.new
|
196
|
+
|
197
|
+
user_id = "user_id_example" # String | User ID.
|
198
|
+
|
199
|
+
opts = {
|
200
|
+
offset: 56, # Integer | Offset for pagination.
|
201
|
+
count: 56, # Integer | Desired count of items in the result set
|
202
|
+
include_shared: true # BOOLEAN | Optional. Boolean (true/false) - If false, only return the user's device types. If true, also return device types shared by other users.
|
203
|
+
}
|
204
|
+
|
205
|
+
begin
|
206
|
+
#Get User Device Types
|
207
|
+
result = api_instance.get_user_device_types(user_id, opts)
|
208
|
+
p result
|
209
|
+
rescue ArtikCloud::ApiError => e
|
210
|
+
puts "Exception when calling UsersApi->get_user_device_types: #{e}"
|
211
|
+
end
|
212
|
+
```
|
213
|
+
|
214
|
+
### Parameters
|
215
|
+
|
216
|
+
Name | Type | Description | Notes
|
217
|
+
------------- | ------------- | ------------- | -------------
|
218
|
+
**user_id** | **String**| User ID. |
|
219
|
+
**offset** | **Integer**| Offset for pagination. | [optional]
|
220
|
+
**count** | **Integer**| Desired count of items in the result set | [optional]
|
221
|
+
**include_shared** | **BOOLEAN**| Optional. Boolean (true/false) - If false, only return the user's device types. If true, also return device types shared by other users. | [optional]
|
222
|
+
|
223
|
+
### Return type
|
224
|
+
|
225
|
+
[**DeviceTypesEnvelope**](DeviceTypesEnvelope.md)
|
226
|
+
|
227
|
+
### Authorization
|
228
|
+
|
229
|
+
[artikcloud_oauth](../README.md#artikcloud_oauth)
|
230
|
+
|
231
|
+
### HTTP reuqest headers
|
232
|
+
|
233
|
+
- **Content-Type**: Not defined
|
234
|
+
- **Accept**: application/json
|
235
|
+
|
236
|
+
|
237
|
+
|
238
|
+
# **get_user_devices**
|
239
|
+
> DevicesEnvelope get_user_devices(user_id, opts)
|
240
|
+
|
241
|
+
Get User Devices
|
242
|
+
|
243
|
+
Retrieve User's Devices
|
244
|
+
|
245
|
+
### Example
|
246
|
+
```ruby
|
247
|
+
# load the gem
|
248
|
+
require 'artikcloud'
|
249
|
+
# setup authorization
|
250
|
+
ArtikCloud.configure do |config|
|
251
|
+
# Configure OAuth2 access token for authorization: artikcloud_oauth
|
252
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
253
|
+
end
|
254
|
+
|
255
|
+
api_instance = ArtikCloud::UsersApi.new
|
256
|
+
|
257
|
+
user_id = "user_id_example" # String | User ID
|
258
|
+
|
259
|
+
opts = {
|
260
|
+
offset: 56, # Integer | Offset for pagination.
|
261
|
+
count: 56, # Integer | Desired count of items in the result set
|
262
|
+
include_properties: true # BOOLEAN | Optional. Boolean (true/false) - If false, only return the user's device types. If true, also return device types shared by other users.
|
263
|
+
}
|
264
|
+
|
265
|
+
begin
|
266
|
+
#Get User Devices
|
267
|
+
result = api_instance.get_user_devices(user_id, opts)
|
268
|
+
p result
|
269
|
+
rescue ArtikCloud::ApiError => e
|
270
|
+
puts "Exception when calling UsersApi->get_user_devices: #{e}"
|
271
|
+
end
|
272
|
+
```
|
273
|
+
|
274
|
+
### Parameters
|
275
|
+
|
276
|
+
Name | Type | Description | Notes
|
277
|
+
------------- | ------------- | ------------- | -------------
|
278
|
+
**user_id** | **String**| User ID |
|
279
|
+
**offset** | **Integer**| Offset for pagination. | [optional]
|
280
|
+
**count** | **Integer**| Desired count of items in the result set | [optional]
|
281
|
+
**include_properties** | **BOOLEAN**| Optional. Boolean (true/false) - If false, only return the user's device types. If true, also return device types shared by other users. | [optional]
|
282
|
+
|
283
|
+
### Return type
|
284
|
+
|
285
|
+
[**DevicesEnvelope**](DevicesEnvelope.md)
|
286
|
+
|
287
|
+
### Authorization
|
288
|
+
|
289
|
+
[artikcloud_oauth](../README.md#artikcloud_oauth)
|
290
|
+
|
291
|
+
### HTTP reuqest headers
|
292
|
+
|
293
|
+
- **Content-Type**: Not defined
|
294
|
+
- **Accept**: application/json
|
295
|
+
|
296
|
+
|
297
|
+
|
298
|
+
# **get_user_properties**
|
299
|
+
> PropertiesEnvelope get_user_properties(user_id, opts)
|
300
|
+
|
301
|
+
Get User application properties
|
302
|
+
|
303
|
+
Get application properties of a user
|
304
|
+
|
305
|
+
### Example
|
306
|
+
```ruby
|
307
|
+
# load the gem
|
308
|
+
require 'artikcloud'
|
309
|
+
# setup authorization
|
310
|
+
ArtikCloud.configure do |config|
|
311
|
+
# Configure OAuth2 access token for authorization: artikcloud_oauth
|
312
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
313
|
+
end
|
314
|
+
|
315
|
+
api_instance = ArtikCloud::UsersApi.new
|
316
|
+
|
317
|
+
user_id = "user_id_example" # String | User Id
|
318
|
+
|
319
|
+
opts = {
|
320
|
+
aid: "aid_example" # String | Application ID
|
321
|
+
}
|
322
|
+
|
323
|
+
begin
|
324
|
+
#Get User application properties
|
325
|
+
result = api_instance.get_user_properties(user_id, opts)
|
326
|
+
p result
|
327
|
+
rescue ArtikCloud::ApiError => e
|
328
|
+
puts "Exception when calling UsersApi->get_user_properties: #{e}"
|
329
|
+
end
|
330
|
+
```
|
331
|
+
|
332
|
+
### Parameters
|
333
|
+
|
334
|
+
Name | Type | Description | Notes
|
335
|
+
------------- | ------------- | ------------- | -------------
|
336
|
+
**user_id** | **String**| User Id |
|
337
|
+
**aid** | **String**| Application ID | [optional]
|
338
|
+
|
339
|
+
### Return type
|
340
|
+
|
341
|
+
[**PropertiesEnvelope**](PropertiesEnvelope.md)
|
342
|
+
|
343
|
+
### Authorization
|
344
|
+
|
345
|
+
[artikcloud_oauth](../README.md#artikcloud_oauth)
|
346
|
+
|
347
|
+
### HTTP reuqest headers
|
348
|
+
|
349
|
+
- **Content-Type**: Not defined
|
350
|
+
- **Accept**: application/json
|
351
|
+
|
352
|
+
|
353
|
+
|
354
|
+
# **get_user_rules**
|
355
|
+
> RulesEnvelope get_user_rules(user_id, opts)
|
356
|
+
|
357
|
+
Get User Rules
|
358
|
+
|
359
|
+
Retrieve User's Rules
|
360
|
+
|
361
|
+
### Example
|
362
|
+
```ruby
|
363
|
+
# load the gem
|
364
|
+
require 'artikcloud'
|
365
|
+
# setup authorization
|
366
|
+
ArtikCloud.configure do |config|
|
367
|
+
# Configure OAuth2 access token for authorization: artikcloud_oauth
|
368
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
369
|
+
end
|
370
|
+
|
371
|
+
api_instance = ArtikCloud::UsersApi.new
|
372
|
+
|
373
|
+
user_id = "user_id_example" # String | User ID.
|
374
|
+
|
375
|
+
opts = {
|
376
|
+
exclude_disabled: true, # BOOLEAN | Exclude disabled rules in the result.
|
377
|
+
other_applications: true, # BOOLEAN | List rules of other applications if current application id has full read access
|
378
|
+
count: 56, # Integer | Desired count of items in the result set.
|
379
|
+
offset: 56 # Integer | Offset for pagination.
|
380
|
+
}
|
381
|
+
|
382
|
+
begin
|
383
|
+
#Get User Rules
|
384
|
+
result = api_instance.get_user_rules(user_id, opts)
|
385
|
+
p result
|
386
|
+
rescue ArtikCloud::ApiError => e
|
387
|
+
puts "Exception when calling UsersApi->get_user_rules: #{e}"
|
388
|
+
end
|
389
|
+
```
|
390
|
+
|
391
|
+
### Parameters
|
392
|
+
|
393
|
+
Name | Type | Description | Notes
|
394
|
+
------------- | ------------- | ------------- | -------------
|
395
|
+
**user_id** | **String**| User ID. |
|
396
|
+
**exclude_disabled** | **BOOLEAN**| Exclude disabled rules in the result. | [optional]
|
397
|
+
**other_applications** | **BOOLEAN**| List rules of other applications if current application id has full read access | [optional]
|
398
|
+
**count** | [**Integer**](.md)| Desired count of items in the result set. | [optional]
|
399
|
+
**offset** | [**Integer**](.md)| Offset for pagination. | [optional]
|
400
|
+
|
401
|
+
### Return type
|
402
|
+
|
403
|
+
[**RulesEnvelope**](RulesEnvelope.md)
|
404
|
+
|
405
|
+
### Authorization
|
406
|
+
|
407
|
+
[artikcloud_oauth](../README.md#artikcloud_oauth)
|
408
|
+
|
409
|
+
### HTTP reuqest headers
|
410
|
+
|
411
|
+
- **Content-Type**: Not defined
|
412
|
+
- **Accept**: application/json
|
413
|
+
|
414
|
+
|
415
|
+
|
416
|
+
# **update_user_properties**
|
417
|
+
> PropertiesEnvelope update_user_properties(user_id, properties, opts)
|
418
|
+
|
419
|
+
Update User Application Properties
|
420
|
+
|
421
|
+
Updates application properties of a user
|
422
|
+
|
423
|
+
### Example
|
424
|
+
```ruby
|
425
|
+
# load the gem
|
426
|
+
require 'artikcloud'
|
427
|
+
# setup authorization
|
428
|
+
ArtikCloud.configure do |config|
|
429
|
+
# Configure OAuth2 access token for authorization: artikcloud_oauth
|
430
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
431
|
+
end
|
432
|
+
|
433
|
+
api_instance = ArtikCloud::UsersApi.new
|
434
|
+
|
435
|
+
user_id = "user_id_example" # String | User Id
|
436
|
+
|
437
|
+
properties = ArtikCloud::AppProperties.new # AppProperties | Properties to be updated
|
438
|
+
|
439
|
+
opts = {
|
440
|
+
aid: "aid_example" # String | Application ID
|
441
|
+
}
|
442
|
+
|
443
|
+
begin
|
444
|
+
#Update User Application Properties
|
445
|
+
result = api_instance.update_user_properties(user_id, properties, opts)
|
446
|
+
p result
|
447
|
+
rescue ArtikCloud::ApiError => e
|
448
|
+
puts "Exception when calling UsersApi->update_user_properties: #{e}"
|
449
|
+
end
|
450
|
+
```
|
451
|
+
|
452
|
+
### Parameters
|
453
|
+
|
454
|
+
Name | Type | Description | Notes
|
455
|
+
------------- | ------------- | ------------- | -------------
|
456
|
+
**user_id** | **String**| User Id |
|
457
|
+
**properties** | [**AppProperties**](AppProperties.md)| Properties to be updated |
|
458
|
+
**aid** | **String**| Application ID | [optional]
|
459
|
+
|
460
|
+
### Return type
|
461
|
+
|
462
|
+
[**PropertiesEnvelope**](PropertiesEnvelope.md)
|
463
|
+
|
464
|
+
### Authorization
|
465
|
+
|
466
|
+
[artikcloud_oauth](../README.md#artikcloud_oauth)
|
467
|
+
|
468
|
+
### HTTP reuqest headers
|
469
|
+
|
470
|
+
- **Content-Type**: application/json
|
471
|
+
- **Accept**: application/json
|
472
|
+
|
473
|
+
|
474
|
+
|
@@ -0,0 +1,10 @@
|
|
1
|
+
# ArtikCloud::WebSocketError
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**message** | **String** | Message. | [optional]
|
7
|
+
**code** | **Integer** | Code | [optional]
|
8
|
+
**cid** | **String** | Confirmation ID | [optional]
|
9
|
+
|
10
|
+
|