Created
August 29, 2018 15:18
-
-
Save sharoonthomas/4319a3ceba99740ff91605bd1ec420e7 to your computer and use it in GitHub Desktop.
Reading Fulfil interactive reports from API
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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