I've been trying to make a Lyrebird application work. Mind that I only have basic javascript/php knowledge and have never done this so I tried implementing a cURL request noted on: "http://docs.lyrebird.ai". Needlessly to say that it doesn't work in javascript as well as PHP (even though I looked up on how to do it?)
I only need to run this example (the details are fake):
# Request #
curl -H 'Content-Type: application/json'
'https://avatar.lyrebird.ai/api/v0/token' -d
'{
"grant_type": "authorization_code",
"client_id": "19qV2jZy1G44ifOxk6kgowAt9F0",
"client_secret": "19qnfRvIXdmQKhSbLG0CLxng5Mz",
"code": "19qozJe3hwnPvfl5xyNuR3MJ1NK"
}'
# expected Response #
{
"access_token": "18QdNlaDvkzMbgQ5SXmKNGmexWo"
}
How do I run the request (programming language?) in a way I get the "Expected Response" noted in the example?