Quantcast
Channel: Active questions tagged rest - Stack Overflow
Viewing all articles
Browse latest Browse all 4797

exporting CSV data using rest API python

$
0
0

I am trying to get a CVS file from a database using the rest API but I am only getting the top row of the CVS file

payload = "SELECT * FROM so WHERE num = 26254"  headers = {'Content-Type': 'application/sql','Authorization': 'Bearer '+ Token  }  response = requests.request("GET", url, headers=headers, data=payload)  data = response.text

when I run this function I want every row and column in the CSV file


Viewing all articles
Browse latest Browse all 4797

Trending Articles