I've got an api I'm trying to connect to that has basic http authentication. In looking at the SDK documentation, it looks like there should be a means for handling authentication, but there isn't a model to show what should be in the map of 'http_auth'. The following is a code example, but I'm getting an access denied error and it looks like the username is not getting through. Any tips on this?
// Send data to api import com.carriots.sdk.utils.BasicHttp httpHeader = [:] httpPayload = context.toString() def Request = new BasicHttp() Request.url = 'http://api.example.com/endpoint' Request.verb = 'POST' Request.headers = httpHeader Request.payload = httpPayload Request.http_auth = ['myusername' : 'mypassword'] Request.send()