How to retrieve timestamp information on hourly basis using Pendo API through Python

Comments

1 comment

  • Official comment
    Avatar
    Todd Stoffer

    Hi Narayan, 

    Thanks for sharing with the community! Based on the error message that you posted - there may be something missing from the body of the API call. Here is an example hourRange API call for the pageEvents source.

    {
    "response": {
    "location": "request",
    "mimeType": "application/json"
    },
    "request": {
    "requestId": "Sample Request",
    "pipeline": [
    {
    "source": {
    "pageEvents": {
    "pageId": "YOUR PAGE ID HERE"},
    "timeSeries": {
    "period": "hourRange",
    "first": "1639058400000",
    "count": -1
    }
    }
    }
    ]
    }
    }

    I hope this helps! 

    Comment actions Permalink

Please sign in to leave a comment.