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

ClassMethodHTTP requestDescription
ServicesApiCreateServicePost /v1/Services
ServicesApiDeleteServiceDelete /v1/Services/{Sid}
ServicesApiFetchServiceGet /v1/Services/{Sid}
ServicesApiListServiceGet /v1/Services
ServicesApiUpdateServicePost /v1/Services/{Sid}
ServicesPhoneNumbersApiCreatePhoneNumberPost /v1/Services/{ServiceSid}/PhoneNumbers
ServicesPhoneNumbersApiDeletePhoneNumberDelete /v1/Services/{ServiceSid}/PhoneNumbers/{Sid}
ServicesPhoneNumbersApiFetchPhoneNumberGet /v1/Services/{ServiceSid}/PhoneNumbers/{Sid}
ServicesPhoneNumbersApiListPhoneNumberGet /v1/Services/{ServiceSid}/PhoneNumbers
ServicesPhoneNumbersApiUpdatePhoneNumberPost /v1/Services/{ServiceSid}/PhoneNumbers/{Sid}
ServicesSessionsApiCreateSessionPost /v1/Services/{ServiceSid}/Sessions
ServicesSessionsApiDeleteSessionDelete /v1/Services/{ServiceSid}/Sessions/{Sid}
ServicesSessionsApiFetchSessionGet /v1/Services/{ServiceSid}/Sessions/{Sid}
ServicesSessionsApiListSessionGet /v1/Services/{ServiceSid}/Sessions
ServicesSessionsApiUpdateSessionPost /v1/Services/{ServiceSid}/Sessions/{Sid}
ServicesSessionsInteractionsApiDeleteInteractionDelete /v1/Services/{ServiceSid}/Sessions/{SessionSid}/Interactions/{Sid}
ServicesSessionsInteractionsApiFetchInteractionGet /v1/Services/{ServiceSid}/Sessions/{SessionSid}/Interactions/{Sid}
ServicesSessionsInteractionsApiListInteractionGet /v1/Services/{ServiceSid}/Sessions/{SessionSid}/Interactions
ServicesSessionsParticipantsApiCreateParticipantPost /v1/Services/{ServiceSid}/Sessions/{SessionSid}/Participants
ServicesSessionsParticipantsApiDeleteParticipantDelete /v1/Services/{ServiceSid}/Sessions/{SessionSid}/Participants/{Sid}
ServicesSessionsParticipantsApiFetchParticipantGet /v1/Services/{ServiceSid}/Sessions/{SessionSid}/Participants/{Sid}
ServicesSessionsParticipantsApiListParticipantGet /v1/Services/{ServiceSid}/Sessions/{SessionSid}/Participants
ServicesSessionsParticipantsMessageInteractionsApiCreateMessageInteractionPost /v1/Services/{ServiceSid}/Sessions/{SessionSid}/Participants/{ParticipantSid}/MessageInteractions
ServicesSessionsParticipantsMessageInteractionsApiFetchMessageInteractionGet /v1/Services/{ServiceSid}/Sessions/{SessionSid}/Participants/{ParticipantSid}/MessageInteractions/{Sid}
ServicesSessionsParticipantsMessageInteractionsApiListMessageInteractionGet /v1/Services/{ServiceSid}/Sessions/{SessionSid}/Participants/{ParticipantSid}/MessageInteractions
ServicesShortCodesApiCreateShortCodePost /v1/Services/{ServiceSid}/ShortCodes
ServicesShortCodesApiDeleteShortCodeDelete /v1/Services/{ServiceSid}/ShortCodes/{Sid}
ServicesShortCodesApiFetchShortCodeGet /v1/Services/{ServiceSid}/ShortCodes/{Sid}
ServicesShortCodesApiListShortCodeGet /v1/Services/{ServiceSid}/ShortCodes
ServicesShortCodesApiUpdateShortCodePost /v1/Services/{ServiceSid}/ShortCodes/{Sid}

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 'CreateMessageInteraction'.
Optional parameters for the method 'CreateParticipant'.
Optional parameters for the method 'CreatePhoneNumber'.
Optional parameters for the method 'CreateService'.
Optional parameters for the method 'CreateSession'.
Optional parameters for the method 'CreateShortCode'.
Optional parameters for the method 'ListInteraction'.
ListInteractionResponse struct for ListInteractionResponse.
ListInteractionResponseMeta struct for ListInteractionResponseMeta.
Optional parameters for the method 'ListMessageInteraction'.
ListMessageInteractionResponse struct for ListMessageInteractionResponse.
Optional parameters for the method 'ListParticipant'.
ListParticipantResponse struct for ListParticipantResponse.
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 'ListSession'.
ListSessionResponse struct for ListSessionResponse.
Optional parameters for the method 'ListShortCode'.
ListShortCodeResponse struct for ListShortCodeResponse.
ProxyV1Interaction struct for ProxyV1Interaction.
ProxyV1MessageInteraction struct for ProxyV1MessageInteraction.
ProxyV1Participant struct for ProxyV1Participant.
ProxyV1PhoneNumber struct for ProxyV1PhoneNumber.
ProxyV1Service struct for ProxyV1Service.
ProxyV1ServicePhoneNumberCapabilities The capabilities of the phone number.
ProxyV1ServiceShortCodeCapabilities The capabilities of the short code.
ProxyV1Session struct for ProxyV1Session.
ProxyV1ShortCode struct for ProxyV1ShortCode.
Optional parameters for the method 'UpdatePhoneNumber'.
Optional parameters for the method 'UpdateService'.
Optional parameters for the method 'UpdateSession'.
Optional parameters for the method 'UpdateShortCode'.