-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pagination improvements #18
Comments
Was asked about this in IRC over the weekend. Need to either document pagination or make it easier to do. |
Yes, this functionality is critical! Without it, the scripts I have are worthless, really. It took me forever to track down how to specify the page number, so I'll share here the python function that can call a specific page of attendees. #define as variables YOUREVENTID and YOURAUTHTOKEN
def get_page(pn): #pn is page number
pn=str(pn)
response = requests.get(
"https://www.eventbriteapi.com/v3/events/"+YOUREVENTID+"/attendees/?page="+pn+"&token="+YOURAUTHTOKEN,
verify = True,
)
return response.json() |
This should be high priority to fix. I might be able to send a PR later, but what I did for now was to subclass Eventbrite and implement a get_all_event_attendees function that cycles through the pagination. This has poor guarantees for completeness, but it's better than completely missing out on any page > 1
|
Is there still no pagination support? |
This is still unresolved. I don't see a way to use the API to get a second page or use a continuation value, especially for get_event_attendees, which won't take arbitrary keyword arguments and doesn't have arguments defined for pages/continuation. |
Ran into the same problem. I use e.g.
|
This has been resolved and is well documented on the Eventbrite website |
@larkinds it's easy with the rest api, but the python API doesn't expose it. |
The underlying REST API supports paging, but it is masked in a few places by overly-strict function signatures.
When a function gets called from the
AccessMethodsMixin
collection, thepage=1
keyword argument gets passed along to the REST request. However some of the functions defined in theEventbrite
class (such asget_event_attendees
) mask the auto-generated functions and don't have thepage
keyword argument, so there's no way to get to the second page.It would also be nice to have a helper utility to automatically retrieve the pages.
The text was updated successfully, but these errors were encountered: