func (client *Client) uriForAPI(api string) (string, error) {
	apiBase, err := url.Parse(client.baseUrl + "/api" + api)
	if err != nil {
		return "", err
	}
	q := apiBase.Query()
	q.Add("api_key", client.apiKey)
	q.Add("application_key", client.appKey)
	apiBase.RawQuery = q.Encode()
	return apiBase.String(), nil
}
func (client *Client) uriForAPI(api string) (string, error) {
	apiBase, err := url.Parse(client.baseUrl + "/api" + api)
	if err != nil {
		return "", err
	}
	q := apiBase.Query()
	q.Add("api_key", client.apiKey)
	q.Add("application_key", client.appKey)
	apiBase.RawQuery = q.Encode()
	return apiBase.String(), nil
}
func ( client * Client ) uriForAPI ( api string ) ( string , error ) { apiBase , err := url . Parse ( client . baseUrl + " " + api ) if err != nil { return " " , err } q := apiBase . Query ( ) q . Add ( " " , client . apiKey ) q . Add ( " " , client . appKey ) apiBase . RawQuery = q . Encode ( ) return apiBase . String ( ) , nil }
// uriForAPI is to be called with something like "/v1/events" and it will give
// the proper request URI to be posted to.
uriForAPI is to be called with something like / v1 / events and it will give the proper request URI to be posted to .