How to perform REST API call in python
Hello
i'd like to run a report from BI Publisher using a REST API in python
The documentation provided specifies how to perform this call using curl
I'd prefer to use python instead of curl as it is more convenient technically
Using python request module i have managed to call for report parameters and report definition, it works fine
When i want to run a report using python request, each time it says 'bad request'
it seems that the python form syntax is not correct
This is an extract from my query
headers = {'Content-Type': 'multipart/form-data', 'Accept': 'multipart/form-data'}
files = {'ReportRequest': (None, '{"attributeFormat":"xml","attributeTemplate":"templatename","byPassCache":"true","flattenXML":"false"};type=application/json')}