package
1.4.0
Repository: https://github.com/ghostmonitor/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://supersim.twilio.com

ClassMethodHTTP requestDescription
ESimProfilesApiCreateEsimProfilePost /v1/ESimProfiles
ESimProfilesApiFetchEsimProfileGet /v1/ESimProfiles/{Sid}
ESimProfilesApiListEsimProfileGet /v1/ESimProfiles
FleetsApiCreateFleetPost /v1/Fleets
FleetsApiFetchFleetGet /v1/Fleets/{Sid}
FleetsApiListFleetGet /v1/Fleets
FleetsApiUpdateFleetPost /v1/Fleets/{Sid}
IpCommandsApiCreateIpCommandPost /v1/IpCommands
IpCommandsApiFetchIpCommandGet /v1/IpCommands/{Sid}
IpCommandsApiListIpCommandGet /v1/IpCommands
NetworkAccessProfilesApiCreateNetworkAccessProfilePost /v1/NetworkAccessProfiles
NetworkAccessProfilesApiFetchNetworkAccessProfileGet /v1/NetworkAccessProfiles/{Sid}
NetworkAccessProfilesApiListNetworkAccessProfileGet /v1/NetworkAccessProfiles
NetworkAccessProfilesApiUpdateNetworkAccessProfilePost /v1/NetworkAccessProfiles/{Sid}
NetworkAccessProfilesNetworksApiCreateNetworkAccessProfileNetworkPost /v1/NetworkAccessProfiles/{NetworkAccessProfileSid}/Networks
NetworkAccessProfilesNetworksApiDeleteNetworkAccessProfileNetworkDelete /v1/NetworkAccessProfiles/{NetworkAccessProfileSid}/Networks/{Sid}
NetworkAccessProfilesNetworksApiFetchNetworkAccessProfileNetworkGet /v1/NetworkAccessProfiles/{NetworkAccessProfileSid}/Networks/{Sid}
NetworkAccessProfilesNetworksApiListNetworkAccessProfileNetworkGet /v1/NetworkAccessProfiles/{NetworkAccessProfileSid}/Networks
NetworksApiFetchNetworkGet /v1/Networks/{Sid}
NetworksApiListNetworkGet /v1/Networks
SettingsUpdatesApiListSettingsUpdateGet /v1/SettingsUpdates
SimsApiCreateSimPost /v1/Sims
SimsApiFetchSimGet /v1/Sims/{Sid}
SimsApiListSimGet /v1/Sims
SimsApiUpdateSimPost /v1/Sims/{Sid}
SimsBillingPeriodsApiListBillingPeriodGet /v1/Sims/{SimSid}/BillingPeriods
SimsIpAddressesApiListSimIpAddressGet /v1/Sims/{SimSid}/IpAddresses
SmsCommandsApiCreateSmsCommandPost /v1/SmsCommands
SmsCommandsApiFetchSmsCommandGet /v1/SmsCommands/{Sid}
SmsCommandsApiListSmsCommandGet /v1/SmsCommands
UsageRecordsApiListUsageRecordGet /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)