Skip to content

vendyp/basecamp3api.net

Repository files navigation

Basecamp 4 API .NET

.NET CI .NET Release NuGet

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 :)

How to use

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);

Supported API

Authentication

Docs Here

  • GenerateToken (after callback/redirect url)
  • GetAuthorization (get detail account)
  • GetLoginUrl (construct login url)
  • RefreshToken

Projects

Docs here

  • Create Project
  • Get All Project
  • Get Project
  • Update Project
  • Trash Project

Todosets

Docs here

  • Get Todoset

Todolists

Docs here

  • Create Todolists
  • Update Todolists
  • Get all Todolists
  • Get Todolists
  • Archive Todolists
  • Unarchive Todolists
  • Trash Todolists

Todos

Docs here

  • Create Todos
  • Update Todos
  • Complete Todos
  • Uncomplete Todos
  • Get All Todos
  • Get Todos
  • Reposition Todos

Peoples

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)

Recordings

Docs here

  • Get recordings
  • Archive recording
  • Unarchive recording
  • Trash recording

Change Log

Change log detail are here