func (c *ApiService) StreamServiceParticipantConversation(ChatServiceSid string, params *ListServiceParticipantConversationParams) (chan ConversationsV1ServiceParticipantConversation, error) {
	if params == nil {
		params = &ListServiceParticipantConversationParams{}
	}
	params.SetPageSize(client.ReadLimits(params.PageSize, params.Limit))
	response, err := c.PageServiceParticipantConversation(ChatServiceSid, params, "", "")
	if err != nil {
		return nil, err
	}
	curRecord := 0
	channel := make(chan ConversationsV1ServiceParticipantConversation, 1)
	go func() {
		for response != nil {
			for item := range response.Conversations {
				channel <- response.Conversations[item]
			}
			var record interface{}
			if record, err = client.GetNext(c.baseURL, response, &curRecord, params.Limit, c.getNextListServiceParticipantConversationResponse); record == nil || err != nil {
				close(channel)
				return
			}
			response = record.(*ListServiceParticipantConversationResponse)
		}
		close(channel)
	}()
	return channel, err
}
Streams ServiceParticipantConversation records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached.
package openapi
import (
	"encoding/json"
	"fmt"
	"net/url"
	"strings"
	"github.com/twilio/twilio-go/client"
)
type ListServiceParticipantConversationParams struct {
	Identity *string `json:"Identity,omitempty"`
	Address *string `json:"Address,omitempty"`
	PageSize *int `json:"PageSize,omitempty"`
	Limit *int `json:"limit,omitempty"`
}
func (params *ListServiceParticipantConversationParams) SetIdentity(Identity string) *ListServiceParticipantConversationParams {
	params.Identity = &Identity
	return params
}
func (params *ListServiceParticipantConversationParams) SetAddress(Address string) *ListServiceParticipantConversationParams {
	params.Address = &Address
	return params
}
func (params *ListServiceParticipantConversationParams) SetPageSize(PageSize int) *ListServiceParticipantConversationParams {
	params.PageSize = &PageSize
	return params
}
func (params *ListServiceParticipantConversationParams) SetLimit(Limit int) *ListServiceParticipantConversationParams {
	params.Limit = &Limit
	return params
}
func (c *ApiService) PageServiceParticipantConversation(ChatServiceSid string, params *ListServiceParticipantConversationParams, pageToken, pageNumber string) (*ListServiceParticipantConversationResponse, error) {
	path := "/v1/Services/{ChatServiceSid}/ParticipantConversations"
	path = strings.Replace(path, "{"+"ChatServiceSid"+"}", ChatServiceSid, -1)
	data := url.Values{}
	headers := make(map[string]interface{})
	if params != nil && params.Identity != nil {
		data.Set("Identity", *params.Identity)
	}
	if params != nil && params.Address != nil {
		data.Set("Address", *params.Address)
	}
	if params != nil && params.PageSize != nil {
		data.Set("PageSize", fmt.Sprint(*params.PageSize))
	}
	if pageToken != "" {
		data.Set("PageToken", pageToken)
	}
	if pageNumber != "" {
		data.Set("Page", pageNumber)
	}
	resp, err := c.requestHandler.Get(c.baseURL+path, data, headers)
	if err != nil {
		return nil, err
	}
	defer resp.Body.Close()
	ps := &ListServiceParticipantConversationResponse{}
	if err := json.NewDecoder(resp.Body).Decode(ps); err != nil {
		return nil, err
	}
	return ps, err
}
func (c *ApiService) ListServiceParticipantConversation(ChatServiceSid string, params *ListServiceParticipantConversationParams) ([]ConversationsV1ServiceParticipantConversation, error) {
	if params == nil {
		params = &ListServiceParticipantConversationParams{}
	}
	params.SetPageSize(client.ReadLimits(params.PageSize, params.Limit))
	response, err := c.PageServiceParticipantConversation(ChatServiceSid, params, "", "")
	if err != nil {
		return nil, err
	}
	curRecord := 0
	var records []ConversationsV1ServiceParticipantConversation
	for response != nil {
		records = append(records, response.Conversations...)
		var record interface{}
		if record, err = client.GetNext(c.baseURL, response, &curRecord, params.Limit, c.getNextListServiceParticipantConversationResponse); record == nil || err != nil {
			return records, err
		}
		response = record.(*ListServiceParticipantConversationResponse)
	}
	return records, err
}