# 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.1.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://content.twilio.com
Class | Method | HTTP request | Description |
---|---|---|---|
ContentApi | CreateContent | Post /v1/Content | |
ContentApi | DeleteContent | Delete /v1/Content/{Sid} | |
ContentApi | FetchContent | Get /v1/Content/{Sid} | |
ContentApi | ListContent | Get /v1/Content | |
ContentAndApprovalsApi | ListContentAndApprovals | Get /v1/ContentAndApprovals | |
ContentApprovalRequestsApi | FetchApproval | Get /v1/Content/{ContentSid}/ApprovalRequests | |
ContentApprovalRequestsWhatsappApi | CreateContentApprovalRequest | Post /v1/Content/{ContentSid}/ApprovalRequests/whatsapp | |
LegacyContentApi | ListLegacyContent | Get /v1/LegacyContent |
Documentation For Models
- TwilioCard
- ContentV1ApprovalCreate
- CallToActionActionType
- QuickReplyActionType
- ContentV1ApprovalFetch
- QuickReplyAction
- CardActionType
- ContentV1ContentAndApprovals
- TwilioLocation
- ContentCreateRequest
- TwilioListPicker
- ListContentResponseMeta
- TwilioText
- WhatsappAuthentication
- WhatsappCard
- ListLegacyContentResponse
- ListItem
- TwilioMedia
- Types
- CallToActionAction
- TwilioQuickReply
- ContentApprovalRequest
- TwilioCatalog
- ContentV1Content
- ListContentResponse
- TwilioCallToAction
- AuthenticationActionType
- AuthenticationAction
- CardAction
- CatalogItem
- ContentV1LegacyContent
- ListContentAndApprovalsResponse
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
# Constants
List of authenticationActionType.
List of callToActionActionType.
List of callToActionActionType.
List of cardActionType.
List of cardActionType.
List of cardActionType.
List of quickReplyActionType.
# Structs
No description provided by the author
AuthenticationAction struct for AuthenticationAction.
CallToActionAction struct for CallToActionAction.
CardAction struct for CardAction.
CatalogItem struct for CatalogItem.
ContentApprovalRequest Content approval request body.
ContentCreateRequest Content creation request body.
ContentV1ApprovalCreate struct for ContentV1ApprovalCreate.
ContentV1ApprovalFetch struct for ContentV1ApprovalFetch.
ContentV1Content struct for ContentV1Content.
ContentV1ContentAndApprovals struct for ContentV1ContentAndApprovals.
ContentV1LegacyContent struct for ContentV1LegacyContent.
Optional parameters for the method 'CreateContentApprovalRequest'.
Optional parameters for the method 'CreateContent'.
Optional parameters for the method 'ListContentAndApprovals'.
ListContentAndApprovalsResponse struct for ListContentAndApprovalsResponse.
Optional parameters for the method 'ListContent'.
ListContentResponse struct for ListContentResponse.
ListContentResponseMeta struct for ListContentResponseMeta.
ListItem struct for ListItem.
Optional parameters for the method 'ListLegacyContent'.
ListLegacyContentResponse struct for ListLegacyContentResponse.
QuickReplyAction struct for QuickReplyAction.
TwilioCallToAction twilio/call-to-action buttons let recipients tap to trigger actions such as launching a website or making a phone call.
TwilioCard twilio/card is a structured template which can be used to send a series of related information.
TwilioCatalog twilio/catalog type lets recipients view list of catalog products, ask questions about products, order products.
TwilioListPicker twilio/list-picker includes a menu of up to 10 options, which offers a simple way for users to make a selection.
TwilioLocation twilio/location type contains a location pin and an optional label, which can be used to enhance delivery notifications or connect recipients to physical experiences you offer.
TwilioMedia twilio/media is used to send file attachments, or to send long text via MMS in the US and Canada.
TwilioQuickReply twilio/quick-reply templates let recipients tap, rather than type, to respond to the message.
TwilioText Type containing only plain text-based content.
Types Content types.
WhatsappAuthentication whatsApp/authentication templates let companies deliver WA approved one-time-password button.
WhatsappCard whatsapp/card is a structured template which can be used to send a series of related information.
# Type aliases
AuthenticationActionType the model 'AuthenticationActionType'.
CallToActionActionType the model 'CallToActionActionType'.
CardActionType the model 'CardActionType'.
QuickReplyActionType the model 'QuickReplyActionType'.