data-encode-url in R
curl "https://www.zopim.com/api/v2/chats/search" \
-G --data-urlencode "q=timestamp:[2016-02-02T16:00:00 TO *] \
-v -u {email_address}:{password}
How to convert --data-urlencode this in R?
This is what I have so far: without the search part
chats <<- getURL('https://www.zopim.com/api/v2/chats/', verbose = TRUE, userpwd = "username:pwd", httpauth = 1L)
where and how to add
--data-urlencode "q=timestamp:[2016-02-02T16:00:00 TO *]
in R?