Hi!
I’m trying to recover one specific info from a POST that i’ve done.
import requests
import json
url = "https://api.pipefy.com/graphql"
payload = {"query": "mutation {exportPipeReport(input: { pipeId:\"XXXXX\", pipeReportId: \"XXXXX\"}) {pipeReportExport {id}}}"}
headers = {
    "Authorization": "Bearer XXXX",
    "Content-Type": "application/json"
}
response = requests.request("POST", url, json=payload, headers=headers)
data = json.loads(response.text)
Id_relatorio = data['data']
print(Id_relatorio)I’m using python 3, but i can only recover the entire data:
{
  "data": {
    "exportPipeReport": {
      "pipeReportExport": {
        "id": "302968765"
      }
    }
  }
}
Do you have any idea how to manipulate the returning JSON, with python, in order to print only the “ID” info?
Thanks!

