# 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
Class | Method | HTTP request | Description |
---|---|---|---|
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} | |
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 | |
ServicesPhoneNumbersApi | UpdatePhoneNumber | Post /v1/Services/{ServiceSid}/PhoneNumbers/{Sid} | |
ServicesSessionsApi | CreateSession | Post /v1/Services/{ServiceSid}/Sessions | |
ServicesSessionsApi | DeleteSession | Delete /v1/Services/{ServiceSid}/Sessions/{Sid} | |
ServicesSessionsApi | FetchSession | Get /v1/Services/{ServiceSid}/Sessions/{Sid} | |
ServicesSessionsApi | ListSession | Get /v1/Services/{ServiceSid}/Sessions | |
ServicesSessionsApi | UpdateSession | Post /v1/Services/{ServiceSid}/Sessions/{Sid} | |
ServicesSessionsInteractionsApi | DeleteInteraction | Delete /v1/Services/{ServiceSid}/Sessions/{SessionSid}/Interactions/{Sid} | |
ServicesSessionsInteractionsApi | FetchInteraction | Get /v1/Services/{ServiceSid}/Sessions/{SessionSid}/Interactions/{Sid} | |
ServicesSessionsInteractionsApi | ListInteraction | Get /v1/Services/{ServiceSid}/Sessions/{SessionSid}/Interactions | |
ServicesSessionsParticipantsApi | CreateParticipant | Post /v1/Services/{ServiceSid}/Sessions/{SessionSid}/Participants | |
ServicesSessionsParticipantsApi | DeleteParticipant | Delete /v1/Services/{ServiceSid}/Sessions/{SessionSid}/Participants/{Sid} | |
ServicesSessionsParticipantsApi | FetchParticipant | Get /v1/Services/{ServiceSid}/Sessions/{SessionSid}/Participants/{Sid} | |
ServicesSessionsParticipantsApi | ListParticipant | Get /v1/Services/{ServiceSid}/Sessions/{SessionSid}/Participants | |
ServicesSessionsParticipantsMessageInteractionsApi | CreateMessageInteraction | Post /v1/Services/{ServiceSid}/Sessions/{SessionSid}/Participants/{ParticipantSid}/MessageInteractions | |
ServicesSessionsParticipantsMessageInteractionsApi | FetchMessageInteraction | Get /v1/Services/{ServiceSid}/Sessions/{SessionSid}/Participants/{ParticipantSid}/MessageInteractions/{Sid} | |
ServicesSessionsParticipantsMessageInteractionsApi | ListMessageInteraction | Get /v1/Services/{ServiceSid}/Sessions/{SessionSid}/Participants/{ParticipantSid}/MessageInteractions | |
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 | |
ServicesShortCodesApi | UpdateShortCode | Post /v1/Services/{ServiceSid}/ShortCodes/{Sid} |
Documentation For Models
- ProxyV1ServiceShortCodeCapabilities
- ProxyV1PhoneNumber
- ListSessionResponse
- ProxyV1Session
- ListInteractionResponse
- ListPhoneNumberResponse
- ListServiceResponse
- ProxyV1Interaction
- ProxyV1ServicePhoneNumberCapabilities
- ProxyV1MessageInteraction
- ListParticipantResponse
- ListInteractionResponseMeta
- ListMessageInteractionResponse
- ProxyV1Service
- ProxyV1Participant
- ListShortCodeResponse
- ProxyV1ShortCode
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'.