// List all Channels for a given User.
List all Channels for a given User.
// List all Channels for a given User .
func (c *DefaultApiService) ListUserChannel(ServiceSid string, UserSid string, params *ListUserChannelParams) (*ListUserChannelResponse, error) {
	path := "/v1/Services/{ServiceSid}/Users/{UserSid}/Channels"
	path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1)
	path = strings.Replace(path, "{"+"UserSid"+"}", UserSid, -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 := &ListUserChannelResponse{}
	if err := json.NewDecoder(resp.Body).Decode(ps); err != nil {
		return nil, err
	}
	return ps, err
}
func ( c * DefaultApiService ) ListUserChannel ( ServiceSid string , UserSid string , params * ListUserChannelParams ) ( * ListUserChannelResponse , error ) { path := " " path = strings . Replace ( path , " " + " " + " " , ServiceSid , - 1 ) path = strings . Replace ( path , " " + " " + " " , UserSid , - 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 := & ListUserChannelResponse { } if err := json . NewDecoder ( resp . Body ) . Decode ( ps ) ; err != nil { return nil , err } return ps , err }
List all Channels for a given User.
List all Channels for a given User .