How to retrieve all application data using Pendo API through Python

Comments

2 comments

  • Avatar
    Howard Lio

    Jesse Kitchens with the solution here:

    "Pendo only returns data for the default app in a subscription w/o specifying the app or expanding to all apps in the request. 

    You'll need to use "appId": "expandAppIds(\"*\")" which is necessary to pull event data from multi-app accounts.  As an example, try using the call below where appId has been specified under the rowSource of the request:"
    {
        "channelId": "",
        "response": {
            "location": "request",
            "mimeType": "application/json"
        },
        "request": {
            "name": "",
            "pipeline": [
                {
                    "source": {
                        "pageEvents": {
                            "appId": "expandAppIds(\"*\")"
                        },
                        "timeSeries": {
                            "period": "dayRange",
                            "first": "now()",
                            "count": -1
                        }
                    }
                }
            ],
            "requestId": ""
        }
    }
     
    If you want app data specific for an app, replace “expandAppIds(\“*\“)” with the actual ID of the app you want the data for.
    0
    Comment actions Permalink
  • Avatar
    Angela Holly

    The above response is what you'll use when making calls against the aggregation endpoint (https://app.pendo.io/api/v1/aggregation) to get event data. 

    For other V1 API calls, such as as the feature endpoint (https://app.pendo.io/api/v1/feature) or page endpoint (https://app.pendo.io/api/v1/page), you would add ?expand=*  to the end of your request URL to get a list of features/pages from all applications in the subscription.

    https://app.pendo.io/api/v1/feature
    This would get you features for just the default application in the subscription.

    https://app.pendo.io/api/v1/feature?expand=*
    This would get your features for all applications in the subscription

    0
    Comment actions Permalink

Please sign in to leave a comment.