clickup

package
v0.0.0-...-ef55342 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 31, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ClickUpClientId     = os.Getenv("CLICKUP_CLIENT_ID")
	ClickUpClientSecret = os.Getenv("CLICKUP_CLIENT_SECRET")
	ClickUpApiBaseUrl   = "https://api.clickup.com/api/v2"
)

Functions

func CreateTask

func CreateTask(accessToken string, listId string, name string, description string) (*model.ClickUpTask, error)

func GetAccessToken

func GetAccessToken(ctx context.Context, code string) (*oauth2.Token, error)

func GetFolderlessLists

func GetFolderlessLists(accessToken string, spaceId string) ([]*model.ClickUpList, error)

func GetFolders

func GetFolders(accessToken string, spaceId string) ([]*model.ClickUpFolder, error)

func GetSpaces

func GetSpaces(accessToken string, teamId string) ([]*model.ClickUpSpace, error)

func GetTeams

func GetTeams(accessToken string) ([]*model.ClickUpTeam, error)

Types

type ClickUpAccessTokenResponse

type ClickUpAccessTokenResponse struct {
	AccessToken string `json:"access_token"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL