When i just copy and paste the example then i get the error:“Missing RapidAPI application key”.
I have no idea why its not working. Can you please help me.
Greetings
Longfei Lin
here is my code
`import requests
url = "https://toonify.p.rapidapi.com/v0/toonify"
query = {
“x-rapidapi-host”: “toonify.p.rapidapi.com”,
“x-rapidapi-key”: “my key~~~~not missing”,
“accept”: “application/json”,
}
headers = {“accept”: “application/json”}
files = {“image”: open(“img.png”, “rb”)}
response = requests.request(“POST”, url, files=files, headers=headers, params=query)
print(response.json())`
Doe mee aan de discussie - voeg hieronder een opmerking toe
Sorry, this was my fault in some terrible copy and pasting for the example. It should look like this:
the api key etc should be in headers not the query. I’ll update the documentation shortly. Apologies again!