Documentation
¶
Index ¶
- type WebhookAccountCreateService
- func (s *WebhookAccountCreateService) Active(value bool) *WebhookAccountCreateService
- func (s *WebhookAccountCreateService) Do(ctx context.Context) (WebhookResponse, error)
- func (s *WebhookAccountCreateService) Events(value []string) *WebhookAccountCreateService
- func (s *WebhookAccountCreateService) Secret(value string) *WebhookAccountCreateService
- func (s *WebhookAccountCreateService) Url(value string) *WebhookAccountCreateService
- type WebhookCommonData
- type WebhookDeleteService
- type WebhookDetailsService
- type WebhookGroupCreateService
- func (s *WebhookGroupCreateService) Active(value bool) *WebhookGroupCreateService
- func (s *WebhookGroupCreateService) Do(ctx context.Context) (WebhookResponse, error)
- func (s *WebhookGroupCreateService) Events(value []string) *WebhookGroupCreateService
- func (s *WebhookGroupCreateService) GroupId(value string) *WebhookGroupCreateService
- func (s *WebhookGroupCreateService) Secret(value string) *WebhookGroupCreateService
- func (s *WebhookGroupCreateService) Url(value string) *WebhookGroupCreateService
- type WebhookListResponse
- type WebhookListService
- type WebhookResponse
- type WebhookTestResponse
- type WebhookTestService
- type WebhookUpdateService
- func (s *WebhookUpdateService) Active(value bool) *WebhookUpdateService
- func (s *WebhookUpdateService) Do(ctx context.Context) (WebhookResponse, error)
- func (s *WebhookUpdateService) Events(value []string) *WebhookUpdateService
- func (s *WebhookUpdateService) RunTests(value bool) *WebhookUpdateService
- func (s *WebhookUpdateService) Secret(value string) *WebhookUpdateService
- func (s *WebhookUpdateService) Url(value string) *WebhookUpdateService
- func (s *WebhookUpdateService) WebhookId(value string) *WebhookUpdateService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type WebhookAccountCreateService ¶ added in v0.8.0
type WebhookAccountCreateService struct {
httputils.HttpService
// contains filtered or unexported fields
}
func (*WebhookAccountCreateService) Active ¶ added in v0.8.0
func (s *WebhookAccountCreateService) Active(value bool) *WebhookAccountCreateService
func (*WebhookAccountCreateService) Do ¶ added in v0.8.0
func (s *WebhookAccountCreateService) Do(ctx context.Context) (WebhookResponse, error)
func (*WebhookAccountCreateService) Events ¶ added in v0.8.0
func (s *WebhookAccountCreateService) Events(value []string) *WebhookAccountCreateService
func (*WebhookAccountCreateService) Secret ¶ added in v0.8.0
func (s *WebhookAccountCreateService) Secret(value string) *WebhookAccountCreateService
func (*WebhookAccountCreateService) Url ¶ added in v0.8.0
func (s *WebhookAccountCreateService) Url(value string) *WebhookAccountCreateService
type WebhookCommonData ¶
type WebhookCommonData struct {
Id string `json:"id"`
Type string `json:"type"`
Url string `json:"url"`
Events []string `json:"events"`
Active bool `json:"active"`
Secret string `json:"secret"`
GroupId string `json:"group_id"`
CreatedAt string `json:"created_at"`
CreatedBy string `json:"created_by"`
}
type WebhookDeleteService ¶ added in v0.8.0
type WebhookDeleteService struct {
httputils.HttpService
// contains filtered or unexported fields
}
func (*WebhookDeleteService) Do ¶ added in v0.8.0
func (s *WebhookDeleteService) Do(ctx context.Context) (common.CommonResponse, error)
func (*WebhookDeleteService) WebhookId ¶ added in v0.8.0
func (s *WebhookDeleteService) WebhookId(value string) *WebhookDeleteService
type WebhookDetailsService ¶ added in v0.8.0
type WebhookDetailsService struct {
httputils.HttpService
// contains filtered or unexported fields
}
func (*WebhookDetailsService) Do ¶ added in v0.8.0
func (s *WebhookDetailsService) Do(ctx context.Context) (WebhookResponse, error)
func (*WebhookDetailsService) WebhookId ¶ added in v0.8.0
func (s *WebhookDetailsService) WebhookId(value string) *WebhookDetailsService
type WebhookGroupCreateService ¶ added in v0.8.0
type WebhookGroupCreateService struct {
httputils.HttpService
// contains filtered or unexported fields
}
func (*WebhookGroupCreateService) Active ¶ added in v0.8.0
func (s *WebhookGroupCreateService) Active(value bool) *WebhookGroupCreateService
func (*WebhookGroupCreateService) Do ¶ added in v0.8.0
func (s *WebhookGroupCreateService) Do(ctx context.Context) (WebhookResponse, error)
func (*WebhookGroupCreateService) Events ¶ added in v0.8.0
func (s *WebhookGroupCreateService) Events(value []string) *WebhookGroupCreateService
func (*WebhookGroupCreateService) GroupId ¶ added in v0.8.0
func (s *WebhookGroupCreateService) GroupId(value string) *WebhookGroupCreateService
func (*WebhookGroupCreateService) Secret ¶ added in v0.8.0
func (s *WebhookGroupCreateService) Secret(value string) *WebhookGroupCreateService
func (*WebhookGroupCreateService) Url ¶ added in v0.8.0
func (s *WebhookGroupCreateService) Url(value string) *WebhookGroupCreateService
type WebhookListResponse ¶
type WebhookListResponse struct {
Code string `json:"code"`
Data struct {
Items []WebhookCommonData `json:"items"`
NextCursor string `json:"next_cursor"`
} `json:"data"`
}
type WebhookListService ¶ added in v0.8.0
type WebhookListService struct {
httputils.HttpService
// contains filtered or unexported fields
}
func (*WebhookListService) Cursor ¶ added in v0.8.0
func (s *WebhookListService) Cursor(value string) *WebhookListService
func (*WebhookListService) Do ¶ added in v0.8.0
func (s *WebhookListService) Do(ctx context.Context) (WebhookListResponse, error)
func (*WebhookListService) Limit ¶ added in v0.8.0
func (s *WebhookListService) Limit(value int) *WebhookListService
type WebhookResponse ¶
type WebhookResponse struct {
common.CommonResponse
Data struct {
WebhookCommonData
} `json:"data"`
}
type WebhookTestResponse ¶ added in v0.8.0
type WebhookTestService ¶ added in v0.8.0
type WebhookTestService struct {
httputils.HttpService
// contains filtered or unexported fields
}
func (*WebhookTestService) Do ¶ added in v0.8.0
func (s *WebhookTestService) Do(ctx context.Context) (WebhookTestResponse, error)
func (*WebhookTestService) Event ¶ added in v0.8.0
func (s *WebhookTestService) Event(value string) *WebhookTestService
func (*WebhookTestService) WebhookId ¶ added in v0.8.0
func (s *WebhookTestService) WebhookId(value string) *WebhookTestService
type WebhookUpdateService ¶ added in v1.1.1
type WebhookUpdateService struct {
httputils.HttpService
// contains filtered or unexported fields
}
func (*WebhookUpdateService) Active ¶ added in v1.1.1
func (s *WebhookUpdateService) Active(value bool) *WebhookUpdateService
func (*WebhookUpdateService) Do ¶ added in v1.1.1
func (s *WebhookUpdateService) Do(ctx context.Context) (WebhookResponse, error)
func (*WebhookUpdateService) Events ¶ added in v1.1.1
func (s *WebhookUpdateService) Events(value []string) *WebhookUpdateService
func (*WebhookUpdateService) RunTests ¶ added in v1.1.1
func (s *WebhookUpdateService) RunTests(value bool) *WebhookUpdateService
func (*WebhookUpdateService) Secret ¶ added in v1.1.1
func (s *WebhookUpdateService) Secret(value string) *WebhookUpdateService
func (*WebhookUpdateService) Url ¶ added in v1.1.1
func (s *WebhookUpdateService) Url(value string) *WebhookUpdateService
func (*WebhookUpdateService) WebhookId ¶ added in v1.1.1
func (s *WebhookUpdateService) WebhookId(value string) *WebhookUpdateService
Click to show internal directories.
Click to hide internal directories.