func (s *WebhooksService) Delivery(opt *WebhooksDeliveryOption) (v *WebhooksDeliveryObject, resp *http.Response, err error) {
	err = s.ValidateDeliveryOpt(opt)
	if err != nil {
		return
	}
	req, err := s.client.NewRequest("GET", "webhooks/delivery", opt)
	if err != nil {
		return
	}
	v = new(WebhooksDeliveryObject)
	resp, err = s.client.Do(req, v)
	if err != nil {
		return nil, resp, err
	}
	return
}
Delivery Get a webhook delivery by its id.<br/>Require 'Administer System' permission.<br/>Note that additional information are returned by api/webhooks/delivery.
package sonargo
import "net/http"
type WebhooksService struct {
	client *Client
}
type WebhooksCreateObject struct {
	Webhook *Webhook `json:"webhook,omitempty"`
}
type Webhook struct {
	Key            string    `json:"key,omitempty"`
	Name           string    `json:"name,omitempty"`
	URL            string    `json:"url,omitempty"`
	LatestDelivery *Delivery `json:"latestDelivery,omitempty"`
}
type WebhooksDeliveriesObject struct {
	Deliveries []*Delivery `json:"deliveries,omitempty"`
	Paging     Paging      `json:"paging,omitempty"`
}
type Delivery struct {
	At              string `json:"at,omitempty"`
	CeTaskID        string `json:"ceTaskId,omitempty"`
	ComponentKey    string `json:"componentKey,omitempty"`
	DurationMs      int64  `json:"durationMs,omitempty"`
	HTTPStatus      int64  `json:"httpStatus,omitempty"`
	ID              string `json:"id,omitempty"`
	Name            string `json:"name,omitempty"`
	Payload         string `json:"payload,omitempty"`
	Success         bool   `json:"success,omitempty"`
	URL             string `json:"url,omitempty"`
	ErrorStackTrace string `json:"errorStacktrace,omitempty"`
}
type WebhooksDeliveryObject struct {
	Delivery *Delivery `json:"delivery,omitempty"`
}
type WebhooksListObject struct {
	Webhooks []*Webhook `json:"webhooks,omitempty"`
}
type WebhooksCreateOption struct {
	Name    string `url:"name,omitempty"`     
	Project string `url:"project,omitempty"`  
	Url     string `url:"url,omitempty"`      
}
func (s *WebhooksService) Create(opt *WebhooksCreateOption) (v *WebhooksCreateObject, resp *http.Response, err error) {
	err = s.ValidateCreateOpt(opt)
	if err != nil {
		return
	}
	req, err := s.client.NewRequest("POST", "webhooks/create", opt)
	if err != nil {
		return
	}
	v = new(WebhooksCreateObject)
	resp, err = s.client.Do(req, v)
	if err != nil {
		return nil, resp, err
	}
	return
}
type WebhooksDeleteOption struct {
	Webhook string `url:"webhook,omitempty"`  
}
func (s *WebhooksService) Delete(opt *WebhooksDeleteOption) (resp *http.Response, err error) {
	err = s.ValidateDeleteOpt(opt)
	if err != nil {
		return
	}
	req, err := s.client.NewRequest("POST", "webhooks/delete", opt)
	if err != nil {
		return
	}
	resp, err = s.client.Do(req, nil)
	if err != nil {
		return
	}
	return
}
type WebhooksDeliveriesOption struct {
	CeTaskId     string `url:"ceTaskId,omitempty"`      
	ComponentKey string `url:"componentKey,omitempty"`  
	P            string `url:"p,omitempty"`             
	Ps           string `url:"ps,omitempty"`            
	Webhook      string `url:"webhook,omitempty"`       
}
func (s *WebhooksService) Deliveries(opt *WebhooksDeliveriesOption) (v *WebhooksDeliveriesObject, resp *http.Response, err error) {
	err = s.ValidateDeliveriesOpt(opt)
	if err != nil {
		return
	}
	req, err := s.client.NewRequest("GET", "webhooks/deliveries", opt)
	if err != nil {
		return
	}
	v = new(WebhooksDeliveriesObject)
	resp, err = s.client.Do(req, v)
	if err != nil {
		return nil, resp, err
	}
	return
}
type WebhooksDeliveryOption struct {
	DeliveryId string `url:"deliveryId,omitempty"`  
}