APIs & Integrations

MSamovarov
Teilnehmer/-in

Subscriptions timeline for a portal snapshot question

lösung

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 Akzeptierte Lösung
himanshurauthan
Lösung
Vordenker/-in | Elite Partner
Vordenker/-in | Elite Partner

Subscriptions timeline for a portal snapshot question

lösung

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

Lösung in ursprünglichem Beitrag anzeigen

2 Antworten
himanshurauthan
Lösung
Vordenker/-in | Elite Partner
Vordenker/-in | Elite Partner

Subscriptions timeline for a portal snapshot question

lösung

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-Produktteam
HubSpot-Produktteam

Subscriptions timeline for a portal snapshot question

lösung

@himanshurauthan , any thoughts here 🙏