github.com/twilio/twilio-go@v1.20.1/rest/numbers/v2/api_service.go (about)

     1  /*
     2   * This code was generated by
     3   * ___ _ _ _ _ _    _ ____    ____ ____ _    ____ ____ _  _ ____ ____ ____ ___ __   __
     4   *  |  | | | | |    | |  | __ |  | |__| | __ | __ |___ |\ | |___ |__/ |__|  | |  | |__/
     5   *  |  |_|_| | |___ | |__|    |__| |  | |    |__] |___ | \| |___ |  \ |  |  | |__| |  \
     6   *
     7   * Twilio - Numbers
     8   * This is the public Twilio REST API.
     9   *
    10   * NOTE: This class is auto generated by OpenAPI Generator.
    11   * https://openapi-generator.tech
    12   * Do not edit the class manually.
    13   */
    14  
    15  package openapi
    16  
    17  import (
    18  	twilio "github.com/twilio/twilio-go/client"
    19  )
    20  
    21  type ApiService struct {
    22  	baseURL        string
    23  	requestHandler *twilio.RequestHandler
    24  }
    25  
    26  func NewApiService(requestHandler *twilio.RequestHandler) *ApiService {
    27  	return &ApiService{
    28  		requestHandler: requestHandler,
    29  		baseURL:        "https://numbers.twilio.com",
    30  	}
    31  }
    32  
    33  func NewApiServiceWithClient(client twilio.BaseClient) *ApiService {
    34  	return NewApiService(twilio.NewRequestHandler(client))
    35  }