You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+29Lines changed: 29 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -54,7 +54,36 @@ print(usersApi.get_users_me())
54
54
55
55
```
56
56
57
+
### Authorization Code Grant
57
58
59
+
* The app is authenticating as a human, the [Authorization Code Grant](https://developer.mypurecloud.com/api/rest/authorization/use-authorization-code.html)
60
+
* The app is served via a web server
61
+
* There is server-side code that will be making API requests
By default the SDK will use the refresh token to request a new access token transparently when it expires. If multiple threads are running 1 thread will request a new token, other threads will wait a maximum of 10 seconds for the token refresh to complete, this time can be overriden with the _refresh_token_wait_time_ field of the _Configuration_ object.
72
+
If you wish to implement the refresh logic, set _should_refresh_access_token_ to false and store the refresh token from the auth response. The expires_in value can be used to proactively request a new one before it expires:
When the access token expires refresh it using the refresh_code_authorization_token method using the same clientId and clientSecret as used to request it.
Copy file name to clipboardExpand all lines: build/PureCloudPlatformClientV2/__init__.py
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1277,6 +1277,7 @@
1277
1277
from .models.participantimportParticipant
1278
1278
from .models.participant_attributesimportParticipantAttributes
1279
1279
from .models.participant_basicimportParticipantBasic
1280
+
from .models.participant_metricsimportParticipantMetrics
1280
1281
from .models.patch_action_targetimportPatchActionTarget
1281
1282
from .models.patch_bu_rescheduling_options_management_unit_requestimportPatchBuReschedulingOptionsManagementUnitRequest
1282
1283
from .models.patch_bu_rescheduling_options_requestimportPatchBuReschedulingOptionsRequest
@@ -2052,6 +2053,9 @@
2052
2053
from .models.web_chat_routing_targetimportWebChatRoutingTarget
2053
2054
from .models.web_chat_settingsimportWebChatSettings
2054
2055
from .models.web_chat_typingimportWebChatTyping
2056
+
from .models.web_deployments_config_topic_web_messaging_config_change_event_bodyimportWebDeploymentsConfigTopicWebMessagingConfigChangeEventBody
2057
+
from .models.web_deployments_deployment_topic_web_messaging_config_change_event_bodyimportWebDeploymentsDeploymentTopicWebMessagingConfigChangeEventBody
2058
+
from .models.web_deployments_deployment_topic_web_messaging_deployment_change_event_bodyimportWebDeploymentsDeploymentTopicWebMessagingDeploymentChangeEventBody
2055
2059
from .models.week_scheduleimportWeekSchedule
2056
2060
from .models.week_schedule_generation_resultimportWeekScheduleGenerationResult
2057
2061
from .models.week_schedule_list_item_responseimportWeekScheduleListItemResponse
0 commit comments