Refactored to pass in request info as a ApiRequest struct.

Not sure how "go-like" this is, but I'll roll with it for now.