# Functions
BadDataErr make a result with ErrorType ErrorBadData.
Data make a result with data or nil, the Status will be set to StatusSuccess.
Get do get request to target url and save data to ret.
InternalErr make a result with ErrorType ErrorInternal.
NewHelper create a new APIWrapper.
Post do http post with standard response format.
TestCall create a httptest server and do http request to it the data in params will be write to server and the ret in params is deemed to the Data of common Result.
# Constants
ErrorBadData indicate that result is failed because the wrong request data.
ErrorInternal indicate that result is failed because the request data may be right but the server is something wrong.
StatusError indicate result is failed, the data may be empty.
StatusSuccess indicate result Status is success, the data of result is available.