Closed stephlocke closed 8 years ago
awesome! (yes a bug like this is awesome) thx.
I came across another one yesterday, too (weird $
where I didn't think it was legal). This helps alot since I knew there'd be "edge" cases but hadn't run across many.
You can have faith in me when it comes to finding edge cases :+1:
Thanks for picking this up so quickly!
So, I'm guessing this wasn't a "Copy as cURL" URL (i.e. from a browser), but a regular cURL command line, correct?
I'll have to peek at the JS library I use with V8 to see why it's not liking it (it's a problem with that library, not the R side. ugh. javascript.
omgosh they made an assumption that there would always be more than one -H
. This slightly modified cmdline works:
curlCMD <- "curl -v -X GET 'https://api.owler.com/v1/company/basicsearch?q=facebook&fields=name&format=json' -H 'Origin: https://www.owler.com' -H 'user_key:XXXXX' -k"
this also means it'll be (prbly) be a quick fix.
Great - I also have a nice workaround then for the interim :-) Cheers
and for background - the owler docs allow you to test the api and it gives you a request url and a curl command https://developers.owler.com/docs#!/CompanyAPI/basicCompanySearch
Give it a go when you get a change. It worked on that test URL and I added that test URL to the test suite. Thx for this!
Works! Thank you for the package and the swift turnaround on this :-D
Heya Bob, Just giving this a whirl with a curl command that works (tested in commandline) but I'm getting an error when attempting to convert. If I remove the user_key component it doesn't error.
Code
Results on my machine