Skip to content

Instantly share code, notes, and snippets.

@sharoonthomas
Created August 29, 2018 15:18
Show Gist options
  • Save sharoonthomas/4319a3ceba99740ff91605bd1ec420e7 to your computer and use it in GitHub Desktop.
Save sharoonthomas/4319a3ceba99740ff91605bd1ec420e7 to your computer and use it in GitHub Desktop.
Reading Fulfil interactive reports from API
from datetime import date
from fulfil_client import Client
fulfil = Client('<subdomain>', '<apikey>')
# Fetch the report instance
# The name can be obtained from the URL
report = fulfil.interactive_report('account.invoice.revenue_by_month.ireport')
# Trigger execution with the fields
report.execute(start_date=date(2018, 1, 1), end_date=date(2018, 12, 31))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment