I’m using Go to attempt to use the REST API. I can do the call successfully with curl, but when I try it with Go, I get an error because the header “Authorization:Bearer” is illegal.
So, I checked the client library on Github, and I see it’s not using any such header; only HTTP basic auth. So, I try that and I get the error token_not_found.
I’m setting the Content-Type, Accept, and User-Agent headers just as the client library does.
Does anyone know what it takes to consume the API from Go without adding thousands of lines of unnecessary code to my application?