Good one every one,
Can any1 spot which is the problem on the following code?, trying to test how GoodData exports a dashboard to a PDF.
def post_request(url, data):
response = requests.post(
url,
data=data,
headers={'Authorization': 'Bearer ' + auth_token,
'Content-type': 'application/json'}
, timeout=30
)
result = post_request(
HOST_URL + '/api/v1/actions/workspaces/' + WORKSPACE_ID + '/export/visual',
data={
"dashboardId": DASHBOARD_ID,
"fileName": "export_test_01",
"metadata": {}
}
)
it's returning No API path found that matches request.
Just in case some1 is wondering, token is good as I'm able to retrieve from endpoint '/api/v1/entities/workspaces' the workspaces, but when trying to perform the post above it's not working.

Best answer by Moises Morales
View original