APIs & Integrations

MSamovarov
参加者

Subscriptions timeline for a portal snapshot question

解決

Hello, I would like to know more about subscriptions timeline for a portal endpoint. I do not quite understand Include Snapshots property. What data type does it take? I assumed that it takes boolean type and made a request:

 

 

https://api.hubapi.com/email/public/v1/subscriptions/timeline?includeSnapshots=true&hapikey=HAPI_KEY

 

 

As a result, apart from other response data I got a strange subscriptionStatuses  field, where results were the same, apart from id's (see image below).

My question is, why this data is the same and what is it?responseresponse

 

1件の承認済みベストアンサー
himanshurauthan
解決策
ソートリーダー | Elite Partner
ソートリーダー | Elite Partner

Subscriptions timeline for a portal snapshot question

解決

Hi @MSamovarov,

 

It includes the user's full subscription snapshot with each timeline item and it's similar to this -

https://legacydocs.hubspot.com/docs/methods/email/get_status. It's the same because it shows, all the timeline items and status of a particular email corresponds to that particular subscription.

 

To elaborate this in detail, try these steps -

 

  1. fetch all the subscriptions using this API - https://legacydocs.hubspot.com/docs/methods/email/get_subscriptions

  2. Match the subscription ids in the subscription statuses.

 

This overview will give you more ideas of how this works - https://legacydocs.hubspot.com/docs/methods/email/email_subscriptions_overview

 

Hope this helps,

Digital Marketing & Inbound Expert In Growth Hacking Technology

元の投稿で解決策を見る

2件の返信
himanshurauthan
解決策
ソートリーダー | Elite Partner
ソートリーダー | Elite Partner

Subscriptions timeline for a portal snapshot question

解決

Hi @MSamovarov,

 

It includes the user's full subscription snapshot with each timeline item and it's similar to this -

https://legacydocs.hubspot.com/docs/methods/email/get_status. It's the same because it shows, all the timeline items and status of a particular email corresponds to that particular subscription.

 

To elaborate this in detail, try these steps -

 

  1. fetch all the subscriptions using this API - https://legacydocs.hubspot.com/docs/methods/email/get_subscriptions

  2. Match the subscription ids in the subscription statuses.

 

This overview will give you more ideas of how this works - https://legacydocs.hubspot.com/docs/methods/email/email_subscriptions_overview

 

Hope this helps,

Digital Marketing & Inbound Expert In Growth Hacking Technology
dennisedson
HubSpot製品開発チーム
HubSpot製品開発チーム

Subscriptions timeline for a portal snapshot question

解決

@himanshurauthan , any thoughts here 🙏