示例#1
0
//Create a CcaClient with a custom URL
func NewCcaClientWithURL(apiURL string, apiKey string) *CcaClient {
	apiClient := api.NewApiClient(apiURL, apiKey)
	ccaClient := CcaClient{
		apiURL:    apiURL,
		apiKey:    apiKey,
		apiClient: apiClient,
		Tasks:     services.NewTaskService(apiClient),
	}
	return &ccaClient
}
示例#2
0
//Create a CcaClient with a custom URL
func NewCcaClientWithURL(apiURL string, apiKey string) *CcaClient {
	apiClient := api.NewApiClient(apiURL, apiKey)
	return NewCcaClientWithApiClient(apiClient)
}