purecloudplatformclientv2 21.0.0 → 22.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.
Files changed (43) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +2 -2
  3. data/docs/Entity.md +0 -1
  4. data/docs/GroupProfile.md +18 -0
  5. data/docs/GroupsApi.md +60 -0
  6. data/docs/InboundRoute.md +1 -1
  7. data/docs/JsonNode.md +1 -1
  8. data/docs/MediaPolicies.md +1 -0
  9. data/docs/MessageMediaPolicy.md +14 -0
  10. data/docs/MessageMediaPolicyConditions.md +17 -0
  11. data/docs/NamedEntity.md +14 -0
  12. data/docs/OrgOAuthClient.md +1 -1
  13. data/docs/RoutingApi.md +2 -2
  14. data/docs/TokenInfo.md +2 -2
  15. data/docs/UserConversationSummary.md +1 -0
  16. data/docs/UserExpands.md +19 -0
  17. data/docs/UserProfile.md +19 -0
  18. data/docs/UserProfileEntityListing.md +22 -0
  19. data/docs/UsersApi.md +137 -0
  20. data/docs/WorkforceManagementApi.md +5 -3
  21. data/lib/purecloudplatformclientv2.rb +7 -0
  22. data/lib/purecloudplatformclientv2/api/groups_api.rb +65 -0
  23. data/lib/purecloudplatformclientv2/api/users_api.rb +200 -0
  24. data/lib/purecloudplatformclientv2/api/workforce_management_api.rb +14 -1
  25. data/lib/purecloudplatformclientv2/api_client.rb +1 -1
  26. data/lib/purecloudplatformclientv2/models/entity.rb +4 -29
  27. data/lib/purecloudplatformclientv2/models/event_log.rb +2 -2
  28. data/lib/purecloudplatformclientv2/models/event_message.rb +2 -2
  29. data/lib/purecloudplatformclientv2/models/group_profile.rb +350 -0
  30. data/lib/purecloudplatformclientv2/models/inbound_route.rb +7 -7
  31. data/lib/purecloudplatformclientv2/models/json_node.rb +17 -17
  32. data/lib/purecloudplatformclientv2/models/media_policies.rb +30 -4
  33. data/lib/purecloudplatformclientv2/models/message_media_policy.rb +228 -0
  34. data/lib/purecloudplatformclientv2/models/message_media_policy_conditions.rb +309 -0
  35. data/lib/purecloudplatformclientv2/models/named_entity.rb +228 -0
  36. data/lib/purecloudplatformclientv2/models/org_o_auth_client.rb +1 -1
  37. data/lib/purecloudplatformclientv2/models/token_info.rb +2 -2
  38. data/lib/purecloudplatformclientv2/models/user_conversation_summary.rb +26 -1
  39. data/lib/purecloudplatformclientv2/models/user_expands.rb +358 -0
  40. data/lib/purecloudplatformclientv2/models/user_profile.rb +376 -0
  41. data/lib/purecloudplatformclientv2/models/user_profile_entity_listing.rb +428 -0
  42. data/lib/purecloudplatformclientv2/version.rb +1 -1
  43. metadata +16 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f0290484bac4ae9254616679078b43623f6c371a
4
- data.tar.gz: fcc472ff711c91a9021acbab6e5d319e5949c59f
3
+ metadata.gz: 9910871f363db0adf820ad5887a74923109372f5
4
+ data.tar.gz: c46a51061d6d5446b0d36c735a90a1a6b5612a4f
5
5
  SHA512:
6
- metadata.gz: 95fa2f0bf645387b68dc002e480815da61ba493bfc2d43c18034c3c69409ae337f25fedee5c3b5de0ae5c2a60902ec3542488ea2a963a35cd071ac8de4c658c6
7
- data.tar.gz: c922fbc8e316d7919cf6c692d53d963cc2cc64210dfee9c43fb76226276040792718ff526ba37f29a7b0416c19d157717b6269aa4813275a00109de6d29d6639
6
+ metadata.gz: b01ac29f66b90fc9200b76003a1b01541163ea54d2f3f2bc381453eae50c5a50228862eecb37f3d056850c7ae9ef1e6825dcce303bc88305e81977c0d590a6c0
7
+ data.tar.gz: 7cfbede19f9b301a6174a91095dd8e7046312926dc9f67e3a45253a147e30b929a1e2767367d620cc5411563a87a3635ea2483a06596a979a923e60737a75a53
data/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  title: PureCloud Ruby Gem
3
3
  ---
