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

ClassMethodHTTP requestDescription
CommandsApiCreateCommandPost /v1/Commands
CommandsApiDeleteCommandDelete /v1/Commands/{Sid}
CommandsApiFetchCommandGet /v1/Commands/{Sid}
CommandsApiListCommandGet /v1/Commands
RatePlansApiCreateRatePlanPost /v1/RatePlans
RatePlansApiDeleteRatePlanDelete /v1/RatePlans/{Sid}
RatePlansApiFetchRatePlanGet /v1/RatePlans/{Sid}
RatePlansApiListRatePlanGet /v1/RatePlans
RatePlansApiUpdateRatePlanPost /v1/RatePlans/{Sid}
SimsApiDeleteSimDelete /v1/Sims/{Sid}
SimsApiFetchSimGet /v1/Sims/{Sid}
SimsApiListSimGet /v1/Sims
SimsApiUpdateSimPost /v1/Sims/{Sid}
SimsDataSessionsApiListDataSessionGet /v1/Sims/{SimSid}/DataSessions
SimsUsageRecordsApiListUsageRecordGet /v1/Sims/{SimSid}/UsageRecords
UsageRecordsApiListAccountUsageRecordGet /v1/UsageRecords

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 'CreateCommand'.
Optional parameters for the method 'CreateRatePlan'.
Optional parameters for the method 'ListAccountUsageRecord'.
ListAccountUsageRecordResponse struct for ListAccountUsageRecordResponse.
ListAccountUsageRecordResponseMeta struct for ListAccountUsageRecordResponseMeta.
Optional parameters for the method 'ListCommand'.
ListCommandResponse struct for ListCommandResponse.
Optional parameters for the method 'ListDataSession'.
ListDataSessionResponse struct for ListDataSessionResponse.
Optional parameters for the method 'ListRatePlan'.
ListRatePlanResponse struct for ListRatePlanResponse.
Optional parameters for the method 'ListSim'.
ListSimResponse struct for ListSimResponse.
Optional parameters for the method 'ListUsageRecord'.
ListUsageRecordResponse struct for ListUsageRecordResponse.
Optional parameters for the method 'UpdateRatePlan'.
Optional parameters for the method 'UpdateSim'.
WirelessV1AccountUsageRecord struct for WirelessV1AccountUsageRecord.
WirelessV1Command struct for WirelessV1Command.
WirelessV1DataSession struct for WirelessV1DataSession.
WirelessV1RatePlan struct for WirelessV1RatePlan.
WirelessV1Sim struct for WirelessV1Sim.
WirelessV1UsageRecord struct for WirelessV1UsageRecord.