Documentation
¶
Index ¶
- Constants
- type Data
- type Request
- func (r Request) Create() (resp *Response, err error)
- func (r Request) Get() ([]Response, error)
- func (r *Request) GetPAToken() string
- func (r *Request) GetTaskID() string
- func (r *Request) GetTicketID() string
- func (r *Request) SetPAToken(token string)
- func (r *Request) SetTaskID(id string)
- func (r *Request) SetTicketID(id string)
- type Response
Constants ¶
View Source
const (
URI = "/api/1.0/tasks/%s/stories"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Request ¶
type Request struct {
HtmlText string `json:"html_text,omitempty"`
Text string `json:"text,omitempty"`
StickerName string `json:"sticker_name,omitempty"`
IsPinned bool `json:"is_pinned,omitempty"`
// contains filtered or unexported fields
}
func (*Request) GetPAToken ¶
func (*Request) GetTicketID ¶
func (*Request) SetPAToken ¶
func (*Request) SetTicketID ¶
type Response ¶
type Response struct {
ID string `json:"gid"`
ResourceType string `json:"resource_type"`
ResourceSubtype string `json:"resource_subtype"`
Type string `json:"type"`
Text string `json:"text"`
// IsPinned Conditional
// Whether the story should be pinned on the resource.
IsPinned bool `json:"is_pinned"`
StickerName string `json:"sticker_name,omitempty"`
CreatedAt string `json:"created_at"`
CreatedBy users.User `json:"created_by"`
}
func (*Response) IsComplete ¶
Click to show internal directories.
Click to hide internal directories.