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

ClassMethodHTTP requestDescription
FlowsApiCreateFlowPost /v2/Flows
FlowsApiDeleteFlowDelete /v2/Flows/{Sid}
FlowsApiFetchFlowGet /v2/Flows/{Sid}
FlowsApiListFlowGet /v2/Flows
FlowsApiUpdateFlowPost /v2/Flows/{Sid}
FlowsExecutionsApiCreateExecutionPost /v2/Flows/{FlowSid}/Executions
FlowsExecutionsApiDeleteExecutionDelete /v2/Flows/{FlowSid}/Executions/{Sid}
FlowsExecutionsApiFetchExecutionGet /v2/Flows/{FlowSid}/Executions/{Sid}
FlowsExecutionsApiListExecutionGet /v2/Flows/{FlowSid}/Executions
FlowsExecutionsApiUpdateExecutionPost /v2/Flows/{FlowSid}/Executions/{Sid}
FlowsExecutionsContextApiFetchExecutionContextGet /v2/Flows/{FlowSid}/Executions/{ExecutionSid}/Context
FlowsExecutionsStepsApiFetchExecutionStepGet /v2/Flows/{FlowSid}/Executions/{ExecutionSid}/Steps/{Sid}
FlowsExecutionsStepsApiListExecutionStepGet /v2/Flows/{FlowSid}/Executions/{ExecutionSid}/Steps
FlowsExecutionsStepsContextApiFetchExecutionStepContextGet /v2/Flows/{FlowSid}/Executions/{ExecutionSid}/Steps/{StepSid}/Context
FlowsRevisionsApiFetchFlowRevisionGet /v2/Flows/{Sid}/Revisions/{Revision}
FlowsRevisionsApiListFlowRevisionGet /v2/Flows/{Sid}/Revisions
FlowsTestUsersApiFetchTestUserGet /v2/Flows/{Sid}/TestUsers
FlowsTestUsersApiUpdateTestUserPost /v2/Flows/{Sid}/TestUsers
FlowsValidateApiUpdateFlowValidatePost /v2/Flows/Validate

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 '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'.