I'm currently working on setting up a Lyrebird application, but I only have a basic understanding of javascript and php. Despite my efforts to implement a cURL request from , I've encountered issues trying to get it to work in both javascript and PHP.
The specific example I need to execute (using fictional details) is as follows:
# 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"
}
Can someone guide me on how I can successfully run this request using a specific programming language to achieve the expected response mentioned in the example?