Legacy Dev Forum Posts

 View Only

Sign Up

Legacy Tool Migrated To PureCloud

  • 1.  Legacy Tool Migrated To PureCloud

    Posted 06-05-2025 18:08

    Abhijeet | 2019-12-17 11:39:53 UTC | #1

    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


    tim.smith | 2019-12-17 15:54:36 UTC | #2

    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.


    Abhijeet | 2019-12-19 13:59:29 UTC | #3

    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.


    tim.smith | 2019-12-19 15:13:11 UTC | #4

    Abhijeet, post:3, topic:6752
    How do I login/Authenticate to my instance using PythonSDK

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

    Abhijeet, post:3, topic:6752
    How can I incorporate the reference queries into my Python code.

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

    Abhijeet, post:3, topic:6752
    Can you share a sample end to end code from authentication to data retrieval.

    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


    system | 2020-01-19 15:13:14 UTC | #5

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


    This post was migrated from the old Developer Forum.

    ref: 6752