Skip to content

Instantly share code, notes, and snippets.

@OseasSon
Created July 28, 2023 11:29
Show Gist options
  • Save OseasSon/fc4f1ee3e5e861575440f154ce8ef89e to your computer and use it in GitHub Desktop.
Save OseasSon/fc4f1ee3e5e861575440f154ce8ef89e to your computer and use it in GitHub Desktop.
Example payload from content_stat.survey
{
"type": "notification_event",
"app_id": "d90xxx0b",
"data": {
"type": "notification_event_data",
"item": {
"type": "content_stat.survey",
"created_at": 1690543628,
"content_stat": {
"id": "contentStatId123",
"content_type": "Untitled",
"content_id": "content123",
"stat_type": "${stat_type}",
"ruleset_id": "",
"content_title": "${stat_name}",
"ruleset_version_id": "",
"receipt_id": "",
"tags": {
"type": "list",
"has_more": false,
"data": [
{
"id": "5",
"type": "tag",
"url": "/tags/5"
}
],
"total_count": "1"
}
},
"contact": {
"type": null,
"id": "contact123",
"workspace_id": null,
"external_id": null,
"role": null,
"email": null,
"phone": null,
"name": null,
"avatar": null,
"owner_id": null,
"social_profiles": {
"type": "list",
"data": [
{
"type": "social_profile",
"name": "Twitter",
"url": "http://twitter.com/123"
}
]
},
"has_hard_bounced": null,
"marked_email_as_spam": null,
"unsubscribed_from_emails": null,
"created_at": null,
"updated_at": null,
"signed_up_at": null,
"last_seen_at": null,
"last_replied_at": null,
"last_contacted_at": null,
"last_email_opened_at": null,
"last_email_clicked_at": null,
"language_override": null,
"browser": null,
"browser_version": null,
"browser_language": null,
"os": null,
"location": {
"type": "location",
"country": "Ireland",
"region": "Dublin",
"city": "Dublin"
},
"android_app_name": null,
"android_app_version": null,
"android_device": null,
"android_os_version": null,
"android_sdk_version": null,
"android_last_seen_at": null,
"ios_app_name": null,
"ios_app_version": null,
"ios_device": null,
"ios_os_version": null,
"ios_sdk_version": null,
"ios_last_seen_at": null,
"custom_attributes": {},
"tags": {
"type": "list",
"data": [
{
"type": "tag",
"id": "5",
"url": "/tags/5"
}
],
"url": "/contacts/asd23erwe423/tags",
"total_count": 1,
"has_more": false
},
"notes": {
"type": "list",
"data": [
{
"type": "note",
"id": "213123",
"url": "/notes/213123"
}
],
"url": "/contacts/asd23erwe423/notes",
"total_count": 1,
"has_more": false
},
"companies": {
"type": "list",
"data": [
{
"type": "company",
"id": "asd23erwe423",
"url": "/companies/asd23erwe423"
}
],
"url": "/contacts/sadasdwerwqe/companies",
"total_count": 1,
"has_more": false
},
"opted_out_subscription_types": {
"type": "list",
"data": [
{
"id": "1",
"type": "subscription",
"url": "/subscription_types/1"
}
],
"url": "/contacts/asd23erwe423/subscriptions",
"total_count": 1,
"has_more": false
},
"opted_in_subscription_types": {
"type": "list",
"data": [
{
"id": "2",
"type": "subscription",
"url": "/subscription_types/2"
}
],
"url": "/contacts/asd23erwe423/subscriptions",
"total_count": 1,
"has_more": false
},
"utm_campaign": null,
"utm_content": null,
"utm_medium": null,
"utm_source": null,
"utm_term": null,
"referrer": null,
"sms_consent": null,
"unsubscribed_from_sms": null
},
"company": {
"model": {}
},
"answer": {
"answered_at": "2022-10-11T15:01:07.000Z",
"question_id": 2,
"question_text": "Rate your experience!",
"response": "Great"
},
"answers": [
{
"answered_at": "2022-10-11T15:01:07.000Z",
"question_id": 1,
"question_text": "How you find the support?",
"response": "Okay"
},
{
"answered_at": "2022-10-11T15:01:07.000Z",
"question_id": 6,
"question_text": "Any other feedback",
"response": "No"
}
]
}
},
"links": {},
"id": null,
"topic": "content_stat.survey",
"delivery_status": null,
"delivery_attempts": 1,
"delivered_at": 0,
"first_sent_at": 1690543628,
"created_at": 1690543628,
"self": null
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment