The following is a valid URL in the browser (I know, browser is less strict).
However when I give it to rest-client it just throws a `bad URI(is not URI?).
So, none of the things I've tried after having read the answers from this question work. They all give various errors, like can't gsub addressable, undefined method match, etc.
I'm not sure what next to do.
I know it's not real uri but that's how their API is (rubbish I know, but I can't change it)
Also, I can't put the []
bit in quotes, there API just ignores it.
EDIT:
I changed the places holders for fake values.
In the end, I Solved the problem by just doing something else.
I used the Curb gem to make the request and then used the JSON gem to parse the output (after ensuring the return format is JSON).