api

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2025 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAccessToken

func GetAccessToken(clientID, clientSecret, code string) (string, error)

func GetAuthURL

func GetAuthURL(clientID string) string

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func GetClient

func GetClient() (*Client, error)

func NewClient

func NewClient(token string) *Client

func (*Client) CompleteTask

func (c *Client) CompleteTask(projectID, taskID string) error

func (*Client) CreateProject

func (c *Client) CreateProject(project *types.Project) (*types.Project, error)

func (*Client) CreateTask

func (c *Client) CreateTask(task *types.Task) (*types.Task, error)

func (*Client) DeleteProject

func (c *Client) DeleteProject(projectID string) error

func (*Client) DeleteTask

func (c *Client) DeleteTask(projectID, taskID string) error

func (*Client) GetProject

func (c *Client) GetProject(id string) (types.Project, error)

func (*Client) GetProjectWithTasks

func (c *Client) GetProjectWithTasks(projectID string) (*types.ProjectData, error)

func (*Client) GetTask

func (c *Client) GetTask(projectID string, taskID string) (*types.Task, error)

func (*Client) ListProjects

func (c *Client) ListProjects() ([]types.Project, error)

func (*Client) ListTasks

func (c *Client) ListTasks(projectID string) ([]types.Task, error)

func (*Client) UpdateProject

func (c *Client) UpdateProject(project types.Project) (types.Project, error)

func (*Client) UpdateTask

func (c *Client) UpdateTask(task *types.Task) (*types.Task, error)

Jump to

Keyboard shortcuts

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