How to call API Post in R
Request URL https://westus.api.cognitive.microsoft.com/text/analytics/v2.0/sentiment
Request headers Ocp-Apim-Subscription-Key = some value & Content-Type = application/json
Body application/json
{
"documents": [
{
"language": "string",
"id": "string",
"text": "string"
}
]
}
Please help!!!
httr::POSTexamples with JSON content on StackOverflow. You're asking folks to do the work for you. - hrbrmstr