Legacy Tool Migrated To PureCloud

Hi Team,

We used to read our data from legacy system using sql database connectors. However we are migrated to PureCloud now. So we want to understand from where and how we can extract the same tables/views that we were extracting in the legacy system from PureCloud database using PythonSDK. What will be the steps to use the Python SDK to read our data from PureCloud.

Thanks,

Abhijeet Hivarkar

You'll need to use Analytics queries to retrieve historical data from PureCloud. See https://developer.mypurecloud.com/api/rest/v2/analytics/conversation.html. The Dev Tools Analytics Query Builder will be useful for designing and testing your queries before coding them into your app.

Thanks for your reply.

I have gone through the shared references.

I have below questions around it(Pardon me as it can be some basic questions as I am new to this),

  1. How do I login/Authenticate to my instance using PythonSDK
  2. How can I incorporate the reference queries into my Python code.

Can you share a sample end to end code from authentication to data retrieval.

https://developer.mypurecloud.com/api/rest/client-libraries/python/index.html#authenticating

https://developer.mypurecloud.com/api/rest/client-libraries/python/AnalyticsApi.html#post_analytics_conversations_details_query

This tutorial is a conversation aggregate query, but the concept is the same:

https://developer.mypurecloud.com/api/tutorials/analytics-conversation-aggregate-query/?language=python&step=1

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.