Documentation ¶
Index ¶
- func AppendUrlWithQueryParameters(queryBuilder string, parameters map[string]interface{}) (string, error)
- func AppendUrlWithTemplateParameters(queryBuilder string, parameters map[string]interface{}) (string, error)
- func CleanUrl(url string) (string, error)
- func ToString(data interface{}, dvl string) string
- type APIError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppendUrlWithQueryParameters ¶
func AppendUrlWithQueryParameters(queryBuilder string, parameters map[string]interface{}) (string, error)
*
- Appends the given set of parameters to the given query string
- @param string queryBuilder The query url string to append the parameters
- @param map parameters The parameters to append
- @return void
Types ¶
type APIError ¶
type APIError struct { ResponseCode int //The HTTP response code from the API request Reason string //The reason for throwing exception Response []byte }
APIError structure for custom error handling in API invocation
func NewAPIError ¶
NewAPIError implements initialization constructor @param string reason The reason for throwing exception @param int code The HTTP response code from the API request @return new APIException object
Click to show internal directories.
Click to hide internal directories.