-
Notifications
You must be signed in to change notification settings - Fork 35
Closed
Description
I'm attempting to replicate the example here for retrieving all pledges to a campaign: https://docs.patreon.com/?python#fetch-a-creator-profile-and-campaign-info
import patreon
access_token = nil # your Creator Access Token
api_client = patreon.API(access_token)
# Get the campaign ID
campaign_response = api_client.fetch_campaign()
campaign_id = campaign_response.data()[0].id()
# Fetch all pledges
all_pledges = []
cursor = None
while True:
pledges_response = api_client.fetch_page_of_pledges(campaign_id, 25, cursor=cursor)
pledges += pledges_response.data()
cursor = api_client.extract_cursor(pledges_response)
if not cursor:
break
However, I get the following error (I'm using a valud access_token):
Traceback (most recent call last):
File "get_patrons.py", line 16, in
cursor = api_client.extract_cursor(pledges_response)
File "/home/hate5six/hate5six.com/h5senv2.7/lib/python2.7/site-packages/patreon/api.py", line 74, in extract_cursor
'Provided cursor path did not result in a link', current_dict
Exception: ('Provided cursor path did not result in a link', u'https://www.patreon.com/api/oauth2/api/campaigns...')
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels