Skip to content

Latest commit

 

History

History
24 lines (18 loc) · 1016 Bytes

README.md

File metadata and controls

24 lines (18 loc) · 1016 Bytes

ClickUpAPI

C# / .NET / .NET Core Implementation for management ClickUp API.

Sample Usage

For OAuth2 Flow - see https://jsapi.apiary.io/apis/clickup20/introduction/authentication.html and https://jsapi.apiary.io/apis/clickup20/reference/0/authorization/get-access-token.html

var apitokens = new ParamsAccessToken(clientId, clientId, code);
var api = ClickUpApi.Create(apitokens);
var getTeamsResponse = api.GetAuthorizedTeams();
if (getTeamsResponse.RequestStatus != HttpStatusCode.OK || !getTeamsResponse.ResponseSuccess.Teams.Any())
  throw new AuthorisationException("Could not find any teams you are part of.");

For Personal Token - see https://jsapi.apiary.io/apis/clickup20/introduction/authentication.html

var api = new ClickUpApi(personalToken);
var getTeamsResponse = api.GetAuthorizedTeams();
if (getTeamsResponse.RequestStatus != HttpStatusCode.OK || !getTeamsResponse.ResponseSuccess.Teams.Any())
  throw new AuthorisationException("Could not find any teams you are part of.");