purecloud 0.37.1 → 0.38.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -3
- data/config-ruby.json +1 -1
- data/doc_out/AuthorizationApi.html.md +57 -0
- data/doc_out/AuthzGrant.html.md +15 -0
- data/doc_out/AuthzGrantPolicy.html.md +16 -0
- data/doc_out/AuthzGrantRole.html.md +17 -0
- data/doc_out/AuthzObject.html.md +17 -0
- data/doc_out/AuthzPermissionContext.html.md +14 -0
- data/doc_out/AuthzSubject.html.md +16 -0
- data/doc_out/CreateUser.html.md +0 -1
- data/doc_out/ExportUri.html.md +14 -0
- data/doc_out/FaxSendRequest.html.md +5 -5
- data/doc_out/GroupsApi.html.md +119 -0
- data/doc_out/JsonNode.html.md +2 -2
- data/doc_out/Location.html.md +20 -0
- data/doc_out/LocationAddress.html.md +19 -0
- data/doc_out/LocationEmergencyNumber.html.md +15 -0
- data/doc_out/LocationsApi.html.md +249 -0
- data/doc_out/ObjectsApi.html.md +69 -0
- data/doc_out/OrganizationCreate.html.md +5 -5
- data/doc_out/OutboundApi.html.md +122 -0
- data/doc_out/SearchApi.html.md +254 -12
- data/doc_out/SuggestApi.html.md +254 -0
- data/doc_out/User.html.md +1 -1
- data/doc_out/UserMe.html.md +1 -1
- data/doc_out/UserPresence.html.md +1 -0
- data/doc_out/index.html.md +3 -3
- data/lib/purecloud.rb +13 -1
- data/lib/purecloud/api/authorization_api.rb +60 -0
- data/lib/purecloud/api/groups_api.rb +126 -0
- data/lib/purecloud/api/locations_api.rb +273 -0
- data/lib/purecloud/api/objects_api.rb +87 -0
- data/lib/purecloud/api/outbound_api.rb +126 -0
- data/lib/purecloud/api/search_api.rb +259 -14
- data/lib/purecloud/api/suggest_api.rb +272 -0
- data/lib/purecloud/api_client.rb +1 -1
- data/lib/purecloud/models/authz_grant.rb +186 -0
- data/lib/purecloud/models/authz_grant_policy.rb +197 -0
- data/lib/purecloud/models/authz_grant_role.rb +209 -0
- data/lib/purecloud/models/authz_object.rb +210 -0
- data/lib/purecloud/models/authz_permission_context.rb +175 -0
- data/lib/purecloud/models/authz_subject.rb +199 -0
- data/lib/purecloud/models/callback.rb +1 -1
- data/lib/purecloud/models/create_user.rb +4 -15
- data/lib/purecloud/models/export_uri.rb +176 -0
- data/lib/purecloud/models/fax_send_request.rb +21 -7
- data/lib/purecloud/models/group.rb +1 -1
- data/lib/purecloud/models/json_node.rb +25 -25
- data/lib/purecloud/models/location.rb +249 -0
- data/lib/purecloud/models/location_address.rb +225 -0
- data/lib/purecloud/models/location_emergency_number.rb +195 -0
- data/lib/purecloud/models/organization_create.rb +5 -5
- data/lib/purecloud/models/search_criteria.rb +1 -1
- data/lib/purecloud/models/user.rb +1 -1
- data/lib/purecloud/models/user_me.rb +1 -1
- data/lib/purecloud/models/user_presence.rb +12 -1
- data/lib/purecloud/version.rb +1 -1
- data/newVersion.md +1 -1
- data/swagger.json +1 -1
- data/version.json +1 -1
- metadata +28 -4
- data/doc_out/ExternalContactsApi.html.md +0 -1594
- data/lib/purecloud/api/external_contacts_api.rb +0 -1679
data/doc_out/SearchApi.html.md
CHANGED
@@ -9,11 +9,15 @@ All URIs are relative to *https://api.mypurecloud.com*
|
|
9
9
|
Method | HTTP request | Description
|
10
10
|
------------- | ------------- | -------------
|
11
11
|
|[**get_search**](SearchApi.html#get_search) | **GET** /api/v2/groups/search | Search using q64|
|
12
|
-
|[**get_search_0**](SearchApi.html#get_search_0) | **GET** /api/v2/search | Search using q64|
|
13
|
-
|[**get_search_1**](SearchApi.html#get_search_1) | **GET** /api/v2/
|
12
|
+
|[**get_search_0**](SearchApi.html#get_search_0) | **GET** /api/v2/locations/search | Search using q64|
|
13
|
+
|[**get_search_1**](SearchApi.html#get_search_1) | **GET** /api/v2/search | Search using q64|
|
14
|
+
|[**get_search_2**](SearchApi.html#get_search_2) | **GET** /api/v2/users/search | Search using q64|
|
15
|
+
|[**get_suggest**](SearchApi.html#get_suggest) | **GET** /api/v2/search/suggest | Suggest using q64|
|
14
16
|
|[**post_search**](SearchApi.html#post_search) | **POST** /api/v2/groups/search | Search|
|
15
|
-
|[**post_search_0**](SearchApi.html#post_search_0) | **POST** /api/v2/search | Search|
|
16
|
-
|[**post_search_1**](SearchApi.html#post_search_1) | **POST** /api/v2/
|
17
|
+
|[**post_search_0**](SearchApi.html#post_search_0) | **POST** /api/v2/locations/search | Search|
|
18
|
+
|[**post_search_1**](SearchApi.html#post_search_1) | **POST** /api/v2/search | Search|
|
19
|
+
|[**post_search_2**](SearchApi.html#post_search_2) | **POST** /api/v2/users/search | Search|
|
20
|
+
|[**post_suggest**](SearchApi.html#post_suggest) | **POST** /api/v2/search/suggest | Suggest|
|
17
21
|
{: class="table table-striped"}
|
18
22
|
|
19
23
|
<a name="get_search"></a>
|
@@ -77,7 +81,7 @@ Name | Type | Description | Notes
|
|
77
81
|
|
78
82
|
<a name="get_search_0"></a>
|
79
83
|
|
80
|
-
## -[**
|
84
|
+
## -[**GroupsSearchResponse**](GroupsSearchResponse.html) get_search_0(opts)
|
81
85
|
|
82
86
|
Search using q64
|
83
87
|
|
@@ -125,7 +129,7 @@ Name | Type | Description | Notes
|
|
125
129
|
|
126
130
|
### Return type
|
127
131
|
|
128
|
-
[**
|
132
|
+
[**GroupsSearchResponse**](GroupsSearchResponse.html)
|
129
133
|
|
130
134
|
### HTTP request headers
|
131
135
|
|
@@ -136,7 +140,7 @@ Name | Type | Description | Notes
|
|
136
140
|
|
137
141
|
<a name="get_search_1"></a>
|
138
142
|
|
139
|
-
## -[**
|
143
|
+
## -[**JsonNodeSearchResponse**](JsonNodeSearchResponse.html) get_search_1(opts)
|
140
144
|
|
141
145
|
Search using q64
|
142
146
|
|
@@ -161,7 +165,8 @@ api_instance = PureCloud::SearchApi.new
|
|
161
165
|
|
162
166
|
opts = {
|
163
167
|
q64: "q64_example", # String |
|
164
|
-
expand: ["expand_example"] # Array<String> |
|
168
|
+
expand: ["expand_example"], # Array<String> |
|
169
|
+
profile: true # BOOLEAN |
|
165
170
|
}
|
166
171
|
|
167
172
|
begin
|
@@ -175,6 +180,66 @@ end
|
|
175
180
|
|
176
181
|
### Parameters
|
177
182
|
|
183
|
+
Name | Type | Description | Notes
|
184
|
+
------------- | ------------- | ------------- | -------------
|
185
|
+
**q64** | **String**| | [optional]
|
186
|
+
**expand** | [**Array<String>**](String.html)| | [optional]
|
187
|
+
**profile** | **BOOLEAN**| | [optional] [default to true]
|
188
|
+
{: class="table table-striped"}
|
189
|
+
|
190
|
+
|
191
|
+
### Return type
|
192
|
+
|
193
|
+
[**JsonNodeSearchResponse**](JsonNodeSearchResponse.html)
|
194
|
+
|
195
|
+
### HTTP request headers
|
196
|
+
|
197
|
+
- **Content-Type**: application/json
|
198
|
+
- **Accept**: application/json
|
199
|
+
|
200
|
+
|
201
|
+
|
202
|
+
<a name="get_search_2"></a>
|
203
|
+
|
204
|
+
## -[**UsersSearchResponse**](UsersSearchResponse.html) get_search_2(opts)
|
205
|
+
|
206
|
+
Search using q64
|
207
|
+
|
208
|
+
|
209
|
+
|
210
|
+
### Example
|
211
|
+
~~~ruby
|
212
|
+
# load the gem
|
213
|
+
require 'purecloud'
|
214
|
+
# setup authorization
|
215
|
+
@secret = ENV['PURECLOUD_SECRET']
|
216
|
+
@id = ENV['PURECLOUD_CLIENT_ID']
|
217
|
+
environment = "mypurecloud.com"
|
218
|
+
|
219
|
+
@authToken = PureCloud.authenticate_with_client_credentials @id, @secret, environment
|
220
|
+
|
221
|
+
PureCloud.configure do |config|
|
222
|
+
config.access_token = @authToken
|
223
|
+
end
|
224
|
+
|
225
|
+
api_instance = PureCloud::SearchApi.new
|
226
|
+
|
227
|
+
opts = {
|
228
|
+
q64: "q64_example", # String |
|
229
|
+
expand: ["expand_example"] # Array<String> |
|
230
|
+
}
|
231
|
+
|
232
|
+
begin
|
233
|
+
#Search using q64
|
234
|
+
result = api_instance.get_search_2(opts)
|
235
|
+
p result
|
236
|
+
rescue PureCloud::ApiError => e
|
237
|
+
puts "Exception when calling SearchApi->get_search_2: #{e}"
|
238
|
+
end
|
239
|
+
~~~
|
240
|
+
|
241
|
+
### Parameters
|
242
|
+
|
178
243
|
Name | Type | Description | Notes
|
179
244
|
------------- | ------------- | ------------- | -------------
|
180
245
|
**q64** | **String**| | [optional]
|
@@ -193,6 +258,65 @@ Name | Type | Description | Notes
|
|
193
258
|
|
194
259
|
|
195
260
|
|
261
|
+
<a name="get_suggest"></a>
|
262
|
+
|
263
|
+
## -[**JsonNodeSearchResponse**](JsonNodeSearchResponse.html) get_suggest(opts)
|
264
|
+
|
265
|
+
Suggest using q64
|
266
|
+
|
267
|
+
|
268
|
+
|
269
|
+
### Example
|
270
|
+
~~~ruby
|
271
|
+
# load the gem
|
272
|
+
require 'purecloud'
|
273
|
+
# setup authorization
|
274
|
+
@secret = ENV['PURECLOUD_SECRET']
|
275
|
+
@id = ENV['PURECLOUD_CLIENT_ID']
|
276
|
+
environment = "mypurecloud.com"
|
277
|
+
|
278
|
+
@authToken = PureCloud.authenticate_with_client_credentials @id, @secret, environment
|
279
|
+
|
280
|
+
PureCloud.configure do |config|
|
281
|
+
config.access_token = @authToken
|
282
|
+
end
|
283
|
+
|
284
|
+
api_instance = PureCloud::SearchApi.new
|
285
|
+
|
286
|
+
opts = {
|
287
|
+
q64: "q64_example", # String |
|
288
|
+
profile: true # BOOLEAN |
|
289
|
+
}
|
290
|
+
|
291
|
+
begin
|
292
|
+
#Suggest using q64
|
293
|
+
result = api_instance.get_suggest(opts)
|
294
|
+
p result
|
295
|
+
rescue PureCloud::ApiError => e
|
296
|
+
puts "Exception when calling SearchApi->get_suggest: #{e}"
|
297
|
+
end
|
298
|
+
~~~
|
299
|
+
|
300
|
+
### Parameters
|
301
|
+
|
302
|
+
Name | Type | Description | Notes
|
303
|
+
------------- | ------------- | ------------- | -------------
|
304
|
+
**q64** | **String**| | [optional]
|
305
|
+
**profile** | **BOOLEAN**| | [optional] [default to true]
|
306
|
+
{: class="table table-striped"}
|
307
|
+
|
308
|
+
|
309
|
+
### Return type
|
310
|
+
|
311
|
+
[**JsonNodeSearchResponse**](JsonNodeSearchResponse.html)
|
312
|
+
|
313
|
+
### HTTP request headers
|
314
|
+
|
315
|
+
- **Content-Type**: application/json
|
316
|
+
- **Accept**: application/json
|
317
|
+
|
318
|
+
|
319
|
+
|
196
320
|
<a name="post_search"></a>
|
197
321
|
|
198
322
|
## -[**GroupsSearchResponse**](GroupsSearchResponse.html) post_search(opts)
|
@@ -252,7 +376,7 @@ Name | Type | Description | Notes
|
|
252
376
|
|
253
377
|
<a name="post_search_0"></a>
|
254
378
|
|
255
|
-
## -[**
|
379
|
+
## -[**GroupsSearchResponse**](GroupsSearchResponse.html) post_search_0(opts)
|
256
380
|
|
257
381
|
Search
|
258
382
|
|
@@ -298,7 +422,7 @@ Name | Type | Description | Notes
|
|
298
422
|
|
299
423
|
### Return type
|
300
424
|
|
301
|
-
[**
|
425
|
+
[**GroupsSearchResponse**](GroupsSearchResponse.html)
|
302
426
|
|
303
427
|
### HTTP request headers
|
304
428
|
|
@@ -309,7 +433,7 @@ Name | Type | Description | Notes
|
|
309
433
|
|
310
434
|
<a name="post_search_1"></a>
|
311
435
|
|
312
|
-
## -[**
|
436
|
+
## -[**JsonNodeSearchResponse**](JsonNodeSearchResponse.html) post_search_1(opts)
|
313
437
|
|
314
438
|
Search
|
315
439
|
|
@@ -333,7 +457,8 @@ end
|
|
333
457
|
api_instance = PureCloud::SearchApi.new
|
334
458
|
|
335
459
|
opts = {
|
336
|
-
body: PureCloud::SearchRequest.new # SearchRequest | Search request options
|
460
|
+
body: PureCloud::SearchRequest.new, # SearchRequest | Search request options
|
461
|
+
profile: true # BOOLEAN |
|
337
462
|
}
|
338
463
|
|
339
464
|
begin
|
@@ -347,6 +472,64 @@ end
|
|
347
472
|
|
348
473
|
### Parameters
|
349
474
|
|
475
|
+
Name | Type | Description | Notes
|
476
|
+
------------- | ------------- | ------------- | -------------
|
477
|
+
**body** | [**SearchRequest**](SearchRequest.html)| Search request options | [optional]
|
478
|
+
**profile** | **BOOLEAN**| | [optional] [default to true]
|
479
|
+
{: class="table table-striped"}
|
480
|
+
|
481
|
+
|
482
|
+
### Return type
|
483
|
+
|
484
|
+
[**JsonNodeSearchResponse**](JsonNodeSearchResponse.html)
|
485
|
+
|
486
|
+
### HTTP request headers
|
487
|
+
|
488
|
+
- **Content-Type**: application/json
|
489
|
+
- **Accept**: application/json
|
490
|
+
|
491
|
+
|
492
|
+
|
493
|
+
<a name="post_search_2"></a>
|
494
|
+
|
495
|
+
## -[**UsersSearchResponse**](UsersSearchResponse.html) post_search_2(opts)
|
496
|
+
|
497
|
+
Search
|
498
|
+
|
499
|
+
|
500
|
+
|
501
|
+
### Example
|
502
|
+
~~~ruby
|
503
|
+
# load the gem
|
504
|
+
require 'purecloud'
|
505
|
+
# setup authorization
|
506
|
+
@secret = ENV['PURECLOUD_SECRET']
|
507
|
+
@id = ENV['PURECLOUD_CLIENT_ID']
|
508
|
+
environment = "mypurecloud.com"
|
509
|
+
|
510
|
+
@authToken = PureCloud.authenticate_with_client_credentials @id, @secret, environment
|
511
|
+
|
512
|
+
PureCloud.configure do |config|
|
513
|
+
config.access_token = @authToken
|
514
|
+
end
|
515
|
+
|
516
|
+
api_instance = PureCloud::SearchApi.new
|
517
|
+
|
518
|
+
opts = {
|
519
|
+
body: PureCloud::SearchRequest.new # SearchRequest | Search request options
|
520
|
+
}
|
521
|
+
|
522
|
+
begin
|
523
|
+
#Search
|
524
|
+
result = api_instance.post_search_2(opts)
|
525
|
+
p result
|
526
|
+
rescue PureCloud::ApiError => e
|
527
|
+
puts "Exception when calling SearchApi->post_search_2: #{e}"
|
528
|
+
end
|
529
|
+
~~~
|
530
|
+
|
531
|
+
### Parameters
|
532
|
+
|
350
533
|
Name | Type | Description | Notes
|
351
534
|
------------- | ------------- | ------------- | -------------
|
352
535
|
**body** | [**SearchRequest**](SearchRequest.html)| Search request options | [optional]
|
@@ -364,3 +547,62 @@ Name | Type | Description | Notes
|
|
364
547
|
|
365
548
|
|
366
549
|
|
550
|
+
<a name="post_suggest"></a>
|
551
|
+
|
552
|
+
## -[**JsonNodeSearchResponse**](JsonNodeSearchResponse.html) post_suggest(opts)
|
553
|
+
|
554
|
+
Suggest
|
555
|
+
|
556
|
+
|
557
|
+
|
558
|
+
### Example
|
559
|
+
~~~ruby
|
560
|
+
# load the gem
|
561
|
+
require 'purecloud'
|
562
|
+
# setup authorization
|
563
|
+
@secret = ENV['PURECLOUD_SECRET']
|
564
|
+
@id = ENV['PURECLOUD_CLIENT_ID']
|
565
|
+
environment = "mypurecloud.com"
|
566
|
+
|
567
|
+
@authToken = PureCloud.authenticate_with_client_credentials @id, @secret, environment
|
568
|
+
|
569
|
+
PureCloud.configure do |config|
|
570
|
+
config.access_token = @authToken
|
571
|
+
end
|
572
|
+
|
573
|
+
api_instance = PureCloud::SearchApi.new
|
574
|
+
|
575
|
+
opts = {
|
576
|
+
body: PureCloud::SearchRequest.new, # SearchRequest | Search request options
|
577
|
+
profile: true # BOOLEAN |
|
578
|
+
}
|
579
|
+
|
580
|
+
begin
|
581
|
+
#Suggest
|
582
|
+
result = api_instance.post_suggest(opts)
|
583
|
+
p result
|
584
|
+
rescue PureCloud::ApiError => e
|
585
|
+
puts "Exception when calling SearchApi->post_suggest: #{e}"
|
586
|
+
end
|
587
|
+
~~~
|
588
|
+
|
589
|
+
### Parameters
|
590
|
+
|
591
|
+
Name | Type | Description | Notes
|
592
|
+
------------- | ------------- | ------------- | -------------
|
593
|
+
**body** | [**SearchRequest**](SearchRequest.html)| Search request options | [optional]
|
594
|
+
**profile** | **BOOLEAN**| | [optional] [default to true]
|
595
|
+
{: class="table table-striped"}
|
596
|
+
|
597
|
+
|
598
|
+
### Return type
|
599
|
+
|
600
|
+
[**JsonNodeSearchResponse**](JsonNodeSearchResponse.html)
|
601
|
+
|
602
|
+
### HTTP request headers
|
603
|
+
|
604
|
+
- **Content-Type**: application/json
|
605
|
+
- **Accept**: application/json
|
606
|
+
|
607
|
+
|
608
|
+
|
@@ -0,0 +1,254 @@
|
|
1
|
+
---
|
2
|
+
title: SuggestApi
|
3
|
+
---
|
4
|
+
|
5
|
+
## PureCloud::SuggestApi
|
6
|
+
|
7
|
+
All URIs are relative to *https://api.mypurecloud.com*
|
8
|
+
|
9
|
+
Method | HTTP request | Description
|
10
|
+
------------- | ------------- | -------------
|
11
|
+
|[**get_search**](SuggestApi.html#get_search) | **GET** /api/v2/search | Search using q64|
|
12
|
+
|[**get_suggest**](SuggestApi.html#get_suggest) | **GET** /api/v2/search/suggest | Suggest using q64|
|
13
|
+
|[**post_search**](SuggestApi.html#post_search) | **POST** /api/v2/search | Search|
|
14
|
+
|[**post_suggest**](SuggestApi.html#post_suggest) | **POST** /api/v2/search/suggest | Suggest|
|
15
|
+
{: class="table table-striped"}
|
16
|
+
|
17
|
+
<a name="get_search"></a>
|
18
|
+
|
19
|
+
## -[**JsonNodeSearchResponse**](JsonNodeSearchResponse.html) get_search(opts)
|
20
|
+
|
21
|
+
Search using q64
|
22
|
+
|
23
|
+
|
24
|
+
|
25
|
+
### Example
|
26
|
+
~~~ruby
|
27
|
+
# load the gem
|
28
|
+
require 'purecloud'
|
29
|
+
# setup authorization
|
30
|
+
@secret = ENV['PURECLOUD_SECRET']
|
31
|
+
@id = ENV['PURECLOUD_CLIENT_ID']
|
32
|
+
environment = "mypurecloud.com"
|
33
|
+
|
34
|
+
@authToken = PureCloud.authenticate_with_client_credentials @id, @secret, environment
|
35
|
+
|
36
|
+
PureCloud.configure do |config|
|
37
|
+
config.access_token = @authToken
|
38
|
+
end
|
39
|
+
|
40
|
+
api_instance = PureCloud::SuggestApi.new
|
41
|
+
|
42
|
+
opts = {
|
43
|
+
q64: "q64_example", # String |
|
44
|
+
expand: ["expand_example"], # Array<String> |
|
45
|
+
profile: true # BOOLEAN |
|
46
|
+
}
|
47
|
+
|
48
|
+
begin
|
49
|
+
#Search using q64
|
50
|
+
result = api_instance.get_search(opts)
|
51
|
+
p result
|
52
|
+
rescue PureCloud::ApiError => e
|
53
|
+
puts "Exception when calling SuggestApi->get_search: #{e}"
|
54
|
+
end
|
55
|
+
~~~
|
56
|
+
|
57
|
+
### Parameters
|
58
|
+
|
59
|
+
Name | Type | Description | Notes
|
60
|
+
------------- | ------------- | ------------- | -------------
|
61
|
+
**q64** | **String**| | [optional]
|
62
|
+
**expand** | [**Array<String>**](String.html)| | [optional]
|
63
|
+
**profile** | **BOOLEAN**| | [optional] [default to true]
|
64
|
+
{: class="table table-striped"}
|
65
|
+
|
66
|
+
|
67
|
+
### Return type
|
68
|
+
|
69
|
+
[**JsonNodeSearchResponse**](JsonNodeSearchResponse.html)
|
70
|
+
|
71
|
+
### HTTP request headers
|
72
|
+
|
73
|
+
- **Content-Type**: application/json
|
74
|
+
- **Accept**: application/json
|
75
|
+
|
76
|
+
|
77
|
+
|
78
|
+
<a name="get_suggest"></a>
|
79
|
+
|
80
|
+
## -[**JsonNodeSearchResponse**](JsonNodeSearchResponse.html) get_suggest(opts)
|
81
|
+
|
82
|
+
Suggest using q64
|
83
|
+
|
84
|
+
|
85
|
+
|
86
|
+
### Example
|
87
|
+
~~~ruby
|
88
|
+
# load the gem
|
89
|
+
require 'purecloud'
|
90
|
+
# setup authorization
|
91
|
+
@secret = ENV['PURECLOUD_SECRET']
|
92
|
+
@id = ENV['PURECLOUD_CLIENT_ID']
|
93
|
+
environment = "mypurecloud.com"
|
94
|
+
|
95
|
+
@authToken = PureCloud.authenticate_with_client_credentials @id, @secret, environment
|
96
|
+
|
97
|
+
PureCloud.configure do |config|
|
98
|
+
config.access_token = @authToken
|
99
|
+
end
|
100
|
+
|
101
|
+
api_instance = PureCloud::SuggestApi.new
|
102
|
+
|
103
|
+
opts = {
|
104
|
+
q64: "q64_example", # String |
|
105
|
+
profile: true # BOOLEAN |
|
106
|
+
}
|
107
|
+
|
108
|
+
begin
|
109
|
+
#Suggest using q64
|
110
|
+
result = api_instance.get_suggest(opts)
|
111
|
+
p result
|
112
|
+
rescue PureCloud::ApiError => e
|
113
|
+
puts "Exception when calling SuggestApi->get_suggest: #{e}"
|
114
|
+
end
|
115
|
+
~~~
|
116
|
+
|
117
|
+
### Parameters
|
118
|
+
|
119
|
+
Name | Type | Description | Notes
|
120
|
+
------------- | ------------- | ------------- | -------------
|
121
|
+
**q64** | **String**| | [optional]
|
122
|
+
**profile** | **BOOLEAN**| | [optional] [default to true]
|
123
|
+
{: class="table table-striped"}
|
124
|
+
|
125
|
+
|
126
|
+
### Return type
|
127
|
+
|
128
|
+
[**JsonNodeSearchResponse**](JsonNodeSearchResponse.html)
|
129
|
+
|
130
|
+
### HTTP request headers
|
131
|
+
|
132
|
+
- **Content-Type**: application/json
|
133
|
+
- **Accept**: application/json
|
134
|
+
|
135
|
+
|
136
|
+
|
137
|
+
<a name="post_search"></a>
|
138
|
+
|
139
|
+
## -[**JsonNodeSearchResponse**](JsonNodeSearchResponse.html) post_search(opts)
|
140
|
+
|
141
|
+
Search
|
142
|
+
|
143
|
+
|
144
|
+
|
145
|
+
### Example
|
146
|
+
~~~ruby
|
147
|
+
# load the gem
|
148
|
+
require 'purecloud'
|
149
|
+
# setup authorization
|
150
|
+
@secret = ENV['PURECLOUD_SECRET']
|
151
|
+
@id = ENV['PURECLOUD_CLIENT_ID']
|
152
|
+
environment = "mypurecloud.com"
|
153
|
+
|
154
|
+
@authToken = PureCloud.authenticate_with_client_credentials @id, @secret, environment
|
155
|
+
|
156
|
+
PureCloud.configure do |config|
|
157
|
+
config.access_token = @authToken
|
158
|
+
end
|
159
|
+
|
160
|
+
api_instance = PureCloud::SuggestApi.new
|
161
|
+
|
162
|
+
opts = {
|
163
|
+
body: PureCloud::SearchRequest.new, # SearchRequest | Search request options
|
164
|
+
profile: true # BOOLEAN |
|
165
|
+
}
|
166
|
+
|
167
|
+
begin
|
168
|
+
#Search
|
169
|
+
result = api_instance.post_search(opts)
|
170
|
+
p result
|
171
|
+
rescue PureCloud::ApiError => e
|
172
|
+
puts "Exception when calling SuggestApi->post_search: #{e}"
|
173
|
+
end
|
174
|
+
~~~
|
175
|
+
|
176
|
+
### Parameters
|
177
|
+
|
178
|
+
Name | Type | Description | Notes
|
179
|
+
------------- | ------------- | ------------- | -------------
|
180
|
+
**body** | [**SearchRequest**](SearchRequest.html)| Search request options | [optional]
|
181
|
+
**profile** | **BOOLEAN**| | [optional] [default to true]
|
182
|
+
{: class="table table-striped"}
|
183
|
+
|
184
|
+
|
185
|
+
### Return type
|
186
|
+
|
187
|
+
[**JsonNodeSearchResponse**](JsonNodeSearchResponse.html)
|
188
|
+
|
189
|
+
### HTTP request headers
|
190
|
+
|
191
|
+
- **Content-Type**: application/json
|
192
|
+
- **Accept**: application/json
|
193
|
+
|
194
|
+
|
195
|
+
|
196
|
+
<a name="post_suggest"></a>
|
197
|
+
|
198
|
+
## -[**JsonNodeSearchResponse**](JsonNodeSearchResponse.html) post_suggest(opts)
|
199
|
+
|
200
|
+
Suggest
|
201
|
+
|
202
|
+
|
203
|
+
|
204
|
+
### Example
|
205
|
+
~~~ruby
|
206
|
+
# load the gem
|
207
|
+
require 'purecloud'
|
208
|
+
# setup authorization
|
209
|
+
@secret = ENV['PURECLOUD_SECRET']
|
210
|
+
@id = ENV['PURECLOUD_CLIENT_ID']
|
211
|
+
environment = "mypurecloud.com"
|
212
|
+
|
213
|
+
@authToken = PureCloud.authenticate_with_client_credentials @id, @secret, environment
|
214
|
+
|
215
|
+
PureCloud.configure do |config|
|
216
|
+
config.access_token = @authToken
|
217
|
+
end
|
218
|
+
|
219
|
+
api_instance = PureCloud::SuggestApi.new
|
220
|
+
|
221
|
+
opts = {
|
222
|
+
body: PureCloud::SearchRequest.new, # SearchRequest | Search request options
|
223
|
+
profile: true # BOOLEAN |
|
224
|
+
}
|
225
|
+
|
226
|
+
begin
|
227
|
+
#Suggest
|
228
|
+
result = api_instance.post_suggest(opts)
|
229
|
+
p result
|
230
|
+
rescue PureCloud::ApiError => e
|
231
|
+
puts "Exception when calling SuggestApi->post_suggest: #{e}"
|
232
|
+
end
|
233
|
+
~~~
|
234
|
+
|
235
|
+
### Parameters
|
236
|
+
|
237
|
+
Name | Type | Description | Notes
|
238
|
+
------------- | ------------- | ------------- | -------------
|
239
|
+
**body** | [**SearchRequest**](SearchRequest.html)| Search request options | [optional]
|
240
|
+
**profile** | **BOOLEAN**| | [optional] [default to true]
|
241
|
+
{: class="table table-striped"}
|
242
|
+
|
243
|
+
|
244
|
+
### Return type
|
245
|
+
|
246
|
+
[**JsonNodeSearchResponse**](JsonNodeSearchResponse.html)
|
247
|
+
|
248
|
+
### HTTP request headers
|
249
|
+
|
250
|
+
- **Content-Type**: application/json
|
251
|
+
- **Accept**: application/json
|
252
|
+
|
253
|
+
|
254
|
+
|