trello

package
v0.0.0-...-4357645 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const OwnerCardsPath = "/members/me/cards"

OwnerCardsPath is the path on the Trello API server where a list of owned cards can be queried

Variables

This section is empty.

Functions

func CreateMockServer

func CreateMockServer(t *testing.T, key string, token string) (*httptest.Server, func())

CreateMockServer creates a mock Trello server that can be accessed via an HTTP client

Types

type Card

type Card struct {
	ID   string `json:"id"`
	Name string `json:"name"`
}

Card represents a Trello card returned via the API

type Client

type Client struct {
	BaseURL *url.URL
	Key     string
	Token   string
}

Client is used to interact with the Trello API

func (*Client) ListOwnedCards

func (c *Client) ListOwnedCards() ([]Card, error)

ListOwnedCards will return the cards this user is a member of

Jump to

Keyboard shortcuts

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