I have an URL to which i need to make an POST Call, given that i have Header Value, Request Body in JSON and the URl to make an POST Call.
Header : {
Authorization: "some_authorization_key",
Content-Type: "application/json"
}
URL : http://someurl.com/somepath
input JSON : {
key : sdasddasdas,
name: name
}
request Method : POST
I need to POST call in node js using the above details.
Can anyone provide me the code how to make an POST call using the above details