Shazam Core

भुगतान किया गया
द्वारा Tipsters CO | अपडेट किया गया 15일 전 | Music
लोकप्रियता

9.9 / 10

लेटेंसी

1,750ms

सेवा का स्तर

100%

Health Check

100%

सभी चर्चाओं पर वापस जाएं

Where to put the file path in payload?

Rapid account: Eswarssethu 2002

Hi, I was working on a project which recognize songs after recording them. I use python. I’m new to rapidapi so i don’t know where i should put the wav file in the code,the payload variable. I tried giving my filename instead of “name=file” which is already there and it gave me an output like this:

{“detail”:[{“loc”:[“body”,“file”],“msg”:“field required”,“type”:“value_error.missing”}]}

I uploaded the wav file separately and it works. Can you please give me the code to add the wav file to my program. Thank you.!!

Rapid account: Eswarssethu 2002
eswarssethu2002 Commented 2년 전

Tutorial uses PHP to demonstrate the usage of the api. I didn’t find a documentation for python.

Rapid account: Tipsters
tipsters Commented 2년 전

You just need to send the file. In the Python language, see the documentation on how to do this. You can find a good developer to help you.

Rapid account: Eswarssethu 2002
eswarssethu2002 Commented 2년 전

I’m new to rapid and this endpoint thing is pretty hard to understand and currently I’m stuck here:
payload = "-----011000010111000001101001\r
Content-Disposition: form-data; name=“file”\r
\r
\r
-----011000010111000001101001–\r
\r
"
I tried giving my filename in the name=“file” but it didn’t work.
I used another rapid api and it didn’t have this kind of format in payload. Please help me out.

Rapid account: Tipsters
tipsters Commented 2년 전

Hi, Have you tried the code examples from Rapid?
Write to me by mail or telegram

चर्चा में शामिल हों - नीचे टिप्पणी जोड़ें:

नई टिप्पणियाँ पोस्ट करने के लिए लॉग इन / साइनअप करें