Load batch responses #283

Merged
merged 6 commits into from Jan 18, 2018

Conversation

Projects
None yet
3 participants

karnstrand commented Feb 3, 2017

Loading objects that result from batch requests, more specifically this is useful for paginated insight responses which can be iterated in the same way as single request insights responses .

Example:

my_api_batch = api.new_batch()
request = campaign.get_insights(batch=my_api_batch)
my_api_batch.execute()
insights = request.load()

@xiaotchen xiaotchen merged commit 9c53294 into facebook:master Jan 18, 2018

1 check passed

continuous-integration/travis-ci/pr The Travis CI build passed
Details
Contributor

xiaotchen commented Jan 18, 2018

Thanks for working on the feature!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment