This is a open-source library for integration with Basecamp 4 API here
How to register your application, you can jump on Here
This repository is still inprogress :)
This library is not helping you to do OAuth2 out-of-the-box, you have to make it on your own
First, you need to setup a static configuration
// instantiate baseapiclient
var setting = new BasecampApiSetting()
{
ClientId = "***",
ClientSecret = "***",
AppName = "***",
RedirectUrl = new Uri("***")
}
var client = new BasecampApiClient(setting);
//after OAuth2 authentication, pass those values to this method
client.Setup(
token.AccessToken,
token.ExpiresIn,
token.RefreshToken);
//then you can consume the API
(PagedList<Project>? List, Error? Error) result = await client.GetAllProjectAsync(99999, 1, cancellationToken);
Docs Here
- GenerateToken (after callback/redirect url)
- GetAuthorization (get detail account)
- GetLoginUrl (construct login url)
- RefreshToken
Docs here
- Create Project
- Get All Project
- Get Project
- Update Project
- Trash Project
Docs here
- Get Todoset
Docs here
- Create Todolists
- Update Todolists
- Get all Todolists
- Get Todolists
- Archive Todolists
- Unarchive Todolists
- Trash Todolists
Docs here
- Create Todos
- Update Todos
- Complete Todos
- Uncomplete Todos
- Get All Todos
- Get Todos
- Reposition Todos
Docs here
- Get all people
- Get all people in project
- Get all pingable people
- Get my personal information
- Get people by id
- Update who can access project (grant/revoke/create)
Docs here
- Get recordings
- Archive recording
- Unarchive recording
- Trash recording
Change log detail are here