예제 #1
0
 public Api(string token)
 {
     _token      = token;
     _clickUpApi = new Chinchilla.ClickUp.ClickUpApi(_token);
     _httpClient = new HttpClient()
     {
         BaseAddress = new Uri(BASE_URL)
     };
     _httpClient.DefaultRequestHeaders.TryAddWithoutValidation("authorization", _token);
 }
예제 #2
0
 public void ChangeToken(string token)
 {
     _token      = token;
     _clickUpApi = new Chinchilla.ClickUp.ClickUpApi(token);
 }