I am trying to do a GET request via curl_fetch_memory and I've set my credential in handle.
It is working on a normal url BUT now i am having issue doing GET to a url that requires API key.
Tried handle_setheaders BUT seems like it missed the user and password piece.
h <- new_handle()
handle_setopt(h, userpwd = [xxxx])
handle_setheaders(h, "API_Key" = [xxxx])
req <- curl_fetch_memory(url, handle = h)