github.com/twilio/twilio-go@v1.20.1/rest/pricing/v2/README.md (about)

     1  # Go API client for openapi
     2  
     3  This is the public Twilio REST API.
     4  
     5  ## Overview
     6  This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project from the OpenAPI specs located at [twilio/twilio-oai](https://github.com/twilio/twilio-oai/tree/main/spec).  By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client.
     7  
     8  - API version: 1.0.0
     9  - Package version: 1.0.0
    10  - Build package: com.twilio.oai.TwilioGoGenerator
    11  For more information, please visit [https://support.twilio.com](https://support.twilio.com)
    12  
    13  ## Installation
    14  
    15  Install the following dependencies:
    16  
    17  ```shell
    18  go get github.com/stretchr/testify/assert
    19  go get golang.org/x/net/context
    20  ```
    21  
    22  Put the package under your project folder and add the following in import:
    23  
    24  ```golang
    25  import "./openapi"
    26  ```
    27  
    28  ## Documentation for API Endpoints
    29  
    30  All URIs are relative to *https://pricing.twilio.com*
    31  
    32  Class | Method | HTTP request | Description
    33  ------------ | ------------- | ------------- | -------------
    34  *TrunkingCountriesApi* | [**FetchTrunkingCountry**](docs/TrunkingCountriesApi.md#fetchtrunkingcountry) | **Get** /v2/Trunking/Countries/{IsoCountry} | 
    35  *TrunkingCountriesApi* | [**ListTrunkingCountry**](docs/TrunkingCountriesApi.md#listtrunkingcountry) | **Get** /v2/Trunking/Countries | 
    36  *TrunkingNumbersApi* | [**FetchTrunkingNumber**](docs/TrunkingNumbersApi.md#fetchtrunkingnumber) | **Get** /v2/Trunking/Numbers/{DestinationNumber} | 
    37  *VoiceCountriesApi* | [**FetchVoiceCountry**](docs/VoiceCountriesApi.md#fetchvoicecountry) | **Get** /v2/Voice/Countries/{IsoCountry} | 
    38  *VoiceCountriesApi* | [**ListVoiceCountry**](docs/VoiceCountriesApi.md#listvoicecountry) | **Get** /v2/Voice/Countries | 
    39  *VoiceNumbersApi* | [**FetchVoiceNumber**](docs/VoiceNumbersApi.md#fetchvoicenumber) | **Get** /v2/Voice/Numbers/{DestinationNumber} | 
    40  
    41  
    42  ## Documentation For Models
    43  
    44   - [ListTrunkingCountryResponse](docs/ListTrunkingCountryResponse.md)
    45   - [PricingV2VoiceVoiceNumberOutboundCallPrices](docs/PricingV2VoiceVoiceNumberOutboundCallPrices.md)
    46   - [PricingV2VoiceCountry](docs/PricingV2VoiceCountry.md)
    47   - [PricingV2TrunkingCountry](docs/PricingV2TrunkingCountry.md)
    48   - [PricingV2TrunkingCountryInstance](docs/PricingV2TrunkingCountryInstance.md)
    49   - [ListVoiceCountryResponse](docs/ListVoiceCountryResponse.md)
    50   - [PricingV2TrunkingCountryInstanceOriginatingCallPrices](docs/PricingV2TrunkingCountryInstanceOriginatingCallPrices.md)
    51   - [PricingV2TrunkingNumber](docs/PricingV2TrunkingNumber.md)
    52   - [PricingV2VoiceCountryInstance](docs/PricingV2VoiceCountryInstance.md)
    53   - [PricingV2TrunkingCountryInstanceTerminatingPrefixPrices](docs/PricingV2TrunkingCountryInstanceTerminatingPrefixPrices.md)
    54   - [ListTrunkingCountryResponseMeta](docs/ListTrunkingCountryResponseMeta.md)
    55   - [PricingV2TrunkingNumberOriginatingCallPrice](docs/PricingV2TrunkingNumberOriginatingCallPrice.md)
    56   - [PricingV2VoiceVoiceNumberInboundCallPrice](docs/PricingV2VoiceVoiceNumberInboundCallPrice.md)
    57   - [PricingV2VoiceNumber](docs/PricingV2VoiceNumber.md)
    58   - [PricingV2Voice](docs/PricingV2Voice.md)
    59  
    60  
    61  ## Documentation For Authorization
    62  
    63  
    64  
    65  ## accountSid_authToken
    66  
    67  - **Type**: HTTP basic authentication
    68  
    69  Example
    70  
    71  ```golang
    72  auth := context.WithValue(context.Background(), sw.ContextBasicAuth, sw.BasicAuth{
    73      UserName: "username",
    74      Password: "password",
    75  })
    76  r, err := client.Service.Operation(auth, args)
    77  ```
    78