Documentation ¶
Index ¶
- Constants
- func WrapQuery(gql string, wrap bool) string
- type BoardGroups
- type BoardItems
- type BoardsResponse
- type Client
- func (c *Client) CreateItem(item CreateItemPayload) (*http.Response, *CreateItemResponse, error)
- func (c *Client) DoGraphQL(gql Query) (*http.Response, error)
- func (c *Client) DoGraphQLString(gql string) (*http.Response, error)
- func (c *Client) DoJSON(data []byte) (*http.Response, error)
- func (c *Client) GetAllBoards() (*http.Response, []BoardGroups, error)
- func (c *Client) GetAllUsers() (*http.Response, []User, error)
- func (c *Client) GetItemsBetween(boardID string, startTime, endTime time.Time, limit int) (*http.Response, *ItemsPage, error)
- func (c *Client) GetNextItems(cursor string, limit int) (*http.Response, *ItemsPage, error)
- func (c *Client) GetUserById(userId string) (*http.Response, *User, error)
- func (c *Client) UpdateItem(item UpdateItemPayload) (*http.Response, *UpdateItemResponse, error)
- type Column
- type ColumnValue
- type ColumnValueValue
- type CreateItemPayload
- type CreateItemResponse
- type ErrorResponse
- type Group
- type Item
- type ItemsPage
- type ItemsResponse
- type NextItemsResponse
- type Queries
- type Query
- type QueryRequest
- type Subscriber
- type Update
- type UpdateItemPayload
- type UpdateItemResponse
- type User
- type UsersResponse
- type Where
Constants ¶
View Source
const ( ColumnValueTitleDate = "Date" ColumnValueTitleStatus = "Status" )
View Source
const (
ColumnValueIDLink = "link"
)
View Source
const (
MondayAPIURL = "https://api.monday.com/v2"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BoardGroups ¶
type BoardItems ¶
type BoardsResponse ¶
type BoardsResponse struct { AccountID int `json:"account_id"` Data struct { Boards []BoardGroups `json:"boards"` } `json:"data"` }
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) CreateItem ¶
func (c *Client) CreateItem(item CreateItemPayload) (*http.Response, *CreateItemResponse, error)
func (*Client) DoGraphQLString ¶
func (*Client) GetAllBoards ¶
func (c *Client) GetAllBoards() (*http.Response, []BoardGroups, error)
func (*Client) GetItemsBetween ¶
func (*Client) GetNextItems ¶
func (*Client) GetUserById ¶
func (*Client) UpdateItem ¶
func (c *Client) UpdateItem(item UpdateItemPayload) (*http.Response, *UpdateItemResponse, error)
type ColumnValue ¶
type ColumnValueValue ¶
type CreateItemPayload ¶
type CreateItemResponse ¶
type ErrorResponse ¶
type Item ¶
type Item struct { ID string `json:"id"` Name string `json:"name"` URL string `json:"url"` Board struct { Name string `json:"name"` } `json:"board"` Creator struct { Name string `json:"name"` } `json:"creator"` Updates []Update `json:"updates"` Subscribers []Subscriber `json:"subscribers"` ColumnValues []ColumnValue `json:"column_values"` CreatedAt *time.Time `json:"created_at"` UpdatedAt *time.Time `json:"updated_at"` }
type ItemsResponse ¶
type ItemsResponse struct { AccountID int `json:"account_id"` Data struct { Boards []BoardItems `json:"boards"` } `json:"data"` }
type NextItemsResponse ¶
type Query ¶
func GetAllBoardsQuery ¶
func GetAllBoardsQuery() Query
func GetAllUsersQuery ¶
func GetAllUsersQuery() Query
func GetItemsQuery ¶
func GetNextItemsQuery ¶
func GetUserByIdQuery ¶
type QueryRequest ¶
type QueryRequest struct {
Query string `json:"query"`
}
type Subscriber ¶
type UpdateItemPayload ¶
type UpdateItemResponse ¶
type User ¶
type User struct { ID string `json:"id"` Name string `json:"name"` EmailAddress string `json:"email"` URL string `json:"url"` Admin bool `json:"is_admin"` Guest bool `json:"is_guest"` ViewOnly bool `json:"is_view_only"` Phone string `json:"phone"` Title string `json:"title"` Location string `json:"location"` CreatedAt *time.Time `json:"created_at"` }
type UsersResponse ¶
Click to show internal directories.
Click to hide internal directories.