Skip to content

Commit

Permalink
Add ReviewsStream to Klaviyo integration
Browse files Browse the repository at this point in the history
This commit introduces a new stream, ReviewsStream, to the Klaviyo integration. The ReviewsStream is defined with its own name, path, primary keys, and replication key, allowing for the extraction of review data from the Klaviyo API. This enhances the data extraction capabilities of the tap.
  • Loading branch information
butkeraites-hotglue committed Nov 27, 2024
1 parent f201324 commit 2f42c4e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tap_klaviyo/streams.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,11 @@ class ListMembersStream(KlaviyoStream):
primary_keys = ["id"]
replication_key = "joined_group_at"
parent_stream_type = ListsStream

class ReviewsStream(KlaviyoStream):
"""Define custom stream."""

name = "reviews"
path = "/reviews"
primary_keys = ["id"]
replication_key = "updated"
2 changes: 2 additions & 0 deletions tap_klaviyo/tap.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
ListMembersStream,
ListsStream,
MetricsStream,
ReviewsStream,
)

STREAM_TYPES = [
Expand All @@ -19,6 +20,7 @@
MetricsStream,
EventsStream,
ListMembersStream,
ReviewsStream,
]


Expand Down

0 comments on commit 2f42c4e

Please sign in to comment.