revdotcom / revai-examples

5 stars 7 forks source link

Basic curl request from docs #3

Open fatihyildizhan opened 4 years ago

fatihyildizhan commented 4 years ago

Hi,

When I run this request I am getting "Unsupported options" error. I just want to verify my token and make a sample request. How can I add options?

This is the first example on docs: https://www.rev.ai/docs

curl -X POST "https://api.rev.ai/speechtotext/v1/jobs" -H "Authorization: Bearer my_token" -H "Content-Type: application/json" -d "{\"media_url\":\"https://www.rev.ai/FTC_Sample_1.mp3",\"metadata\":\"This is a sample submit jobs option\"}"

fatihyildizhan commented 4 years ago

curl -X POST "https://api.rev.ai/speechtotext/v1/jobs" -H "Authorization: Bearer my_token" -H "Content-Type: application/json" -d "{\"media_url\":\"https://www.rev.ai/FTC_Sample_1.mp3\",\"metadata\":\"This is a sample submit jobs option\"}"

\ was missing after mp3