I have an excel spreadsheet, which contains 5 columns and 30 rows. All column and row information are already filled in. What I would like to do is take this worksheet and send a request to an api to make, for example, a product registration. This product registration within the API would be according to the column and row names. How could I do this in python?
EDIT:
To make requests in this api:
url = "https://myurl/api/catalog/pvt/product"
headers = {
"Accept": "application/json",
"Content-Type": "application/json",
"API-AppKey": "MYKEY",
"API-AppToken": "MYTOKEN"
}
response = requests.post(url, headers=headers, data=payloads)
response = response.json()
In my excel file, column A is column Name. Column B is the Category column, price column C.. and so on.
df.to_json()method to dump it into json format.