// Create a new message Interaction to send directly from your system to one [Participant](https://www.twilio.com/docs/proxy/api/participant).  The &#x60;inbound&#x60; properties for the Interaction will always be empty.
Create a new message Interaction to send directly from your system to one [Participant].  The `inbound` properties for the Interaction will always be empty.
// Create a new message Interaction to send directly from your system to one [ Participant ] ( https : // www . twilio . com / docs / proxy / api / participant ) . The &#x60 ; inbound&#x60 ; properties for the Interaction will always be empty .
func (c *DefaultApiService) CreateMessageInteraction(ServiceSid string, SessionSid string, ParticipantSid string, params *CreateMessageInteractionParams) (*ProxyV1ServiceSessionParticipantMessageInteraction, error) {
	path := "/v1/Services/{ServiceSid}/Sessions/{SessionSid}/Participants/{ParticipantSid}/MessageInteractions"
	path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1)
	path = strings.Replace(path, "{"+"SessionSid"+"}", SessionSid, -1)
	path = strings.Replace(path, "{"+"ParticipantSid"+"}", ParticipantSid, -1)
	data := url.Values{}
	headers := make(map[string]interface{})
	if params != nil && params.Body != nil {
		data.Set("Body", *params.Body)
	}
	if params != nil && params.MediaUrl != nil {
		for _, item := range *params.MediaUrl {
			data.Add("MediaUrl", item)
		}
	}
	resp, err := c.requestHandler.Post(c.baseURL+path, data, headers)
	if err != nil {
		return nil, err
	}
	defer resp.Body.Close()
	ps := &ProxyV1ServiceSessionParticipantMessageInteraction{}
	if err := json.NewDecoder(resp.Body).Decode(ps); err != nil {
		return nil, err
	}
	return ps, err
}
func ( c * DefaultApiService ) CreateMessageInteraction ( ServiceSid string , SessionSid string , ParticipantSid string , params * CreateMessageInteractionParams ) ( * ProxyV1ServiceSessionParticipantMessageInteraction , error ) { path := " " path = strings . Replace ( path , " " + " " + " " , ServiceSid , - 1 ) path = strings . Replace ( path , " " + " " + " " , SessionSid , - 1 ) path = strings . Replace ( path , " " + " " + " " , ParticipantSid , - 1 ) data := url . Values { } headers := make ( map [ string ] interface { } ) if params != nil && params . Body != nil { data . Set ( " " , * params . Body ) } if params != nil && params . MediaUrl != nil { for _ , item := range * params . MediaUrl { data . Add ( " " , item ) } } resp , err := c . requestHandler . Post ( c . baseURL + path , data , headers ) if err != nil { return nil , err } defer resp . Body . Close ( ) ps := & ProxyV1ServiceSessionParticipantMessageInteraction { } if err := json . NewDecoder ( resp . Body ) . Decode ( ps ) ; err != nil { return nil , err } return ps , err }
Create a new message Interaction to send directly from your system to one [Participant].
Create a new message Interaction to send directly from your system to one [ Participant ] .