// Returns a list of tracks associated with a given Participant. Only &#x60;currently&#x60; Published Tracks are in the list resource.
Returns a list of tracks associated with a given Participant. Only `currently` Published Tracks are in the list resource.
// Returns a list of tracks associated with a given Participant . Only &#x60 ; currently&#x60 ; Published Tracks are in the list resource .
func (c *DefaultApiService) ListRoomParticipantPublishedTrack(RoomSid string, ParticipantSid string, params *ListRoomParticipantPublishedTrackParams) (*ListRoomParticipantPublishedTrackResponse, error) {
	path := "/v1/Rooms/{RoomSid}/Participants/{ParticipantSid}/PublishedTracks"
	path = strings.Replace(path, "{"+"RoomSid"+"}", RoomSid, -1)
	path = strings.Replace(path, "{"+"ParticipantSid"+"}", ParticipantSid, -1)
	data := url.Values{}
	headers := make(map[string]interface{})
	if params != nil && params.PageSize != nil {
		data.Set("PageSize", fmt.Sprint(*params.PageSize))
	}
	resp, err := c.requestHandler.Get(c.baseURL+path, data, headers)
	if err != nil {
		return nil, err
	}
	defer resp.Body.Close()
	ps := &ListRoomParticipantPublishedTrackResponse{}
	if err := json.NewDecoder(resp.Body).Decode(ps); err != nil {
		return nil, err
	}
	return ps, err
}
func ( c * DefaultApiService ) ListRoomParticipantPublishedTrack ( RoomSid string , ParticipantSid string , params * ListRoomParticipantPublishedTrackParams ) ( * ListRoomParticipantPublishedTrackResponse , error ) { path := " " path = strings . Replace ( path , " " + " " + " " , RoomSid , - 1 ) path = strings . Replace ( path , " " + " " + " " , ParticipantSid , - 1 ) data := url . Values { } headers := make ( map [ string ] interface { } ) if params != nil && params . PageSize != nil { data . Set ( " " , fmt . Sprint ( * params . PageSize ) ) } resp , err := c . requestHandler . Get ( c . baseURL + path , data , headers ) if err != nil { return nil , err } defer resp . Body . Close ( ) ps := & ListRoomParticipantPublishedTrackResponse { } if err := json . NewDecoder ( resp . Body ) . Decode ( ps ) ; err != nil { return nil , err } return ps , err }
Returns a list of tracks associated with a given Participant.
Returns a list of tracks associated with a given Participant .