Is it possible to do a GET request with data such as:
curl -G -v https://someendpoint \
-d "api_key=myapikey"
Which works. In Golang I tried:
payload := url.Values{}
payload.Add("api_key", "myapikey")
req, err := http.NewRequest(
"GET",
"https://someendpoint",
bytes.NewBufferString(payload.Encode()),
)
But the api key is not being recognised.