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

ClassMethodHTTP requestDescription
CredentialsApiCreateCredentialPost /v1/Credentials
CredentialsApiDeleteCredentialDelete /v1/Credentials/{Sid}
CredentialsApiFetchCredentialGet /v1/Credentials/{Sid}
CredentialsApiListCredentialGet /v1/Credentials
CredentialsApiUpdateCredentialPost /v1/Credentials/{Sid}
ServicesApiCreateServicePost /v1/Services
ServicesApiDeleteServiceDelete /v1/Services/{Sid}
ServicesApiFetchServiceGet /v1/Services/{Sid}
ServicesApiListServiceGet /v1/Services
ServicesApiUpdateServicePost /v1/Services/{Sid}
ServicesBindingsApiCreateBindingPost /v1/Services/{ServiceSid}/Bindings
ServicesBindingsApiDeleteBindingDelete /v1/Services/{ServiceSid}/Bindings/{Sid}
ServicesBindingsApiFetchBindingGet /v1/Services/{ServiceSid}/Bindings/{Sid}
ServicesBindingsApiListBindingGet /v1/Services/{ServiceSid}/Bindings
ServicesNotificationsApiCreateNotificationPost /v1/Services/{ServiceSid}/Notifications

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 'CreateBinding'.
Optional parameters for the method 'CreateCredential'.
Optional parameters for the method 'CreateNotification'.
Optional parameters for the method 'CreateService'.
Optional parameters for the method 'ListBinding'.
ListBindingResponse struct for ListBindingResponse.
ListBindingResponseMeta struct for ListBindingResponseMeta.
Optional parameters for the method 'ListCredential'.
ListCredentialResponse struct for ListCredentialResponse.
Optional parameters for the method 'ListService'.
ListServiceResponse struct for ListServiceResponse.
NotifyV1Binding struct for NotifyV1Binding.
NotifyV1Credential struct for NotifyV1Credential.
NotifyV1Notification struct for NotifyV1Notification.
NotifyV1Service struct for NotifyV1Service.
Optional parameters for the method 'UpdateCredential'.
Optional parameters for the method 'UpdateService'.