Can we filter 'visitor_history' records using 'visitors' lastupdated?

Hi,

We writing an integration using Pendo REST APIs and we are trying to find a way filter visitor_history records.

We identified lastupdated and lastvisit keys in visitor's records and we would like to know following,

  • Can we compare the visitor's lastupdated or lastvisit with timestamps on visitor_history to filter the records?
  • Or can we have visitor_history record with greater timestamp than 
  • visitor's lastupdated or lastvisit?
  • Does visitors['lastvisit'] create an event in visitor_history?
  • If thats possible, which is the appropriate key between lastupdated and lastvisit which can be used as filter?

Visitors response:

{
    "id": "4",
    "email": "",
    "accountIds": [
        "Epsilon united"
    ],
    "metadata": {
        "agent": {
            "email": "quam.quis@eratvolutpat.edu",
          .
        },
        "auto": {
            "accountid": "Epsilon united",
            "accountids": [
                "Epsilon united"
            ],
            "firstvisit": 1506351511034,
            "id": "4",
          .,
        .,
            "lastservername": "pendosandbox.com",
            "lastupdated": 1506358391050,
            "lastvisit": 1506358390891,
            "nid": 4
        }
    },
    "accountId": "Epsilon united"
}

 

Visitor History:

curl -X GET \
  https://app.pendo.io/api/v1/visitor/4/history?starttime=1506341326000 \
  -H 'content-type: application/x-www-form-urlencoded' \
  -H 'x-pendo-integration-key: 63bd1cda-db5a-4a2b-633b-37b8b0c5462c'
[{
        "type": "untagged",
        "ts": 1506351480000,
        "parsedUserAgent": {
            "name": "Chrome",
            "version": "60.0.3112",
            "os": "Mac OS X"
        },
        "duration": 120000,
        "lastTs": 1506351600000,
        "untaggedUrl": "http://pendosandbox.com/index.html"
  },
    .
  .
]

Thank you in advance!

0

コメント

0件のコメント

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

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

新規投稿