# 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://messaging.twilio.com
Class | Method | HTTP request | Description |
---|---|---|---|
A2pBrandRegistrationsApi | CreateBrandRegistrations | Post /v1/a2p/BrandRegistrations | |
A2pBrandRegistrationsApi | FetchBrandRegistrations | Get /v1/a2p/BrandRegistrations/{Sid} | |
A2pBrandRegistrationsApi | ListBrandRegistrations | Get /v1/a2p/BrandRegistrations | |
A2pBrandRegistrationsApi | UpdateBrandRegistrations | Post /v1/a2p/BrandRegistrations/{Sid} | |
A2pBrandRegistrationsSmsOtpApi | CreateBrandRegistrationOtp | Post /v1/a2p/BrandRegistrations/{BrandRegistrationSid}/SmsOtp | |
A2pBrandRegistrationsVettingsApi | CreateBrandVetting | Post /v1/a2p/BrandRegistrations/{BrandSid}/Vettings | |
A2pBrandRegistrationsVettingsApi | FetchBrandVetting | Get /v1/a2p/BrandRegistrations/{BrandSid}/Vettings/{BrandVettingSid} | |
A2pBrandRegistrationsVettingsApi | ListBrandVetting | Get /v1/a2p/BrandRegistrations/{BrandSid}/Vettings | |
DeactivationsApi | FetchDeactivation | Get /v1/Deactivations | |
LinkShorteningDomainsCertificateApi | DeleteDomainCertV4 | Delete /v1/LinkShortening/Domains/{DomainSid}/Certificate | |
LinkShorteningDomainsCertificateApi | FetchDomainCertV4 | Get /v1/LinkShortening/Domains/{DomainSid}/Certificate | |
LinkShorteningDomainsCertificateApi | UpdateDomainCertV4 | Post /v1/LinkShortening/Domains/{DomainSid}/Certificate | |
LinkShorteningDomainsConfigApi | FetchDomainConfig | Get /v1/LinkShortening/Domains/{DomainSid}/Config | |
LinkShorteningDomainsConfigApi | UpdateDomainConfig | Post /v1/LinkShortening/Domains/{DomainSid}/Config | |
LinkShorteningDomainsMessagingServicesApi | CreateLinkshorteningMessagingService | Post /v1/LinkShortening/Domains/{DomainSid}/MessagingServices/{MessagingServiceSid} | |
LinkShorteningDomainsMessagingServicesApi | DeleteLinkshorteningMessagingService | Delete /v1/LinkShortening/Domains/{DomainSid}/MessagingServices/{MessagingServiceSid} | |
LinkShorteningMessagingServiceDomainConfigApi | FetchDomainConfigMessagingService | Get /v1/LinkShortening/MessagingService/{MessagingServiceSid}/DomainConfig | |
LinkShorteningMessagingServicesDomainApi | FetchLinkshorteningMessagingServiceDomainAssociation | Get /v1/LinkShortening/MessagingServices/{MessagingServiceSid}/Domain | |
ServicesApi | CreateService | Post /v1/Services | |
ServicesApi | DeleteService | Delete /v1/Services/{Sid} | |
ServicesApi | FetchService | Get /v1/Services/{Sid} | |
ServicesApi | ListService | Get /v1/Services | |
ServicesApi | UpdateService | Post /v1/Services/{Sid} | |
ServicesAlphaSendersApi | CreateAlphaSender | Post /v1/Services/{ServiceSid}/AlphaSenders | |
ServicesAlphaSendersApi | DeleteAlphaSender | Delete /v1/Services/{ServiceSid}/AlphaSenders/{Sid} | |
ServicesAlphaSendersApi | FetchAlphaSender | Get /v1/Services/{ServiceSid}/AlphaSenders/{Sid} | |
ServicesAlphaSendersApi | ListAlphaSender | Get /v1/Services/{ServiceSid}/AlphaSenders | |
ServicesChannelSendersApi | FetchChannelSender | Get /v1/Services/{MessagingServiceSid}/ChannelSenders/{Sid} | |
ServicesChannelSendersApi | ListChannelSender | Get /v1/Services/{MessagingServiceSid}/ChannelSenders | |
ServicesComplianceUsa2pApi | CreateUsAppToPerson | Post /v1/Services/{MessagingServiceSid}/Compliance/Usa2p | |
ServicesComplianceUsa2pApi | DeleteUsAppToPerson | Delete /v1/Services/{MessagingServiceSid}/Compliance/Usa2p/{Sid} | |
ServicesComplianceUsa2pApi | FetchUsAppToPerson | Get /v1/Services/{MessagingServiceSid}/Compliance/Usa2p/{Sid} | |
ServicesComplianceUsa2pApi | ListUsAppToPerson | Get /v1/Services/{MessagingServiceSid}/Compliance/Usa2p | |
ServicesComplianceUsa2pApi | UpdateUsAppToPerson | Post /v1/Services/{MessagingServiceSid}/Compliance/Usa2p/{Sid} | |
ServicesComplianceUsa2pUsecasesApi | FetchUsAppToPersonUsecase | Get /v1/Services/{MessagingServiceSid}/Compliance/Usa2p/Usecases | |
ServicesPhoneNumbersApi | CreatePhoneNumber | Post /v1/Services/{ServiceSid}/PhoneNumbers | |
ServicesPhoneNumbersApi | DeletePhoneNumber | Delete /v1/Services/{ServiceSid}/PhoneNumbers/{Sid} | |
ServicesPhoneNumbersApi | FetchPhoneNumber | Get /v1/Services/{ServiceSid}/PhoneNumbers/{Sid} | |
ServicesPhoneNumbersApi | ListPhoneNumber | Get /v1/Services/{ServiceSid}/PhoneNumbers | |
ServicesPreregisteredUsa2pApi | CreateExternalCampaign | Post /v1/Services/PreregisteredUsa2p | |
ServicesShortCodesApi | CreateShortCode | Post /v1/Services/{ServiceSid}/ShortCodes | |
ServicesShortCodesApi | DeleteShortCode | Delete /v1/Services/{ServiceSid}/ShortCodes/{Sid} | |
ServicesShortCodesApi | FetchShortCode | Get /v1/Services/{ServiceSid}/ShortCodes/{Sid} | |
ServicesShortCodesApi | ListShortCode | Get /v1/Services/{ServiceSid}/ShortCodes | |
ServicesUsecasesApi | FetchUsecase | Get /v1/Services/Usecases | |
TollfreeVerificationsApi | CreateTollfreeVerification | Post /v1/Tollfree/Verifications | |
TollfreeVerificationsApi | DeleteTollfreeVerification | Delete /v1/Tollfree/Verifications/{Sid} | |
TollfreeVerificationsApi | FetchTollfreeVerification | Get /v1/Tollfree/Verifications/{Sid} | |
TollfreeVerificationsApi | ListTollfreeVerification | Get /v1/Tollfree/Verifications | |
TollfreeVerificationsApi | UpdateTollfreeVerification | Post /v1/Tollfree/Verifications/{Sid} |
Documentation For Models
- MessagingV1DomainCertV4
- MessagingV1LinkshorteningMessagingServiceDomainAssociation
- MessagingV1ExternalCampaign
- MessagingV1UsAppToPersonUsecase
- MessagingV1LinkshorteningMessagingService
- MessagingV1TollfreeVerification
- MessagingV1DomainConfig
- MessagingV1UsAppToPerson
- ListServiceResponse
- MessagingV1BrandRegistrationOtp
- MessagingV1BrandRegistrations
- MessagingV1ChannelSender
- MessagingV1ShortCode
- MessagingV1Usecase
- ListBrandVettingResponse
- ListAlphaSenderResponse
- ListUsAppToPersonResponse
- ListChannelSenderResponse
- MessagingV1DomainConfigMessagingService
- MessagingV1Service
- MessagingV1Deactivation
- MessagingV1PhoneNumber
- ListBrandRegistrationsResponse
- ListPhoneNumberResponse
- ListTollfreeVerificationResponse
- MessagingV1AlphaSender
- ListAlphaSenderResponseMeta
- MessagingV1BrandVetting
- ListShortCodeResponse
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 'CreateAlphaSender'.
Optional parameters for the method 'CreateBrandRegistrations'.
Optional parameters for the method 'CreateBrandVetting'.
Optional parameters for the method 'CreateExternalCampaign'.
Optional parameters for the method 'CreatePhoneNumber'.
Optional parameters for the method 'CreateService'.
Optional parameters for the method 'CreateShortCode'.
Optional parameters for the method 'CreateTollfreeVerification'.
Optional parameters for the method 'CreateUsAppToPerson'.
Optional parameters for the method 'FetchDeactivation'.
Optional parameters for the method 'FetchUsAppToPersonUsecase'.
Optional parameters for the method 'ListAlphaSender'.
ListAlphaSenderResponse struct for ListAlphaSenderResponse.
ListAlphaSenderResponseMeta struct for ListAlphaSenderResponseMeta.
Optional parameters for the method 'ListBrandRegistrations'.
ListBrandRegistrationsResponse struct for ListBrandRegistrationsResponse.
Optional parameters for the method 'ListBrandVetting'.
ListBrandVettingResponse struct for ListBrandVettingResponse.
Optional parameters for the method 'ListChannelSender'.
ListChannelSenderResponse struct for ListChannelSenderResponse.
Optional parameters for the method 'ListPhoneNumber'.
ListPhoneNumberResponse struct for ListPhoneNumberResponse.
Optional parameters for the method 'ListService'.
ListServiceResponse struct for ListServiceResponse.
Optional parameters for the method 'ListShortCode'.
ListShortCodeResponse struct for ListShortCodeResponse.
Optional parameters for the method 'ListTollfreeVerification'.
ListTollfreeVerificationResponse struct for ListTollfreeVerificationResponse.
Optional parameters for the method 'ListUsAppToPerson'.
ListUsAppToPersonResponse struct for ListUsAppToPersonResponse.
MessagingV1AlphaSender struct for MessagingV1AlphaSender.
MessagingV1BrandRegistrationOtp struct for MessagingV1BrandRegistrationOtp.
MessagingV1BrandRegistrations struct for MessagingV1BrandRegistrations.
MessagingV1BrandVetting struct for MessagingV1BrandVetting.
MessagingV1ChannelSender struct for MessagingV1ChannelSender.
MessagingV1Deactivation struct for MessagingV1Deactivation.
MessagingV1DomainCertV4 struct for MessagingV1DomainCertV4.
MessagingV1DomainConfig struct for MessagingV1DomainConfig.
MessagingV1DomainConfigMessagingService struct for MessagingV1DomainConfigMessagingService.
MessagingV1ExternalCampaign struct for MessagingV1ExternalCampaign.
MessagingV1LinkshorteningMessagingService struct for MessagingV1LinkshorteningMessagingService.
MessagingV1LinkshorteningMessagingServiceDomainAssociation struct for MessagingV1LinkshorteningMessagingServiceDomainAssociation.
MessagingV1PhoneNumber struct for MessagingV1PhoneNumber.
MessagingV1Service struct for MessagingV1Service.
MessagingV1ShortCode struct for MessagingV1ShortCode.
MessagingV1TollfreeVerification struct for MessagingV1TollfreeVerification.
MessagingV1UsAppToPerson struct for MessagingV1UsAppToPerson.
MessagingV1UsAppToPersonUsecase struct for MessagingV1UsAppToPersonUsecase.
MessagingV1Usecase struct for MessagingV1Usecase.
Optional parameters for the method 'UpdateDomainCertV4'.
Optional parameters for the method 'UpdateDomainConfig'.
Optional parameters for the method 'UpdateService'.
Optional parameters for the method 'UpdateTollfreeVerification'.
Optional parameters for the method 'UpdateUsAppToPerson'.