func NewAPIClient(token string, secret string, zone string) *APIClient { return &APIClient{ AccessToken: token, AccessTokenSecret: secret, Region: zone, client: api.NewClient(token, secret, zone), initialized: true, } }
func (c *APIClient) Init() { if !c.initialized { c.client = api.NewClient(c.AccessToken, c.AccessTokenSecret, c.Region) } }