Skip to content

Instantly share code, notes, and snippets.

View vinzenzweber's full-sized avatar
🎯
Focused on Hello Inside

Vinzenz Weber vinzenzweber

🎯
Focused on Hello Inside
View GitHub Profile
@vinzenzweber
vinzenzweber / fix_klaviyo_profile_marketing_status.py
Created September 20, 2024 10:02
Fix Klaviyo Email Marketing subscription status for users, after accidentally enabling Email Marketing on list import
# I accidentally resubscribed all users during import to a list in Klaviyo.
# This script will find the subscription status prior to that change and create a suppresion list.
#
# Description: This script will fetch all profiles from a list, then fetch all events for each profile.
# It will then filter out the latest event for each profile and determine if the user is subscribed or unsubscribed.
# It will then write the results to a file and extract emails of users who have unsubscribed.
import json
import requests

Keybase proof

I hereby claim:

  • I am vinzenzweber on github.
  • I am vinzenzweber (https://keybase.io/vinzenzweber) on keybase.
  • I have a public key ASDbTz0XYSA7Q9bP2I7svSi5RS0ZQxxDZkLzLeC-SMQw3go

To claim this, I am signing this object: