I am trying to get all my current patrons. Here is my Python code.
import patreon
access_token = ‘XXXX’
api_client = patreon.API(access_token)
campaign_response = api_client.fetch_campaign()
campaign_id = campaign_response.data()[0].id()
all_pledges = []
cursor = None
while True:
pledges_response = api_client.fetch_page_of_pledges(campaign_id, 25, cursor=cursor)
cursor = api_client.extract_cursor(pledges_response)
all_pledges += pledges_response.data()
if not cursor:
break
print(len(all_pledges))
The output of this is 415. But when I go to my Patreon dashboard - it says that I have 423 Patrons. What happened to 8 patrons? I also found out that this 8 patrons canceled their pledge. How ever I need to get all active patrons as i see it in dashboard or via csv. Any ideas?