aa
This commit is contained in:
@@ -35,6 +35,10 @@ func New(appID, secret, token string, config ...*platformapi.APIConfig) *API {
|
||||
}
|
||||
}
|
||||
|
||||
func (a *API) SetToken(token string) {
|
||||
a.token = token
|
||||
}
|
||||
|
||||
func (a *API) AccessAPI(action string, body string, isPost bool) (retVal map[string]interface{}, err error) {
|
||||
fullURL := utils.GenerateGetURL(prodURL, action, nil)
|
||||
err = platformapi.AccessPlatformAPIWithRetry(a.client,
|
||||
|
||||
Reference in New Issue
Block a user