Hiā¦I am a newbie college student and need some urgent help in running an API. I am trying to test it via postman but I am getting errors so need help in configuring. The API call I need to make is Create a talk. The API developers have given me the following Authorization details - "Your API credentials:
API key - bHRpY3VsdHwuY29tcHJhbmF2Lm11VyYWxAZ21haW
API secret - pQaE-ceDi3nFzUNNzoYi
How to use them?
Add to the messages authorization header:
Authorization: Basic bHRpY3VsdHwuY29tcHJhbmF2Lm11VyYWxAZ21haW: pQaE-ceDi3nFzUNNzoYi" (Iāve changed the API key to hide secret). Can someone please tell me how to setup this test request in Postman?
Also when I am trying to test it using Curl as below, what is the mistake I am making? as I am getting the below error
curl --request POST --url https://api.d-id.com/talks
āheader ācontent-Type: application/jsonā
āheader āaccept: application/jsonā
āheader āauthorization: Basic bHRpY3VsdHwuY29tcHJhbmF2Lm11VyYWxAZ21haW: pQaE-ceDi3nFzUNNzoYiā
ādata ā{ "source_url": "Dropbox - MummyMugshot1.jpg - Simplify your life" }ā
Error Message
{āmessageā:āUnauthorizedā}
curl: (3) URL using bad/illegal format or missing URL