smooch-api 1.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 +7 -0
- data/README.md +181 -0
- data/Rakefile +8 -0
- data/docs/Action.md +16 -0
- data/docs/App.md +10 -0
- data/docs/AppApi.md +609 -0
- data/docs/AppCreate.md +8 -0
- data/docs/AppResponse.md +8 -0
- data/docs/AppUser.md +18 -0
- data/docs/AppUserApi.md +561 -0
- data/docs/AppUserLink.md +9 -0
- data/docs/AppUserPreCreate.md +14 -0
- data/docs/AppUserResponse.md +8 -0
- data/docs/AppUserUpdate.md +12 -0
- data/docs/Client.md +14 -0
- data/docs/ClientInfo.md +15 -0
- data/docs/Conversation.md +9 -0
- data/docs/ConversationApi.md +282 -0
- data/docs/Destination.md +9 -0
- data/docs/DeviceInit.md +12 -0
- data/docs/DeviceResponse.md +8 -0
- data/docs/DeviceUpdate.md +10 -0
- data/docs/DisplaySettings.md +8 -0
- data/docs/Event.md +8 -0
- data/docs/GetMessagesResponse.md +10 -0
- data/docs/Init.md +9 -0
- data/docs/InitApi.md +61 -0
- data/docs/InitResponse.md +9 -0
- data/docs/Integration.md +24 -0
- data/docs/IntegrationApi.md +121 -0
- data/docs/IntegrationCreate.md +23 -0
- data/docs/IntegrationResponse.md +8 -0
- data/docs/JwtResponse.md +8 -0
- data/docs/ListAppsResponse.md +10 -0
- data/docs/ListIntegrationsResponse.md +8 -0
- data/docs/ListSecretKeysResponse.md +8 -0
- data/docs/ListWebhooksResponse.md +8 -0
- data/docs/Menu.md +9 -0
- data/docs/MenuApi.md +155 -0
- data/docs/MenuItem.md +11 -0
- data/docs/MenuResponse.md +8 -0
- data/docs/Message.md +23 -0
- data/docs/MessageItem.md +13 -0
- data/docs/MessagePost.md +20 -0
- data/docs/MessageResponse.md +9 -0
- data/docs/PostMessagesResponse.md +9 -0
- data/docs/SecretKey.md +10 -0
- data/docs/SecretKeyCreate.md +8 -0
- data/docs/SecretKeyResponse.md +8 -0
- data/docs/TrackEventResponse.md +8 -0
- data/docs/TypingActivityTrigger.md +11 -0
- data/docs/Webhook.md +11 -0
- data/docs/WebhookApi.md +287 -0
- data/docs/WebhookCreate.md +9 -0
- data/docs/WebhookResponse.md +8 -0
- data/docs/WebhookUpdate.md +9 -0
- data/git_push.sh +55 -0
- data/lib/smooch-api.rb +91 -0
- data/lib/smooch-api/api/app_api.rb +628 -0
- data/lib/smooch-api/api/app_user_api.rb +585 -0
- data/lib/smooch-api/api/conversation_api.rb +298 -0
- data/lib/smooch-api/api/init_api.rb +75 -0
- data/lib/smooch-api/api/integration_api.rb +135 -0
- data/lib/smooch-api/api/menu_api.rb +173 -0
- data/lib/smooch-api/api/webhook_api.rb +306 -0
- data/lib/smooch-api/api_client.rb +376 -0
- data/lib/smooch-api/api_error.rb +37 -0
- data/lib/smooch-api/configuration.rb +202 -0
- data/lib/smooch-api/models/action.rb +311 -0
- data/lib/smooch-api/models/app.rb +223 -0
- data/lib/smooch-api/models/app_create.rb +193 -0
- data/lib/smooch-api/models/app_response.rb +188 -0
- data/lib/smooch-api/models/app_user.rb +307 -0
- data/lib/smooch-api/models/app_user_link.rb +236 -0
- data/lib/smooch-api/models/app_user_pre_create.rb +253 -0
- data/lib/smooch-api/models/app_user_response.rb +193 -0
- data/lib/smooch-api/models/app_user_update.rb +228 -0
- data/lib/smooch-api/models/client.rb +290 -0
- data/lib/smooch-api/models/client_info.rb +258 -0
- data/lib/smooch-api/models/conversation.rb +208 -0
- data/lib/smooch-api/models/destination.rb +208 -0
- data/lib/smooch-api/models/device_init.rb +270 -0
- data/lib/smooch-api/models/device_response.rb +188 -0
- data/lib/smooch-api/models/device_update.rb +207 -0
- data/lib/smooch-api/models/display_settings.rb +188 -0
- data/lib/smooch-api/models/event.rb +193 -0
- data/lib/smooch-api/models/get_messages_response.rb +210 -0
- data/lib/smooch-api/models/init.rb +202 -0
- data/lib/smooch-api/models/init_response.rb +208 -0
- data/lib/smooch-api/models/integration.rb +358 -0
- data/lib/smooch-api/models/integration_create.rb +343 -0
- data/lib/smooch-api/models/integration_response.rb +188 -0
- data/lib/smooch-api/models/jwt_response.rb +188 -0
- data/lib/smooch-api/models/list_apps_response.rb +210 -0
- data/lib/smooch-api/models/list_integrations_response.rb +190 -0
- data/lib/smooch-api/models/list_secret_keys_response.rb +190 -0
- data/lib/smooch-api/models/list_webhooks_response.rb +195 -0
- data/lib/smooch-api/models/menu.rb +205 -0
- data/lib/smooch-api/models/menu_item.rb +228 -0
- data/lib/smooch-api/models/menu_response.rb +193 -0
- data/lib/smooch-api/models/message.rb +415 -0
- data/lib/smooch-api/models/message_item.rb +250 -0
- data/lib/smooch-api/models/message_post.rb +355 -0
- data/lib/smooch-api/models/message_response.rb +208 -0
- data/lib/smooch-api/models/post_messages_response.rb +200 -0
- data/lib/smooch-api/models/secret_key.rb +223 -0
- data/lib/smooch-api/models/secret_key_create.rb +193 -0
- data/lib/smooch-api/models/secret_key_response.rb +188 -0
- data/lib/smooch-api/models/track_event_response.rb +188 -0
- data/lib/smooch-api/models/typing_activity_trigger.rb +228 -0
- data/lib/smooch-api/models/webhook.rb +261 -0
- data/lib/smooch-api/models/webhook_create.rb +226 -0
- data/lib/smooch-api/models/webhook_response.rb +193 -0
- data/lib/smooch-api/models/webhook_update.rb +221 -0
- data/lib/smooch-api/version.rb +14 -0
- data/smooch-api.gemspec +44 -0
- data/spec/api_client_spec.rb +225 -0
- data/spec/configuration_spec.rb +41 -0
- data/spec/spec_helper.rb +110 -0
- metadata +349 -0
data/docs/AppUserLink.md
ADDED
@@ -0,0 +1,9 @@
|
|
1
|
+
# SmoochApi::AppUserLink
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**type** | **String** | The type of the channel to link. |
|
7
|
+
**skip_confirmation** | **String** | Flag indicating if the linking confirmation should be skipped. | [optional]
|
8
|
+
|
9
|
+
|
@@ -0,0 +1,14 @@
|
|
1
|
+
# SmoochApi::AppUserPreCreate
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**user_id** | **String** | The app user's userId. This ID is specified by the appMaker. |
|
7
|
+
**credential_required** | **BOOLEAN** | Flag indicating if the appUser is secured by a JSON Web Token or not. | [optional]
|
8
|
+
**given_name** | **String** | The app user's given name. | [optional]
|
9
|
+
**surname** | **String** | The app user's surname. | [optional]
|
10
|
+
**email** | **String** | The app user's email. | [optional]
|
11
|
+
**signed_up_at** | **String** | A datetime string with the format *yyyy-mm-ddThh:mm:ssZ* representing the moment an appUser was created. | [optional]
|
12
|
+
**properties** | **Object** | Custom properties for the app user. | [optional]
|
13
|
+
|
14
|
+
|
@@ -0,0 +1,12 @@
|
|
1
|
+
# SmoochApi::AppUserUpdate
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**given_name** | **String** | The app user's given name. | [optional]
|
7
|
+
**surname** | **String** | The app user's surname. | [optional]
|
8
|
+
**email** | **String** | The app user's email. | [optional]
|
9
|
+
**signed_up_at** | **String** | A datetime string with the format *yyyy-mm-ddThh:mm:ssZ* representing the moment an appUser was created. | [optional]
|
10
|
+
**properties** | **Object** | Custom properties for the app user. | [optional]
|
11
|
+
|
12
|
+
|
data/docs/Client.md
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
# SmoochApi::Client
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**id** | **String** | An identifier for the client. Must be globally unique. |
|
7
|
+
**active** | **BOOLEAN** | Flag indicating if the client is active. | [optional]
|
8
|
+
**last_seen** | **String** | The date time the client was last seen. | [optional]
|
9
|
+
**platform** | **String** | The client's platform. |
|
10
|
+
**push_notification_token** | **String** | The GCM or APN token to be used for sending push notifications to the device. Applies to only *android* and *ios* clients. | [optional]
|
11
|
+
**app_version** | **String** | A reserved string field for reporting the app version running on the device. | [optional]
|
12
|
+
**info** | [**ClientInfo**](ClientInfo.md) | | [optional]
|
13
|
+
|
14
|
+
|
data/docs/ClientInfo.md
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
# SmoochApi::ClientInfo
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**app_name** | **String** | Name of the app associated with the client. | [optional]
|
7
|
+
**device_model** | **String** | The client's device model. | [optional]
|
8
|
+
**os** | **String** | The client's OS. | [optional]
|
9
|
+
**os_version** | **String** | The client's OS version. | [optional]
|
10
|
+
**radio_access_technology** | **String** | The client's radioAccessTechnology (Ex. HSDPA). | [optional]
|
11
|
+
**carrier** | **String** | The client's carrier. | [optional]
|
12
|
+
**device_platform** | **String** | The client's device platform. | [optional]
|
13
|
+
**wifi** | **String** | Whether or not the client has wifi. | [optional]
|
14
|
+
|
15
|
+
|
@@ -0,0 +1,9 @@
|
|
1
|
+
# SmoochApi::Conversation
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**_id** | **String** | The conversation ID, generated automatically. |
|
7
|
+
**unread_count** | **Integer** | The number of unread messages in the conversation. |
|
8
|
+
|
9
|
+
|
@@ -0,0 +1,282 @@
|
|
1
|
+
# SmoochApi::ConversationApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://api.smooch.io/v1*
|
4
|
+
|
5
|
+
Method | HTTP request | Description
|
6
|
+
------------- | ------------- | -------------
|
7
|
+
[**delete_messages**](ConversationApi.md#delete_messages) | **DELETE** /appusers/{userId}/messages |
|
8
|
+
[**get_messages**](ConversationApi.md#get_messages) | **GET** /appusers/{userId}/messages |
|
9
|
+
[**post_message**](ConversationApi.md#post_message) | **POST** /appusers/{userId}/messages |
|
10
|
+
[**reset_unread_count**](ConversationApi.md#reset_unread_count) | **POST** /appusers/{userId}/conversation/read |
|
11
|
+
[**trigger_typing_activity**](ConversationApi.md#trigger_typing_activity) | **POST** /appusers/{userId}/conversation/activity |
|
12
|
+
|
13
|
+
|
14
|
+
# **delete_messages**
|
15
|
+
> delete_messages(user_id, )
|
16
|
+
|
17
|
+
|
18
|
+
|
19
|
+
Clears the message history for a user, permanently deleting all messages, but leaving any connections to Messaging Channels and Business Systems intact. These connections allow for the conversation to continue in the future, while still being associated to the same appUser.
|
20
|
+
|
21
|
+
### Example
|
22
|
+
```ruby
|
23
|
+
# load the gem
|
24
|
+
require 'smooch-api'
|
25
|
+
# setup authorization
|
26
|
+
SmoochApi.configure do |config|
|
27
|
+
# Configure API key authorization: jwt
|
28
|
+
config.api_key['Authorization'] = 'YOUR JWT'
|
29
|
+
config.api_key_prefix['Authorization'] = 'Bearer'
|
30
|
+
end
|
31
|
+
|
32
|
+
api_instance = SmoochApi::ConversationApi.new
|
33
|
+
|
34
|
+
user_id = "user_id_example" # String | Identifies the user. Can be either the smoochId or the userId.
|
35
|
+
|
36
|
+
|
37
|
+
begin
|
38
|
+
api_instance.delete_messages(user_id, )
|
39
|
+
rescue SmoochApi::ApiError => e
|
40
|
+
puts "Exception when calling ConversationApi->delete_messages: #{e}"
|
41
|
+
end
|
42
|
+
```
|
43
|
+
|
44
|
+
### Parameters
|
45
|
+
|
46
|
+
Name | Type | Description | Notes
|
47
|
+
------------- | ------------- | ------------- | -------------
|
48
|
+
**user_id** | **String**| Identifies the user. Can be either the smoochId or the userId. |
|
49
|
+
|
50
|
+
### Return type
|
51
|
+
|
52
|
+
nil (empty response body)
|
53
|
+
|
54
|
+
### Authorization
|
55
|
+
|
56
|
+
[jwt](../README.md#jwt)
|
57
|
+
|
58
|
+
### HTTP request headers
|
59
|
+
|
60
|
+
- **Content-Type**: application/json
|
61
|
+
- **Accept**: application/json
|
62
|
+
|
63
|
+
|
64
|
+
|
65
|
+
# **get_messages**
|
66
|
+
> GetMessagesResponse get_messages(user_id, , opts)
|
67
|
+
|
68
|
+
|
69
|
+
|
70
|
+
Get the specified app user's messages.
|
71
|
+
|
72
|
+
### Example
|
73
|
+
```ruby
|
74
|
+
# load the gem
|
75
|
+
require 'smooch-api'
|
76
|
+
# setup authorization
|
77
|
+
SmoochApi.configure do |config|
|
78
|
+
# Configure API key authorization: jwt
|
79
|
+
config.api_key['Authorization'] = 'YOUR JWT'
|
80
|
+
config.api_key_prefix['Authorization'] = 'Bearer'
|
81
|
+
end
|
82
|
+
|
83
|
+
api_instance = SmoochApi::ConversationApi.new
|
84
|
+
|
85
|
+
user_id = "user_id_example" # String | Identifies the user. Can be either the smoochId or the userId.
|
86
|
+
|
87
|
+
opts = {
|
88
|
+
before: "before_example", # String | Timestamp of message. The API will return 100 messages before the specified timestamp (excluding any messages with the provided timestamp).
|
89
|
+
after: "after_example" # String | Timestamp of message. The API will return 100 messages after the specified timestamp (excluding any messages with the provided timestamp).
|
90
|
+
}
|
91
|
+
|
92
|
+
begin
|
93
|
+
result = api_instance.get_messages(user_id, , opts)
|
94
|
+
p result
|
95
|
+
rescue SmoochApi::ApiError => e
|
96
|
+
puts "Exception when calling ConversationApi->get_messages: #{e}"
|
97
|
+
end
|
98
|
+
```
|
99
|
+
|
100
|
+
### Parameters
|
101
|
+
|
102
|
+
Name | Type | Description | Notes
|
103
|
+
------------- | ------------- | ------------- | -------------
|
104
|
+
**user_id** | **String**| Identifies the user. Can be either the smoochId or the userId. |
|
105
|
+
**before** | **String**| Timestamp of message. The API will return 100 messages before the specified timestamp (excluding any messages with the provided timestamp). | [optional]
|
106
|
+
**after** | **String**| Timestamp of message. The API will return 100 messages after the specified timestamp (excluding any messages with the provided timestamp). | [optional]
|
107
|
+
|
108
|
+
### Return type
|
109
|
+
|
110
|
+
[**GetMessagesResponse**](GetMessagesResponse.md)
|
111
|
+
|
112
|
+
### Authorization
|
113
|
+
|
114
|
+
[jwt](../README.md#jwt)
|
115
|
+
|
116
|
+
### HTTP request headers
|
117
|
+
|
118
|
+
- **Content-Type**: application/json
|
119
|
+
- **Accept**: application/json
|
120
|
+
|
121
|
+
|
122
|
+
|
123
|
+
# **post_message**
|
124
|
+
> PostMessagesResponse post_message(user_id, message_post_body)
|
125
|
+
|
126
|
+
|
127
|
+
|
128
|
+
Post a message to or from the app user.
|
129
|
+
|
130
|
+
### Example
|
131
|
+
```ruby
|
132
|
+
# load the gem
|
133
|
+
require 'smooch-api'
|
134
|
+
# setup authorization
|
135
|
+
SmoochApi.configure do |config|
|
136
|
+
# Configure API key authorization: jwt
|
137
|
+
config.api_key['Authorization'] = 'YOUR JWT'
|
138
|
+
config.api_key_prefix['Authorization'] = 'Bearer'
|
139
|
+
end
|
140
|
+
|
141
|
+
api_instance = SmoochApi::ConversationApi.new
|
142
|
+
|
143
|
+
user_id = "user_id_example" # String | Identifies the user. Can be either the smoochId or the userId.
|
144
|
+
|
145
|
+
message_post_body = SmoochApi::MessagePost.new # MessagePost | Body for a postMessage request. Additional arguments are necessary based on message type ([text](https://docs.smooch.io/rest#text-message), [image](https://docs.smooch.io/rest#image-message), [carousel](https://docs.smooch.io/rest#carousel-message), [list](https://docs.smooch.io/rest#list-message))
|
146
|
+
|
147
|
+
|
148
|
+
begin
|
149
|
+
result = api_instance.post_message(user_id, message_post_body)
|
150
|
+
p result
|
151
|
+
rescue SmoochApi::ApiError => e
|
152
|
+
puts "Exception when calling ConversationApi->post_message: #{e}"
|
153
|
+
end
|
154
|
+
```
|
155
|
+
|
156
|
+
### Parameters
|
157
|
+
|
158
|
+
Name | Type | Description | Notes
|
159
|
+
------------- | ------------- | ------------- | -------------
|
160
|
+
**user_id** | **String**| Identifies the user. Can be either the smoochId or the userId. |
|
161
|
+
**message_post_body** | [**MessagePost**](MessagePost.md)| Body for a postMessage request. Additional arguments are necessary based on message type ([text](https://docs.smooch.io/rest#text-message), [image](https://docs.smooch.io/rest#image-message), [carousel](https://docs.smooch.io/rest#carousel-message), [list](https://docs.smooch.io/rest#list-message)) |
|
162
|
+
|
163
|
+
### Return type
|
164
|
+
|
165
|
+
[**PostMessagesResponse**](PostMessagesResponse.md)
|
166
|
+
|
167
|
+
### Authorization
|
168
|
+
|
169
|
+
[jwt](../README.md#jwt)
|
170
|
+
|
171
|
+
### HTTP request headers
|
172
|
+
|
173
|
+
- **Content-Type**: application/json
|
174
|
+
- **Accept**: application/json
|
175
|
+
|
176
|
+
|
177
|
+
|
178
|
+
# **reset_unread_count**
|
179
|
+
> reset_unread_count(user_id, )
|
180
|
+
|
181
|
+
|
182
|
+
|
183
|
+
Reset the unread count of the conversation to 0.
|
184
|
+
|
185
|
+
### Example
|
186
|
+
```ruby
|
187
|
+
# load the gem
|
188
|
+
require 'smooch-api'
|
189
|
+
# setup authorization
|
190
|
+
SmoochApi.configure do |config|
|
191
|
+
# Configure API key authorization: jwt
|
192
|
+
config.api_key['Authorization'] = 'YOUR JWT'
|
193
|
+
config.api_key_prefix['Authorization'] = 'Bearer'
|
194
|
+
end
|
195
|
+
|
196
|
+
api_instance = SmoochApi::ConversationApi.new
|
197
|
+
|
198
|
+
user_id = "user_id_example" # String | Identifies the user. Can be either the smoochId or the userId.
|
199
|
+
|
200
|
+
|
201
|
+
begin
|
202
|
+
api_instance.reset_unread_count(user_id, )
|
203
|
+
rescue SmoochApi::ApiError => e
|
204
|
+
puts "Exception when calling ConversationApi->reset_unread_count: #{e}"
|
205
|
+
end
|
206
|
+
```
|
207
|
+
|
208
|
+
### Parameters
|
209
|
+
|
210
|
+
Name | Type | Description | Notes
|
211
|
+
------------- | ------------- | ------------- | -------------
|
212
|
+
**user_id** | **String**| Identifies the user. Can be either the smoochId or the userId. |
|
213
|
+
|
214
|
+
### Return type
|
215
|
+
|
216
|
+
nil (empty response body)
|
217
|
+
|
218
|
+
### Authorization
|
219
|
+
|
220
|
+
[jwt](../README.md#jwt)
|
221
|
+
|
222
|
+
### HTTP request headers
|
223
|
+
|
224
|
+
- **Content-Type**: application/json
|
225
|
+
- **Accept**: application/json
|
226
|
+
|
227
|
+
|
228
|
+
|
229
|
+
# **trigger_typing_activity**
|
230
|
+
> trigger_typing_activity(user_id, typing_activity_trigger_body)
|
231
|
+
|
232
|
+
|
233
|
+
|
234
|
+
Notify Smooch when an app maker starts or stops typing a response.
|
235
|
+
|
236
|
+
### Example
|
237
|
+
```ruby
|
238
|
+
# load the gem
|
239
|
+
require 'smooch-api'
|
240
|
+
# setup authorization
|
241
|
+
SmoochApi.configure do |config|
|
242
|
+
# Configure API key authorization: jwt
|
243
|
+
config.api_key['Authorization'] = 'YOUR JWT'
|
244
|
+
config.api_key_prefix['Authorization'] = 'Bearer'
|
245
|
+
end
|
246
|
+
|
247
|
+
api_instance = SmoochApi::ConversationApi.new
|
248
|
+
|
249
|
+
user_id = "user_id_example" # String | Identifies the user. Can be either the smoochId or the userId.
|
250
|
+
|
251
|
+
typing_activity_trigger_body = SmoochApi::TypingActivityTrigger.new # TypingActivityTrigger | Body for a triggerTypingActivity request.
|
252
|
+
|
253
|
+
|
254
|
+
begin
|
255
|
+
api_instance.trigger_typing_activity(user_id, typing_activity_trigger_body)
|
256
|
+
rescue SmoochApi::ApiError => e
|
257
|
+
puts "Exception when calling ConversationApi->trigger_typing_activity: #{e}"
|
258
|
+
end
|
259
|
+
```
|
260
|
+
|
261
|
+
### Parameters
|
262
|
+
|
263
|
+
Name | Type | Description | Notes
|
264
|
+
------------- | ------------- | ------------- | -------------
|
265
|
+
**user_id** | **String**| Identifies the user. Can be either the smoochId or the userId. |
|
266
|
+
**typing_activity_trigger_body** | [**TypingActivityTrigger**](TypingActivityTrigger.md)| Body for a triggerTypingActivity request. |
|
267
|
+
|
268
|
+
### Return type
|
269
|
+
|
270
|
+
nil (empty response body)
|
271
|
+
|
272
|
+
### Authorization
|
273
|
+
|
274
|
+
[jwt](../README.md#jwt)
|
275
|
+
|
276
|
+
### HTTP request headers
|
277
|
+
|
278
|
+
- **Content-Type**: application/json
|
279
|
+
- **Accept**: application/json
|
280
|
+
|
281
|
+
|
282
|
+
|
data/docs/Destination.md
ADDED
@@ -0,0 +1,9 @@
|
|
1
|
+
# SmoochApi::Destination
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**integration_id** | **String** | The ID of the target integration. |
|
7
|
+
**integration_type** | **String** | The type of the target integration. |
|
8
|
+
|
9
|
+
|
data/docs/DeviceInit.md
ADDED
@@ -0,0 +1,12 @@
|
|
1
|
+
# SmoochApi::DeviceInit
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**id** | **String** | An identifier for the client. Must be globally unique. |
|
7
|
+
**platform** | **String** | The client's platform. |
|
8
|
+
**push_notification_token** | **String** | The GCM or APN token to be used for sending push notifications to the device. Applies to only *android* and *ios* clients. | [optional]
|
9
|
+
**app_version** | **String** | A reserved string field for reporting the app version running on the device. | [optional]
|
10
|
+
**info** | [**ClientInfo**](ClientInfo.md) | | [optional]
|
11
|
+
|
12
|
+
|
@@ -0,0 +1,10 @@
|
|
1
|
+
# SmoochApi::DeviceUpdate
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**push_notification_token** | **String** | The GCM or APN token to be used for sending push notifications to the device. Applies to only *android* and *ios* clients. | [optional]
|
7
|
+
**app_version** | **String** | A reserved string field for reporting the app version running on the device. | [optional]
|
8
|
+
**info** | [**ClientInfo**](ClientInfo.md) | | [optional]
|
9
|
+
|
10
|
+
|
@@ -0,0 +1,8 @@
|
|
1
|
+
# SmoochApi::DisplaySettings
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**image_aspect_ratio** | **String** | Specifies how to display all carousel images. Valid values are *horizontal* (default) and *square*. | [optional]
|
7
|
+
|
8
|
+
|
data/docs/Event.md
ADDED
@@ -0,0 +1,10 @@
|
|
1
|
+
# SmoochApi::GetMessagesResponse
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**conversation** | [**Conversation**](Conversation.md) | The conversation. | [optional]
|
7
|
+
**messages** | [**Array<Message>**](Message.md) | The messages. | [optional]
|
8
|
+
**_next** | **String** | The URI for the next set of messages in the conversation. | [optional]
|
9
|
+
|
10
|
+
|