# 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
Class | Method | HTTP request | Description |
---|---|---|---|
CredentialsApi | CreateCredential | Post /v1/Credentials | |
CredentialsApi | DeleteCredential | Delete /v1/Credentials/{Sid} | |
CredentialsApi | FetchCredential | Get /v1/Credentials/{Sid} | |
CredentialsApi | ListCredential | Get /v1/Credentials | |
CredentialsApi | UpdateCredential | Post /v1/Credentials/{Sid} | |
ServicesApi | CreateService | Post /v1/Services | |
ServicesApi | DeleteService | Delete /v1/Services/{Sid} | |
ServicesApi | FetchService | Get /v1/Services/{Sid} | |
ServicesApi | ListService | Get /v1/Services | |
ServicesApi | UpdateService | Post /v1/Services/{Sid} | |
ServicesBindingsApi | CreateBinding | Post /v1/Services/{ServiceSid}/Bindings | |
ServicesBindingsApi | DeleteBinding | Delete /v1/Services/{ServiceSid}/Bindings/{Sid} | |
ServicesBindingsApi | FetchBinding | Get /v1/Services/{ServiceSid}/Bindings/{Sid} | |
ServicesBindingsApi | ListBinding | Get /v1/Services/{ServiceSid}/Bindings | |
ServicesNotificationsApi | CreateNotification | Post /v1/Services/{ServiceSid}/Notifications |
Documentation For Models
- NotifyV1Credential
- ListBindingResponseMeta
- NotifyV1Notification
- NotifyV1Service
- NotifyV1Binding
- ListBindingResponse
- ListCredentialResponse
- ListServiceResponse
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'.