// Retrieve a list of all Services for Twilio Proxy. A maximum of 100 records will be returned per page.
Retrieve a list of all Services for Twilio Proxy. A maximum of 100 records will be returned per page.
// Retrieve a list of all Services for Twilio Proxy . A maximum of 100 records will be returned per page .
func (c *DefaultApiService) ListService(params *ListServiceParams) (*ListServiceResponse, error) {
	path := "/v1/Services"
	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 := &ListServiceResponse{}
	if err := json.NewDecoder(resp.Body).Decode(ps); err != nil {
		return nil, err
	}
	return ps, err
}
func ( c * DefaultApiService ) ListService ( params * ListServiceParams ) ( * ListServiceResponse , error ) { path := " " 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 := & ListServiceResponse { } if err := json . NewDecoder ( resp . Body ) . Decode ( ps ) ; err != nil { return nil , err } return ps , err }
Retrieve a list of all Services for Twilio Proxy.
Retrieve a list of all Services for Twilio Proxy .