BI Publisher (MOSC)

MOSC Banner

How to perform REST API call in python

edited Apr 15, 2022 11:31AM in BI Publisher (MOSC) 5 commentsAnswered ✓

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')}

Tagged:

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center