So, I'm making simple get requests to urls like:
api.github.com/search/code?q=+language:haskell+repo:krispo/awesome-haskell
Basically specifying the language and the repo, and it does work when the request is made from postman or from the browser.
However, when using https://github.com/libcpr/cpr, I'm getting the following response:
{
"message": "Validation Failed",
"errors": [
{
"message": "Must include at least one user, organization, or repository",
"resource": "Search",
"field": "q",
"code": "invalid"
}
],
"documentation_url": "https://docs.github.com/v3/search/"
}
This is how I'm making the request:
cpr::Response req2 = cpr::Get(cpr::Url{"api.github.com/search/code?q=+language:haskell+repo:krispo/awesome-haskell"});
Am I missing anything?