# 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
Class | Method | HTTP request | Description |
---|---|---|---|
CommandsApi | CreateCommand | Post /v1/Commands | |
CommandsApi | DeleteCommand | Delete /v1/Commands/{Sid} | |
CommandsApi | FetchCommand | Get /v1/Commands/{Sid} | |
CommandsApi | ListCommand | Get /v1/Commands | |
RatePlansApi | CreateRatePlan | Post /v1/RatePlans | |
RatePlansApi | DeleteRatePlan | Delete /v1/RatePlans/{Sid} | |
RatePlansApi | FetchRatePlan | Get /v1/RatePlans/{Sid} | |
RatePlansApi | ListRatePlan | Get /v1/RatePlans | |
RatePlansApi | UpdateRatePlan | Post /v1/RatePlans/{Sid} | |
SimsApi | DeleteSim | Delete /v1/Sims/{Sid} | |
SimsApi | FetchSim | Get /v1/Sims/{Sid} | |
SimsApi | ListSim | Get /v1/Sims | |
SimsApi | UpdateSim | Post /v1/Sims/{Sid} | |
SimsDataSessionsApi | ListDataSession | Get /v1/Sims/{SimSid}/DataSessions | |
SimsUsageRecordsApi | ListUsageRecord | Get /v1/Sims/{SimSid}/UsageRecords | |
UsageRecordsApi | ListAccountUsageRecord | Get /v1/UsageRecords |
Documentation For Models
- ListRatePlanResponse
- WirelessV1UsageRecord
- ListUsageRecordResponse
- ListAccountUsageRecordResponse
- WirelessV1DataSession
- ListSimResponse
- WirelessV1AccountUsageRecord
- ListAccountUsageRecordResponseMeta
- WirelessV1Command
- WirelessV1Sim
- ListCommandResponse
- WirelessV1RatePlan
- ListDataSessionResponse
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.