- autonavi api added.
- other refactor.
This commit is contained in:
@@ -142,10 +142,10 @@ func (a *API) AccessAPI(apiStr string, jdParams map[string]interface{}) (retVal
|
||||
sign := a.signParams(params)
|
||||
params[signKey] = sign
|
||||
|
||||
url, _ := url.Parse(utils.GenerateGetURL(prodURL, apiStr, params))
|
||||
finalURL, _ := url.Parse(utils.GenerateGetURL(prodURL, apiStr, params))
|
||||
request := &http.Request{
|
||||
Method: "GET",
|
||||
URL: url,
|
||||
URL: finalURL,
|
||||
}
|
||||
err = platformapi.AccessPlatformAPIWithRetry(a.client, request, a.config, func(response *http.Response) (errLevel string, err error) {
|
||||
jsonResult1, err := utils.HTTPResponse2Json(response)
|
||||
|
||||
Reference in New Issue
Block a user