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://trunking.twilio.com

ClassMethodHTTP requestDescription
TrunksApiCreateTrunkPost /v1/Trunks
TrunksApiDeleteTrunkDelete /v1/Trunks/{Sid}
TrunksApiFetchTrunkGet /v1/Trunks/{Sid}
TrunksApiListTrunkGet /v1/Trunks
TrunksApiUpdateTrunkPost /v1/Trunks/{Sid}
TrunksCredentialListsApiCreateCredentialListPost /v1/Trunks/{TrunkSid}/CredentialLists
TrunksCredentialListsApiDeleteCredentialListDelete /v1/Trunks/{TrunkSid}/CredentialLists/{Sid}
TrunksCredentialListsApiFetchCredentialListGet /v1/Trunks/{TrunkSid}/CredentialLists/{Sid}
TrunksCredentialListsApiListCredentialListGet /v1/Trunks/{TrunkSid}/CredentialLists
TrunksIpAccessControlListsApiCreateIpAccessControlListPost /v1/Trunks/{TrunkSid}/IpAccessControlLists
TrunksIpAccessControlListsApiDeleteIpAccessControlListDelete /v1/Trunks/{TrunkSid}/IpAccessControlLists/{Sid}
TrunksIpAccessControlListsApiFetchIpAccessControlListGet /v1/Trunks/{TrunkSid}/IpAccessControlLists/{Sid}
TrunksIpAccessControlListsApiListIpAccessControlListGet /v1/Trunks/{TrunkSid}/IpAccessControlLists
TrunksOriginationUrlsApiCreateOriginationUrlPost /v1/Trunks/{TrunkSid}/OriginationUrls
TrunksOriginationUrlsApiDeleteOriginationUrlDelete /v1/Trunks/{TrunkSid}/OriginationUrls/{Sid}
TrunksOriginationUrlsApiFetchOriginationUrlGet /v1/Trunks/{TrunkSid}/OriginationUrls/{Sid}
TrunksOriginationUrlsApiListOriginationUrlGet /v1/Trunks/{TrunkSid}/OriginationUrls
TrunksOriginationUrlsApiUpdateOriginationUrlPost /v1/Trunks/{TrunkSid}/OriginationUrls/{Sid}
TrunksPhoneNumbersApiCreatePhoneNumberPost /v1/Trunks/{TrunkSid}/PhoneNumbers
TrunksPhoneNumbersApiDeletePhoneNumberDelete /v1/Trunks/{TrunkSid}/PhoneNumbers/{Sid}
TrunksPhoneNumbersApiFetchPhoneNumberGet /v1/Trunks/{TrunkSid}/PhoneNumbers/{Sid}
TrunksPhoneNumbersApiListPhoneNumberGet /v1/Trunks/{TrunkSid}/PhoneNumbers
TrunksRecordingApiFetchRecordingGet /v1/Trunks/{TrunkSid}/Recording
TrunksRecordingApiUpdateRecordingPost /v1/Trunks/{TrunkSid}/Recording

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 'CreateCredentialList'.
Optional parameters for the method 'CreateIpAccessControlList'.
Optional parameters for the method 'CreateOriginationUrl'.
Optional parameters for the method 'CreatePhoneNumber'.
Optional parameters for the method 'CreateTrunk'.
Optional parameters for the method 'ListCredentialList'.
ListCredentialListResponse struct for ListCredentialListResponse.
ListCredentialListResponseMeta struct for ListCredentialListResponseMeta.
Optional parameters for the method 'ListIpAccessControlList'.
ListIpAccessControlListResponse struct for ListIpAccessControlListResponse.
Optional parameters for the method 'ListOriginationUrl'.
ListOriginationUrlResponse struct for ListOriginationUrlResponse.
Optional parameters for the method 'ListPhoneNumber'.
ListPhoneNumberResponse struct for ListPhoneNumberResponse.
Optional parameters for the method 'ListTrunk'.
ListTrunkResponse struct for ListTrunkResponse.
TrunkingV1CredentialList struct for TrunkingV1CredentialList.
TrunkingV1IpAccessControlList struct for TrunkingV1IpAccessControlList.
TrunkingV1OriginationUrl struct for TrunkingV1OriginationUrl.
TrunkingV1PhoneNumber struct for TrunkingV1PhoneNumber.
TrunkingV1Recording struct for TrunkingV1Recording.
TrunkingV1Trunk struct for TrunkingV1Trunk.
Optional parameters for the method 'UpdateOriginationUrl'.
Optional parameters for the method 'UpdateRecording'.
Optional parameters for the method 'UpdateTrunk'.