// Create a new Customer-Profile.
Create a new Customer-Profile.
// Create a new Customer - Profile .
func (c *DefaultApiService) CreateTrustProduct(params *CreateTrustProductParams) (*TrusthubV1TrustProduct, error) {
	path := "/v1/TrustProducts"
	data := url.Values{}
	headers := make(map[string]interface{})
	if params != nil && params.Email != nil {
		data.Set("Email", *params.Email)
	}
	if params != nil && params.FriendlyName != nil {
		data.Set("FriendlyName", *params.FriendlyName)
	}
	if params != nil && params.PolicySid != nil {
		data.Set("PolicySid", *params.PolicySid)
	}
	if params != nil && params.StatusCallback != nil {
		data.Set("StatusCallback", *params.StatusCallback)
	}
	resp, err := c.requestHandler.Post(c.baseURL+path, data, headers)
	if err != nil {
		return nil, err
	}
	defer resp.Body.Close()
	ps := &TrusthubV1TrustProduct{}
	if err := json.NewDecoder(resp.Body).Decode(ps); err != nil {
		return nil, err
	}
	return ps, err
}
func ( c * DefaultApiService ) CreateTrustProduct ( params * CreateTrustProductParams ) ( * TrusthubV1TrustProduct , error ) { path := " " data := url . Values { } headers := make ( map [ string ] interface { } ) if params != nil && params . Email != nil { data . Set ( " " , * params . Email ) } if params != nil && params . FriendlyName != nil { data . Set ( " " , * params . FriendlyName ) } if params != nil && params . PolicySid != nil { data . Set ( " " , * params . PolicySid ) } if params != nil && params . StatusCallback != nil { data . Set ( " " , * params . StatusCallback ) } resp , err := c . requestHandler . Post ( c . baseURL + path , data , headers ) if err != nil { return nil , err } defer resp . Body . Close ( ) ps := & TrusthubV1TrustProduct { } if err := json . NewDecoder ( resp . Body ) . Decode ( ps ) ; err != nil { return nil , err } return ps , err }
Create a new Customer-Profile.
Create a new Customer - Profile .