I'm working with an API where I need to post a couple of parameters. One of them is a colornumber. Below is my example. The problem is that once I use the command paste
it adds a \ to the string. And therefore the command doesn't seem to work with the API. Is there a way to create a string that just sais {"argb" : -16777216 }
in R.
paste('{"argb" : -16777216 }')
POST(url, authenticate(user, pw), body=list(58,'false','2000', '{"argb" : -16777216 }', 2000.0), encode= "json")