Hello guys,
I would like to look up the last 10 recent time-series event associated to a specific Prodile Id by using API call, where can I find the correct API call I can perform?
Thanks
Solved! Go to Solution.
Views
Replies
Total Likes
Hi @Luca_Lattarini ,
you can make use of API which extracts experience events by identity & here is sample request. To extract 'limit' query parameter in request url helps you to extract number of records you want in response.
curl -X GET \
'https://platform.adobe.io/data/core/ups/access/entities?schema.name=_xdm.context.experienceevent&rel...limit=1' \
-H 'Authorization: Bearer {ACCESS_TOKEN}' \
-H 'x-api-key: {API_KEY}' \
-H 'x-gw-ims-org-id: {ORG_ID}' \
-H 'x-sandbox-name: {SANDBOX_NAME}'
Views
Replies
Total Likes
Hi @Luca_Lattarini ,
you can make use of API which extracts experience events by identity & here is sample request. To extract 'limit' query parameter in request url helps you to extract number of records you want in response.
curl -X GET \
'https://platform.adobe.io/data/core/ups/access/entities?schema.name=_xdm.context.experienceevent&rel...limit=1' \
-H 'Authorization: Bearer {ACCESS_TOKEN}' \
-H 'x-api-key: {API_KEY}' \
-H 'x-gw-ims-org-id: {ORG_ID}' \
-H 'x-sandbox-name: {SANDBOX_NAME}'
Views
Replies
Total Likes
hello @AtulChavan ,
Thanks for your answer.
I have a question regarding the end point
https://platform.adobe.io/data/core/ups/access/entities?schema.name=
_xdm.context.experienceevent
&relatedSchema.name=_xdm.context.profile
&relatedEntityId=89149270342662559642753730269986316900
&relatedEntityIdNS=ECID&fields=endUserIDs,web,channel
&startTime=1531260476000
&endTime=1531260480000
Why we dont use schema.name=_xdm.context.profile and &relatedSchema.name=_xdm.context.experienceevent ?
Thanks
Views
Replies
Total Likes
@Luca_Lattarini @AtulChavan One trick I use so I don't have to change timestamps is "order by":
orderby=-timestamp&limit=10
Views
Replies
Total Likes
- for descending
nothing for ascending (just timestamp)
Great Tip! Thank you @Danny-Miller
Views
Replies
Total Likes
Thanks very helpful
Views
Replies
Total Likes
Views
Replies
Total Likes
Views
Likes
Replies