4
- ![](http://ruby-gem-downloads-badge.herokuapp.com/purecloudplatformclientv2?label=21.0.0)
4
+ ![](http://ruby-gem-downloads-badge.herokuapp.com/purecloudplatformclientv2?label=22.0.0)
5
5
 
6
6
  Documentation can be found at [https://developer.mypurecloud.com/api/rest/client-libraries/ruby/](https://developer.mypurecloud.com/api/rest/client-libraries/ruby/)
7
7
 
@@ -10,7 +10,7 @@ Documentation can be found at [https://developer.mypurecloud.com/api/rest/client
10
10
  ### from rubygems.org
11
11
 
12
12
  ~~~ ruby
13
- gem install 'purecloudplatformclientv2', '~> 21.0.0'
13
+ gem install 'purecloudplatformclientv2', '~> 22.0.0'
14
14
  ~~~
15
15
 
16
16
  ### Install from Git
@@ -8,7 +8,6 @@ title: Entity
8
8
  |Name | Type | Description | Notes|
9
9
  |------------ | ------------- | ------------- | -------------|
10
10
  | **id** | **String** | The globally unique identifier for the object. | [optional] |
11
- | **name** | **String** | | [optional] |
12
11
  {: class="table table-striped"}
13
12
 
14
13
 
@@ -0,0 +1,18 @@
1
+ ---
2
+ title: GroupProfile
3
+ ---
4
+ ## PureCloud::GroupProfile
5
+
6
+ ## Properties
7
+
8
+ |Name | Type | Description | Notes|
9
+ |------------ | ------------- | ------------- | -------------|
10
+ | **id** | **String** | The globally unique identifier for the object. | [optional] |
11
+ | **name** | **String** | | [optional] |
12
+ | **state** | **String** | The state of the user resource | [optional] |
13
+ | **date_modified** | **DateTime** | Datetime of the last modification. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ | [optional] |
14
+ | **version** | **Integer** | The version of the group resource | |
15
+ | **self_uri** | **String** | The URI for this object | [optional] |
16
+ {: class="table table-striped"}
17
+
18
+
@@ -13,6 +13,7 @@ Method | Description
13
13
  [**get_fieldconfig**](GroupsApi.html#get_fieldconfig) | Fetch field config for an entity type
14
14
  [**get_group**](GroupsApi.html#get_group) | Get group
15
15
  [**get_group_members**](GroupsApi.html#get_group_members) | Get group members
16
+ [**get_group_profile**](GroupsApi.html#get_group_profile) | Get group profile
16
17
  [**get_groups**](GroupsApi.html#get_groups) | Get a group list
17
18
  [**get_groups_search**](GroupsApi.html#get_groups_search) | Search groups using the q64 value returned from a previous search
18
19
  [**post_group_members**](GroupsApi.html#post_group_members) | Add members
@@ -328,6 +329,65 @@ Name | Type | Description | Notes
328
329
 
329
330
 
330
331
 
332
+ <a name="get_group_profile"></a>
333
+
334
+ ## -[**GroupProfile**](GroupProfile.html) get_group_profile(group_id)
335
+
336
+ Get group profile
337
+
338
+
339
+
340
+ Wraps GET /api/v2/groups/{groupId}/profile
341
+
342
+
343
+ ### Example
344
+ ~~~ruby
345
+ # load the gem
346
+ require 'purecloudplatformclientv2'
347
+ # setup authorization
348
+ @secret = ENV['PURECLOUD_SECRET']
349
+ @id = ENV['PURECLOUD_CLIENT_ID']
350
+ environment = "mypurecloud.com"
351
+
352
+ @authToken = PureCloud.authenticate_with_client_credentials @id, @secret, environment
353
+
354
+ PureCloud.configure do |config|
355
+ config.access_token = @authToken
356
+ end
357
+
358
+ api_instance = PureCloud::GroupsApi.new
359
+
360
+ group_id = "group_id_example" # String | groupId
361
+
362
+
363
+ begin
364
+ #Get group profile
365
+ result = api_instance.get_group_profile(group_id)
366
+ p result
367
+ rescue PureCloud::ApiError => e
368
+ puts "Exception when calling GroupsApi->get_group_profile: #{e}"
369
+ end
370
+ ~~~
371
+
372
+ ### Parameters
373
+
374
+ Name | Type | Description | Notes
375
+ ------------- | ------------- | ------------- | -------------
376
+ **group_id** | **String**| groupId | |
377
+ {: class="table table-striped"}
378
+
379
+
380
+ ### Return type
381
+
382
+ [**GroupProfile**](GroupProfile.html)
383
+
384
+ ### HTTP request headers
385
+
386
+ - **Content-Type**: application/json
387
+ - **Accept**: application/json
388
+
389
+
390
+
331
391
  <a name="get_groups"></a>
332
392
 
333
393
  ## -[**GroupEntityListing**](GroupEntityListing.html) get_groups(opts)
@@ -17,7 +17,7 @@ title: InboundRoute
17
17
  | **from_name** | **String** | The sender name to use for outgoing replies. | |
18
18
  | **from_email** | **String** | The sender email to use for outgoing replies. | |
19
19
  | **flow** | [**UriReference**](UriReference.html) | The flow to use for processing the email. | [optional] |
20
- | **reply_route** | [**UriReference**](UriReference.html) | The route to use for email replies. | [optional] |
20
+ | **reply_email_address** | [**QueueEmailAddress**](QueueEmailAddress.html) | The route to use for email replies. | [optional] |
21
21
  | **self_uri** | **String** | The URI for this object | [optional] |
22
22
  {: class="table table-striped"}
23
23
 
@@ -14,12 +14,12 @@ title: JsonNode
14
14
  | **object** | **BOOLEAN** | | [optional] |
15
15
  | **boolean** | **BOOLEAN** | | [optional] |
16
16
  | **number** | **BOOLEAN** | | [optional] |
17
- | **floating_point_number** | **BOOLEAN** | | [optional] |
18
17
  | **value_node** | **BOOLEAN** | | [optional] |
19
18
  | **container_node** | **BOOLEAN** | | [optional] |
20
19
  | **missing_node** | **BOOLEAN** | | [optional] |
21
20
  | **pojo** | **BOOLEAN** | | [optional] |
22
21
  | **integral_number** | **BOOLEAN** | | [optional] |
22
+ | **floating_point_number** | **BOOLEAN** | | [optional] |
23
23
  | **short** | **BOOLEAN** | | [optional] |
24
24
  | **int** | **BOOLEAN** | | [optional] |
25
25
  | **long** | **BOOLEAN** | | [optional] |
@@ -10,6 +10,7 @@ title: MediaPolicies
10
10
  | **call_policy** | [**CallMediaPolicy**](CallMediaPolicy.html) | Conditions and actions for calls | [optional] |
11
11
  | **chat_policy** | [**ChatMediaPolicy**](ChatMediaPolicy.html) | Conditions and actions for chats | [optional] |
12
12
  | **email_policy** | [**EmailMediaPolicy**](EmailMediaPolicy.html) | Conditions and actions for emails | [optional] |
13
+ | **message_policy** | [**MessageMediaPolicy**](MessageMediaPolicy.html) | Conditions and actions for messages | [optional] |
13
14
  {: class="table table-striped"}
14
15
 
15
16
 
@@ -0,0 +1,14 @@
1
+ ---
2
+ title: MessageMediaPolicy
3
+ ---
4
+ ## PureCloud::MessageMediaPolicy
5
+
6
+ ## Properties
7
+
8
+ |Name | Type | Description | Notes|
9
+ |------------ | ------------- | ------------- | -------------|
10
+ | **actions** | [**PolicyActions**](PolicyActions.html) | Actions applied when specified conditions are met | [optional] |
11
+ | **conditions** | [**MessageMediaPolicyConditions**](MessageMediaPolicyConditions.html) | Conditions for when actions should be applied | [optional] |
12
+ {: class="table table-striped"}
13
+
14
+
@@ -0,0 +1,17 @@
1
+ ---
2
+ title: MessageMediaPolicyConditions
3
+ ---
4
+ ## PureCloud::MessageMediaPolicyConditions
5
+
6
+ ## Properties
7
+
8
+ |Name | Type | Description | Notes|
9
+ |------------ | ------------- | ------------- | -------------|
10
+ | **for_users** | [**Array&lt;User&gt;**](User.html) | | [optional] |
11
+ | **date_ranges** | **Array&lt;String&gt;** | | [optional] |
12
+ | **for_queues** | [**Array&lt;Queue&gt;**](Queue.html) | | [optional] |
13
+ | **wrapup_codes** | [**Array&lt;WrapupCode&gt;**](WrapupCode.html) | | [optional] |
14
+ | **time_allowed** | [**TimeAllowed**](TimeAllowed.html) | | [optional] |
15
+ {: class="table table-striped"}
16
+
17
+
@@ -0,0 +1,14 @@
1
+ ---
2
+ title: NamedEntity
3
+ ---
4
+ ## PureCloud::NamedEntity
5
+
6
+ ## Properties
7
+
8
+ |Name | Type | Description | Notes|
9
+ |------------ | ------------- | ------------- | -------------|
10
+ | **id** | **String** | The globally unique identifier for the object. | [optional] |
11
+ | **name** | **String** | The name of the object. | [optional] |
12
+ {: class="table table-striped"}
13
+
14
+
@@ -14,7 +14,7 @@ title: OrgOAuthClient
14
14
  | **created_by** | [**UriReference**](UriReference.html) | User that created this client | [optional] |
15
15
  | **modified_by** | [**UriReference**](UriReference.html) | User that last modified this client | [optional] |
16
16
  | **authorized_grant_type** | **String** | The OAuth Grant/Client type supported by this client. Code Authorization Grant/Client type - Preferred client type where the Client ID and Secret are required to create tokens. Used where the secret can be secured. Implicit grant type - Client ID only is required to create tokens. Used in browser and mobile apps where the secret can not be secured. SAML2-Bearer extension grant type - SAML2 assertion provider for user authentication at the token endpoint. Client Credential grant type - Used to created access tokens that are tied only to the client. | |
17
- | **organization** | [**Entity**](Entity.html) | The oauth client&#39;s organization. | [optional] |
17
+ | **organization** | [**NamedEntity**](NamedEntity.html) | The oauth client&#39;s organization. | [optional] |
18
18
  {: class="table table-striped"}
19
19
 
20
20
 
@@ -2170,7 +2170,7 @@ api_instance = PureCloud::RoutingApi.new
2170
2170
 
2171
2171
  queue_id = "queue_id_example" # String | Queue ID
2172
2172
 
2173
- body = [PureCloud::WrapupCode.new] # Array<WrapupCode> | List of wrapup codes
2173
+ body = [PureCloud::Entity.new] # Array<Entity> | List of wrapup codes
2174
2174
 
2175
2175
 
2176
2176
  begin
@@ -2187,7 +2187,7 @@ end
2187
2187
  Name | Type | Description | Notes
2188
2188
  ------------- | ------------- | ------------- | -------------
2189
2189
  **queue_id** | **String**| Queue ID | |
2190
- **body** | [**Array&lt;WrapupCode&gt;**](WrapupCode.html)| List of wrapup codes | |
2190
+ **body** | [**Array&lt;Entity&gt;**](Entity.html)| List of wrapup codes | |
2191
2191
  {: class="table table-striped"}
2192
2192
 
2193
2193
 
@@ -7,8 +7,8 @@ title: TokenInfo
7
7
 
8
8
  |Name | Type | Description | Notes|
9
9
  |------------ | ------------- | ------------- | -------------|
10
- | **organization** | [**Entity**](Entity.html) | The current organization | [optional] |
11
- | **home_organization** | [**Entity**](Entity.html) | The token&#39;s home organization | [optional] |
10
+ | **organization** | [**NamedEntity**](NamedEntity.html) | The current organization | [optional] |
11
+ | **home_organization** | [**NamedEntity**](NamedEntity.html) | The token&#39;s home organization | [optional] |
12
12
  | **o_auth_client** | [**OrgOAuthClient**](OrgOAuthClient.html) | | [optional] |
13
13
  {: class="table table-striped"}
14
14
 
@@ -11,6 +11,7 @@ title: UserConversationSummary
11
11
  | **call** | [**MediaSummary**](MediaSummary.html) | | [optional] |
12
12
  | **callback** | [**MediaSummary**](MediaSummary.html) | | [optional] |
13
13
  | **email** | [**MediaSummary**](MediaSummary.html) | | [optional] |
14
+ | **message** | [**MediaSummary**](MediaSummary.html) | | [optional] |
14
15
  | **chat** | [**MediaSummary**](MediaSummary.html) | | [optional] |
15
16
  | **social_expression** | [**MediaSummary**](MediaSummary.html) | | [optional] |
16
17
  | **video** | [**MediaSummary**](MediaSummary.html) | | [optional] |
@@ -0,0 +1,19 @@
1
+ ---
2
+ title: UserExpands
3
+ ---
4
+ ## PureCloud::UserExpands
5
+
6
+ ## Properties
7
+
8
+ |Name | Type | Description | Notes|
9
+ |------------ | ------------- | ------------- | -------------|
10
+ | **routing_status** | [**RoutingStatus**](RoutingStatus.html) | ACD routing status | [optional] |
11
+ | **presence** | [**UserPresence**](UserPresence.html) | Active presence | [optional] |
12
+ | **conversation_summary** | [**UserConversationSummary**](UserConversationSummary.html) | Summary of conversion statistics for conversation types. | [optional] |
13
+ | **out_of_office** | [**OutOfOffice**](OutOfOffice.html) | Determine if out of office is enabled | [optional] |
14
+ | **geolocation** | [**Geolocation**](Geolocation.html) | Current geolocation position | [optional] |
15
+ | **station** | [**UserStations**](UserStations.html) | Effective, default, and last station information | [optional] |
16
+ | **authorization** | [**UserAuthorization**](UserAuthorization.html) | Roles and permissions assigned to the user | [optional] |
17
+ {: class="table table-striped"}
18
+
19
+
@@ -0,0 +1,19 @@
1
+ ---
2
+ title: UserProfile
3
+ ---
4
+ ## PureCloud::UserProfile
5
+
6
+ ## Properties
7
+
8
+ |Name | Type | Description | Notes|
9
+ |------------ | ------------- | ------------- | -------------|
10
+ | **id** | **String** | The globally unique identifier for the object. | [optional] |
11
+ | **name** | **String** | | [optional] |
12
+ | **state** | **String** | The state of the user resource | [optional] |
13
+ | **date_modified** | **DateTime** | Datetime of the last modification. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ | [optional] |
14
+ | **version** | **Integer** | The version of the group resource | |
15
+ | **expands** | [**UserExpands**](UserExpands.html) | User information expansions | [optional] |
16
+ | **self_uri** | **String** | The URI for this object | [optional] |
17
+ {: class="table table-striped"}
18
+
19
+
@@ -0,0 +1,22 @@
1
+ ---
2
+ title: UserProfileEntityListing
3
+ ---
4
+ ## PureCloud::UserProfileEntityListing
5
+
6
+ ## Properties
7
+
8
+ |Name | Type | Description | Notes|
9
+ |------------ | ------------- | ------------- | -------------|
10
+ | **entities** | [**Array&lt;UserProfile&gt;**](UserProfile.html) | | [optional] |
11
+ | **page_size** | **Integer** | | [optional] |
12
+ | **page_number** | **Integer** | | [optional] |
13
+ | **total** | **Integer** | | [optional] |
14
+ | **self_uri** | **String** | | [optional] |
15
+ | **first_uri** | **String** | | [optional] |
16
+ | **previous_uri** | **String** | | [optional] |
17
+ | **next_uri** | **String** | | [optional] |
18
+ | **last_uri** | **String** | | [optional] |
19
+ | **page_count** | **Integer** | | [optional] |
20
+ {: class="table table-striped"}
21
+
22
+
@@ -14,6 +14,7 @@ Method | Description
14
14
  [**delete_user_station_associatedstation**](UsersApi.html#delete_user_station_associatedstation) | Clear associated station
15
15
  [**delete_user_station_defaultstation**](UsersApi.html#delete_user_station_defaultstation) | Clear default station
16
16
  [**get_fieldconfig**](UsersApi.html#get_fieldconfig) | Fetch field config for an entity type
17
+ [**get_profiles_users**](UsersApi.html#get_profiles_users) | Get a user profile listing
17
18
  [**get_user**](UsersApi.html#get_user) | Get user.
18
19
  [**get_user_adjacents**](UsersApi.html#get_user_adjacents) | Get adjacents
19
20
  [**get_user_callforwarding**](UsersApi.html#get_user_callforwarding) | Get a user&#39;s CallForwarding
@@ -21,6 +22,7 @@ Method | Description
21
22
  [**get_user_favorites**](UsersApi.html#get_user_favorites) | Get favorites
22
23
  [**get_user_geolocation**](UsersApi.html#get_user_geolocation) | Get a user&#39;s Geolocation
23
24
  [**get_user_outofoffice**](UsersApi.html#get_user_outofoffice) | Get a OutOfOffice
25
+ [**get_user_profile**](UsersApi.html#get_user_profile) | Get user profile
24
26
  [**get_user_profileskills**](UsersApi.html#get_user_profileskills) | List profile skills for a user
25
27
  [**get_user_queues**](UsersApi.html#get_user_queues) | Get queues for user
26
28
  [**get_user_roles**](UsersApi.html#get_user_roles) | Returns a listing of roles and permissions for a user.
@@ -406,6 +408,78 @@ Name | Type | Description | Notes
406
408
 
407
409
 
408
410
 
411
+ <a name="get_profiles_users"></a>
412
+
413
+ ## -[**UserProfileEntityListing**](UserProfileEntityListing.html) get_profiles_users(opts)
414
+
415
+ Get a user profile listing
416
+
417
+
418
+
419
+ Wraps GET /api/v2/profiles/users
420
+
421
+
422
+ ### Example
423
+ ~~~ruby
424
+ # load the gem
425
+ require 'purecloudplatformclientv2'
426
+ # setup authorization
427
+ @secret = ENV['PURECLOUD_SECRET']
428
+ @id = ENV['PURECLOUD_CLIENT_ID']
429
+ environment = "mypurecloud.com"
430
+
431
+ @authToken = PureCloud.authenticate_with_client_credentials @id, @secret, environment
432
+
433
+ PureCloud.configure do |config|
434
+ config.access_token = @authToken
435
+ end
436
+
437
+ api_instance = PureCloud::UsersApi.new
438
+
439
+ opts = {
440
+ page_size: 25, # Integer | Page size
441
+ page_number: 1, # Integer | Page number
442
+ id: ["id_example"], # Array<String> | id
443
+ jid: ["jid_example"], # Array<String> | jid
444
+ sort_order: "ASC", # String | Ascending or descending sort order
445
+ expand: ["expand_example"], # Array<String> | Which fields, if any, to expand
446
+ state: "active" # String | Only list users of this state
447
+ }
448
+
449
+ begin
450
+ #Get a user profile listing
451
+ result = api_instance.get_profiles_users(opts)
452
+ p result
453
+ rescue PureCloud::ApiError => e
454
+ puts "Exception when calling UsersApi->get_profiles_users: #{e}"
455
+ end
456
+ ~~~
457
+
458
+ ### Parameters
459
+
460
+ Name | Type | Description | Notes
461
+ ------------- | ------------- | ------------- | -------------
462
+ **page_size** | **Integer**| Page size | [optional] [default to 25] |
463
+ **page_number** | **Integer**| Page number | [optional] [default to 1] |
464
+ **id** | [**Array&lt;String&gt;**](String.html)| id | [optional] |
465
+ **jid** | [**Array&lt;String&gt;**](String.html)| jid | [optional] |
466
+ **sort_order** | **String**| Ascending or descending sort order | [optional] [default to ASC]<br />**Values**: ascending, descending |
467
+ **expand** | [**Array&lt;String&gt;**](String.html)| Which fields, if any, to expand | [optional] <br />**Values**: routingStatus, presence, conversationSummary, outOfOffice, geolocation, station, authorization |
468
+ **state** | **String**| Only list users of this state | [optional] [default to active]<br />**Values**: active, deleted |
469
+ {: class="table table-striped"}
470
+
471
+
472
+ ### Return type
473
+
474
+ [**UserProfileEntityListing**](UserProfileEntityListing.html)
475
+
476
+ ### HTTP request headers
477
+
478
+ - **Content-Type**: application/json
479
+ - **Accept**: application/json
480
+
481
+
482
+
409
483
  <a name="get_user"></a>
410
484
 
411
485
  ## -[**User**](User.html) get_user(user_id, opts)
@@ -846,6 +920,69 @@ Name | Type | Description | Notes
846
920
 
847
921
 
848
922
 
923
+ <a name="get_user_profile"></a>
924
+
925
+ ## -[**UserProfile**](UserProfile.html) get_user_profile(user_id, opts)
926
+
927
+ Get user profile
928
+
929
+
930
+
931
+ Wraps GET /api/v2/users/{userId}/profile
932
+
933
+
934
+ ### Example
935
+ ~~~ruby
936
+ # load the gem
937
+ require 'purecloudplatformclientv2'
938
+ # setup authorization
939
+ @secret = ENV['PURECLOUD_SECRET']
940
+ @id = ENV['PURECLOUD_CLIENT_ID']
941
+ environment = "mypurecloud.com"
942
+
943
+ @authToken = PureCloud.authenticate_with_client_credentials @id, @secret, environment
944
+
945
+ PureCloud.configure do |config|
946
+ config.access_token = @authToken
947
+ end
948
+
949
+ api_instance = PureCloud::UsersApi.new
950
+
951
+ user_id = "user_id_example" # String | userId
952
+
953
+ opts = {
954
+ expand: ["expand_example"] # Array<String> | Which fields, if any, to expand
955
+ }
956
+
957
+ begin
958
+ #Get user profile
959
+ result = api_instance.get_user_profile(user_id, opts)
960
+ p result
961
+ rescue PureCloud::ApiError => e
962
+ puts "Exception when calling UsersApi->get_user_profile: #{e}"
963
+ end
964
+ ~~~
965
+
966
+ ### Parameters
967
+
968
+ Name | Type | Description | Notes
969
+ ------------- | ------------- | ------------- | -------------
970
+ **user_id** | **String**| userId | |
971
+ **expand** | [**Array&lt;String&gt;**](String.html)| Which fields, if any, to expand | [optional] <br />**Values**: routingStatus, presence, conversationSummary, outOfOffice, geolocation, station, authorization, profileSkills, locations, groups |
972
+ {: class="table table-striped"}
973
+
974
+
975
+ ### Return type
976
+
977
+ [**UserProfile**](UserProfile.html)
978
+
979
+ ### HTTP request headers
980
+
981
+ - **Content-Type**: application/json
982
+ - **Accept**: application/json
983
+
984
+
985
+
849
986
  <a name="get_user_profileskills"></a>
850
987
 
851
988
  ## -Array&lt;String&gt;** get_user_profileskills(user_id)