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

Hi all,

I have been using Pendo V1 API through Python to get Pendo data.I can make API calls for "events" and "guideEvents" with timeseries period set to "dayRange" or "hourRange" and i get the data.

I can get Feature events ,Page events and Track events data with timeseries period set to "dayRange".

But when i call them with timeseries period set to "hourRange",i get the error

JSONDecodeError: Expecting value: line 1 column 1 (char 0)

Can we get the feature events and page events data on hourly basis?

Pls provide me with any reference to the API calls for feature events and page events and how to get its data with hourly timestamp.

 

Thanks in advance

0

コメント

1件のコメント
  • 正式なコメント

    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! 

サインインしてコメントを残してください。

お探しのものを見つけられませんでしたか?

新規投稿