package
1.22.3
Repository: https://github.com/twilio/twilio-go.git
Documentation: pkg.go.dev

# README

Go API client for openapi

This is the public Twilio REST API.

Overview

This API client was generated by the OpenAPI Generator project from the OpenAPI specs located at twilio/twilio-oai. By using the OpenAPI-spec from a remote server, you can easily generate an API client.

  • API version: 1.0.0
  • Package version: 1.0.0
  • Build package: com.twilio.oai.TwilioGoGenerator For more information, please visit https://support.twilio.com

Installation

Install the following dependencies:

go get github.com/stretchr/testify/assert
go get golang.org/x/net/context

Put the package under your project folder and add the following in import:

import "./openapi"

Documentation for API Endpoints

All URIs are relative to https://pricing.twilio.com

ClassMethodHTTP requestDescription
MessagingCountriesApiFetchMessagingCountryGet /v1/Messaging/Countries/{IsoCountry}
MessagingCountriesApiListMessagingCountryGet /v1/Messaging/Countries
PhoneNumbersCountriesApiFetchPhoneNumberCountryGet /v1/PhoneNumbers/Countries/{IsoCountry}
PhoneNumbersCountriesApiListPhoneNumberCountryGet /v1/PhoneNumbers/Countries
VoiceCountriesApiFetchVoiceCountryGet /v1/Voice/Countries/{IsoCountry}
VoiceCountriesApiListVoiceCountryGet /v1/Voice/Countries
VoiceNumbersApiFetchVoiceNumberGet /v1/Voice/Numbers/{Number}

Documentation For Models

Documentation For Authorization

accountSid_authToken

  • Type: HTTP basic authentication

Example

auth := context.WithValue(context.Background(), sw.ContextBasicAuth, sw.BasicAuth{
    UserName: "username",
    Password: "password",
})
r, err := client.Service.Operation(auth, args)

# Functions

No description provided by the author
No description provided by the author

# Structs

No description provided by the author
Optional parameters for the method 'ListMessagingCountry'.
ListMessagingCountryResponse struct for ListMessagingCountryResponse.
ListMessagingCountryResponseMeta struct for ListMessagingCountryResponseMeta.
Optional parameters for the method 'ListPhoneNumberCountry'.
ListPhoneNumberCountryResponse struct for ListPhoneNumberCountryResponse.
Optional parameters for the method 'ListVoiceCountry'.
ListVoiceCountryResponse struct for ListVoiceCountryResponse.
PricingV1Messaging struct for PricingV1Messaging.
PricingV1MessagingCountry struct for PricingV1MessagingCountry.
PricingV1MessagingCountryInstance struct for PricingV1MessagingCountryInstance.
PricingV1MessagingMessagingCountryInstanceInboundSmsPrices struct for PricingV1MessagingMessagingCountryInstanceInboundSmsPrices.
PricingV1MessagingMessagingCountryInstanceOutboundSmsPrices struct for PricingV1MessagingMessagingCountryInstanceOutboundSmsPrices.
PricingV1MessagingMessagingCountryInstanceOutboundSmsPricesPrices struct for PricingV1MessagingMessagingCountryInstanceOutboundSmsPricesPrices.
PricingV1PhoneNumber struct for PricingV1PhoneNumber.
PricingV1PhoneNumberCountry struct for PricingV1PhoneNumberCountry.
PricingV1PhoneNumberCountryInstance struct for PricingV1PhoneNumberCountryInstance.
PricingV1PhoneNumberPhoneNumberCountryInstancePhoneNumberPrices struct for PricingV1PhoneNumberPhoneNumberCountryInstancePhoneNumberPrices.
PricingV1Voice struct for PricingV1Voice.
PricingV1VoiceCountry struct for PricingV1VoiceCountry.
PricingV1VoiceCountryInstance struct for PricingV1VoiceCountryInstance.
PricingV1VoiceNumber struct for PricingV1VoiceNumber.
PricingV1VoiceVoiceCountryInstanceInboundCallPrices struct for PricingV1VoiceVoiceCountryInstanceInboundCallPrices.
PricingV1VoiceVoiceCountryInstanceOutboundPrefixPrices struct for PricingV1VoiceVoiceCountryInstanceOutboundPrefixPrices.
PricingV1VoiceVoiceNumberInboundCallPrice The [InboundCallPrice](https://www.twilio.com/docs/voice/pricing#inbound-call-price) record.
PricingV1VoiceVoiceNumberOutboundCallPrice The OutboundCallPrice record, which includes a list of `origination_prefixes` and the `base_price` and `current_price` for those prefixes.