# 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://studio.twilio.com
Class | Method | HTTP request | Description |
---|---|---|---|
FlowsApi | CreateFlow | Post /v2/Flows | |
FlowsApi | DeleteFlow | Delete /v2/Flows/{Sid} | |
FlowsApi | FetchFlow | Get /v2/Flows/{Sid} | |
FlowsApi | ListFlow | Get /v2/Flows | |
FlowsApi | UpdateFlow | Post /v2/Flows/{Sid} | |
FlowsExecutionsApi | CreateExecution | Post /v2/Flows/{FlowSid}/Executions | |
FlowsExecutionsApi | DeleteExecution | Delete /v2/Flows/{FlowSid}/Executions/{Sid} | |
FlowsExecutionsApi | FetchExecution | Get /v2/Flows/{FlowSid}/Executions/{Sid} | |
FlowsExecutionsApi | ListExecution | Get /v2/Flows/{FlowSid}/Executions | |
FlowsExecutionsApi | UpdateExecution | Post /v2/Flows/{FlowSid}/Executions/{Sid} | |
FlowsExecutionsContextApi | FetchExecutionContext | Get /v2/Flows/{FlowSid}/Executions/{ExecutionSid}/Context | |
FlowsExecutionsStepsApi | FetchExecutionStep | Get /v2/Flows/{FlowSid}/Executions/{ExecutionSid}/Steps/{Sid} | |
FlowsExecutionsStepsApi | ListExecutionStep | Get /v2/Flows/{FlowSid}/Executions/{ExecutionSid}/Steps | |
FlowsExecutionsStepsContextApi | FetchExecutionStepContext | Get /v2/Flows/{FlowSid}/Executions/{ExecutionSid}/Steps/{StepSid}/Context | |
FlowsRevisionsApi | FetchFlowRevision | Get /v2/Flows/{Sid}/Revisions/{Revision} | |
FlowsRevisionsApi | ListFlowRevision | Get /v2/Flows/{Sid}/Revisions | |
FlowsTestUsersApi | FetchTestUser | Get /v2/Flows/{Sid}/TestUsers | |
FlowsTestUsersApi | UpdateTestUser | Post /v2/Flows/{Sid}/TestUsers | |
FlowsValidateApi | UpdateFlowValidate | Post /v2/Flows/Validate |
Documentation For Models
- StudioV2TestUser
- StudioV2ExecutionStepContext
- StudioV2ExecutionContext
- StudioV2Execution
- StudioV2FlowRevision
- StudioV2FlowValidate
- ListExecutionResponse
- ListFlowResponse
- StudioV2Flow
- ListExecutionResponseMeta
- ListExecutionStepResponse
- StudioV2ExecutionStep
- ListFlowRevisionResponse
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 'CreateExecution'.
Optional parameters for the method 'CreateFlow'.
Optional parameters for the method 'ListExecution'.
ListExecutionResponse struct for ListExecutionResponse.
ListExecutionResponseMeta struct for ListExecutionResponseMeta.
Optional parameters for the method 'ListExecutionStep'.
ListExecutionStepResponse struct for ListExecutionStepResponse.
Optional parameters for the method 'ListFlow'.
ListFlowResponse struct for ListFlowResponse.
Optional parameters for the method 'ListFlowRevision'.
ListFlowRevisionResponse struct for ListFlowRevisionResponse.
StudioV2Execution struct for StudioV2Execution.
StudioV2ExecutionContext struct for StudioV2ExecutionContext.
StudioV2ExecutionStep struct for StudioV2ExecutionStep.
StudioV2ExecutionStepContext struct for StudioV2ExecutionStepContext.
StudioV2Flow struct for StudioV2Flow.
StudioV2FlowRevision struct for StudioV2FlowRevision.
StudioV2FlowValidate struct for StudioV2FlowValidate.
StudioV2TestUser struct for StudioV2TestUser.
Optional parameters for the method 'UpdateExecution'.
Optional parameters for the method 'UpdateFlow'.
Optional parameters for the method 'UpdateFlowValidate'.
Optional parameters for the method 'UpdateTestUser'.