httr POST authentication error
问题 I am trying to structure a POST json request using httr. The API documentation proposes the following the CURL request: curl -X POST -H "Authorization:Token XXXXXXXXX" -H "Content-Type: application/json" --data "{\"texts\":[\"A simple string\"]}" https://api.uclassify.com/v1/uclassify/topics/classify My R httr implementation is the following: POST("https://api.uclassify.com/v1/uClassify/Topics/classify", encode="json", add_headers('Authorization:Token'="XXXXXXXXX"), body=("A simple string"))