// CreateOrgHook create one hook for an organization, with options
CreateOrgHook create one hook for an organization, with options
// CreateOrgHook create one hook for an organization with options
func (c *Client) CreateOrgHook(org string, opt structs.CreateHookOption) (*Hook, error) {
	body, err := json.Marshal(&opt)
	if err != nil {
		return nil, err
	}
	h := new(Hook)
	return h, c.getParsedResponse("POST", fmt.Sprintf("/orgs/%s/hooks", org), jsonHeader, bytes.NewReader(body), h)
}
func ( c * Client ) CreateOrgHook ( org string , opt structs . CreateHookOption ) ( * Hook , error ) { body , err := json . Marshal ( & opt ) if err != nil { return nil , err } h := new ( Hook ) return h , c . getParsedResponse ( " " , fmt . Sprintf ( " " , org ) , jsonHeader , bytes . NewReader ( body ) , h ) }
CreateOrgHook create one hook for an organization, with options
CreateOrgHook create one hook for an organization with options