Versions in this module Expand all Collapse all v0 v0.19.2 Dec 17, 2021 v0.19.1 Dec 17, 2021 Changes in this version + const LibraryVersion + func GetNext(baseUrl string, response interface{}, curRecord *int, limit *int, ...) (interface{}, error) + func GetPayload(baseUrl string, response interface{}) ([]interface{}, string, error) + func ReadLimits(pageSize *int, limit *int) int + type BaseClient interface + AccountSid func() string + SendRequest func(method string, rawURL string, data url.Values, headers map[string]interface{}) (*http.Response, error) + SetTimeout func(timeout time.Duration) + type Client struct + HTTPClient *http.Client + func (c *Client) AccountSid() string + func (c *Client) SendRequest(method string, rawURL string, data url.Values, headers map[string]interface{}) (*http.Response, error) + func (c *Client) SetAccountSid(sid string) + func (c *Client) SetTimeout(timeout time.Duration) + type Credentials struct + Password string + Username string + func NewCredentials(username string, password string) *Credentials + type MockBaseClient struct + func NewMockBaseClient(ctrl *gomock.Controller) *MockBaseClient + func (m *MockBaseClient) AccountSid() string + func (m *MockBaseClient) EXPECT() *MockBaseClientMockRecorder + func (m *MockBaseClient) SendRequest(method, rawURL string, data url.Values, headers map[string]interface{}) (*http.Response, error) + func (m *MockBaseClient) SetTimeout(timeout time.Duration) + type MockBaseClientMockRecorder struct + func (mr *MockBaseClientMockRecorder) AccountSid() *gomock.Call + func (mr *MockBaseClientMockRecorder) SendRequest(method, rawURL, data, headers interface{}) *gomock.Call + func (mr *MockBaseClientMockRecorder) SetTimeout(timeout interface{}) *gomock.Call + type RequestHandler struct + Client BaseClient + Edge string + Region string + func NewRequestHandler(client BaseClient) *RequestHandler + func (c *RequestHandler) BuildUrl(rawURL string) string + func (c *RequestHandler) Delete(path string, nothing url.Values, headers map[string]interface{}) (*http.Response, error) + func (c *RequestHandler) Get(path string, queryData url.Values, headers map[string]interface{}) (*http.Response, error) + func (c *RequestHandler) Post(path string, bodyData url.Values, headers map[string]interface{}) (*http.Response, error) + type RequestValidator struct + func NewRequestValidator(authToken string) RequestValidator + func (rv *RequestValidator) Validate(url string, params map[string]string, expectedSignature string) bool + func (rv *RequestValidator) ValidateBody(url string, body []byte, expectedSignature string) bool + type TwilioRestError struct + Code int + Details map[string]interface{} + Message string + MoreInfo string + Status int + func (err *TwilioRestError) Error() string