func (cli *OpsGenieIntegrationClient) buildRequest(method string, uri string, body interface{}) goreq.Request { req := goreq.Request{} req.Method = method req.Uri = uri if body != nil { req.Body = body } if cli.proxy != "" { req.Proxy = cli.proxy } req.UserAgent = userAgentParam.ToString() return req }