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

ClassMethodHTTP requestDescription
CredentialsApiCreateCredentialPost /v2/Credentials
CredentialsApiDeleteCredentialDelete /v2/Credentials/{Sid}
CredentialsApiFetchCredentialGet /v2/Credentials/{Sid}
CredentialsApiListCredentialGet /v2/Credentials
CredentialsApiUpdateCredentialPost /v2/Credentials/{Sid}
ServicesApiCreateServicePost /v2/Services
ServicesApiDeleteServiceDelete /v2/Services/{Sid}
ServicesApiFetchServiceGet /v2/Services/{Sid}
ServicesApiListServiceGet /v2/Services
ServicesApiUpdateServicePost /v2/Services/{Sid}
ServicesBindingsApiDeleteBindingDelete /v2/Services/{ServiceSid}/Bindings/{Sid}
ServicesBindingsApiFetchBindingGet /v2/Services/{ServiceSid}/Bindings/{Sid}
ServicesBindingsApiListBindingGet /v2/Services/{ServiceSid}/Bindings
ServicesChannelsApiCreateChannelPost /v2/Services/{ServiceSid}/Channels
ServicesChannelsApiDeleteChannelDelete /v2/Services/{ServiceSid}/Channels/{Sid}
ServicesChannelsApiFetchChannelGet /v2/Services/{ServiceSid}/Channels/{Sid}
ServicesChannelsApiListChannelGet /v2/Services/{ServiceSid}/Channels
ServicesChannelsApiUpdateChannelPost /v2/Services/{ServiceSid}/Channels/{Sid}
ServicesChannelsInvitesApiCreateInvitePost /v2/Services/{ServiceSid}/Channels/{ChannelSid}/Invites
ServicesChannelsInvitesApiDeleteInviteDelete /v2/Services/{ServiceSid}/Channels/{ChannelSid}/Invites/{Sid}
ServicesChannelsInvitesApiFetchInviteGet /v2/Services/{ServiceSid}/Channels/{ChannelSid}/Invites/{Sid}
ServicesChannelsInvitesApiListInviteGet /v2/Services/{ServiceSid}/Channels/{ChannelSid}/Invites
ServicesChannelsMembersApiCreateMemberPost /v2/Services/{ServiceSid}/Channels/{ChannelSid}/Members
ServicesChannelsMembersApiDeleteMemberDelete /v2/Services/{ServiceSid}/Channels/{ChannelSid}/Members/{Sid}
ServicesChannelsMembersApiFetchMemberGet /v2/Services/{ServiceSid}/Channels/{ChannelSid}/Members/{Sid}
ServicesChannelsMembersApiListMemberGet /v2/Services/{ServiceSid}/Channels/{ChannelSid}/Members
ServicesChannelsMembersApiUpdateMemberPost /v2/Services/{ServiceSid}/Channels/{ChannelSid}/Members/{Sid}
ServicesChannelsMessagesApiCreateMessagePost /v2/Services/{ServiceSid}/Channels/{ChannelSid}/Messages
ServicesChannelsMessagesApiDeleteMessageDelete /v2/Services/{ServiceSid}/Channels/{ChannelSid}/Messages/{Sid}
ServicesChannelsMessagesApiFetchMessageGet /v2/Services/{ServiceSid}/Channels/{ChannelSid}/Messages/{Sid}
ServicesChannelsMessagesApiListMessageGet /v2/Services/{ServiceSid}/Channels/{ChannelSid}/Messages
ServicesChannelsMessagesApiUpdateMessagePost /v2/Services/{ServiceSid}/Channels/{ChannelSid}/Messages/{Sid}
ServicesChannelsWebhooksApiCreateChannelWebhookPost /v2/Services/{ServiceSid}/Channels/{ChannelSid}/Webhooks
ServicesChannelsWebhooksApiDeleteChannelWebhookDelete /v2/Services/{ServiceSid}/Channels/{ChannelSid}/Webhooks/{Sid}
ServicesChannelsWebhooksApiFetchChannelWebhookGet /v2/Services/{ServiceSid}/Channels/{ChannelSid}/Webhooks/{Sid}
ServicesChannelsWebhooksApiListChannelWebhookGet /v2/Services/{ServiceSid}/Channels/{ChannelSid}/Webhooks
ServicesChannelsWebhooksApiUpdateChannelWebhookPost /v2/Services/{ServiceSid}/Channels/{ChannelSid}/Webhooks/{Sid}
ServicesRolesApiCreateRolePost /v2/Services/{ServiceSid}/Roles
ServicesRolesApiDeleteRoleDelete /v2/Services/{ServiceSid}/Roles/{Sid}
ServicesRolesApiFetchRoleGet /v2/Services/{ServiceSid}/Roles/{Sid}
ServicesRolesApiListRoleGet /v2/Services/{ServiceSid}/Roles
ServicesRolesApiUpdateRolePost /v2/Services/{ServiceSid}/Roles/{Sid}
ServicesUsersApiCreateUserPost /v2/Services/{ServiceSid}/Users
ServicesUsersApiDeleteUserDelete /v2/Services/{ServiceSid}/Users/{Sid}
ServicesUsersApiFetchUserGet /v2/Services/{ServiceSid}/Users/{Sid}
ServicesUsersApiListUserGet /v2/Services/{ServiceSid}/Users
ServicesUsersApiUpdateUserPost /v2/Services/{ServiceSid}/Users/{Sid}
ServicesUsersBindingsApiDeleteUserBindingDelete /v2/Services/{ServiceSid}/Users/{UserSid}/Bindings/{Sid}
ServicesUsersBindingsApiFetchUserBindingGet /v2/Services/{ServiceSid}/Users/{UserSid}/Bindings/{Sid}
ServicesUsersBindingsApiListUserBindingGet /v2/Services/{ServiceSid}/Users/{UserSid}/Bindings
ServicesUsersChannelsApiDeleteUserChannelDelete /v2/Services/{ServiceSid}/Users/{UserSid}/Channels/{ChannelSid}
ServicesUsersChannelsApiFetchUserChannelGet /v2/Services/{ServiceSid}/Users/{UserSid}/Channels/{ChannelSid}
ServicesUsersChannelsApiListUserChannelGet /v2/Services/{ServiceSid}/Users/{UserSid}/Channels
ServicesUsersChannelsApiUpdateUserChannelPost /v2/Services/{ServiceSid}/Users/{UserSid}/Channels/{ChannelSid}

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
ChatV2Binding struct for ChatV2Binding.
ChatV2Channel struct for ChatV2Channel.
ChatV2ChannelWebhook struct for ChatV2ChannelWebhook.
ChatV2Credential struct for ChatV2Credential.
ChatV2Invite struct for ChatV2Invite.
ChatV2Member struct for ChatV2Member.
ChatV2Message struct for ChatV2Message.
ChatV2Role struct for ChatV2Role.
ChatV2Service struct for ChatV2Service.
ChatV2User struct for ChatV2User.
ChatV2UserBinding struct for ChatV2UserBinding.
ChatV2UserChannel struct for ChatV2UserChannel.
Optional parameters for the method 'CreateChannel'.
Optional parameters for the method 'CreateChannelWebhook'.
Optional parameters for the method 'CreateCredential'.
Optional parameters for the method 'CreateInvite'.
Optional parameters for the method 'CreateMember'.
Optional parameters for the method 'CreateMessage'.
Optional parameters for the method 'CreateRole'.
Optional parameters for the method 'CreateService'.
Optional parameters for the method 'CreateUser'.
Optional parameters for the method 'DeleteChannel'.
Optional parameters for the method 'DeleteMember'.
Optional parameters for the method 'DeleteMessage'.
Optional parameters for the method 'DeleteUserChannel'.
Optional parameters for the method 'ListBinding'.
ListBindingResponse struct for ListBindingResponse.
ListBindingResponseMeta struct for ListBindingResponseMeta.
Optional parameters for the method 'ListChannel'.
ListChannelResponse struct for ListChannelResponse.
Optional parameters for the method 'ListChannelWebhook'.
ListChannelWebhookResponse struct for ListChannelWebhookResponse.
Optional parameters for the method 'ListCredential'.
ListCredentialResponse struct for ListCredentialResponse.
Optional parameters for the method 'ListInvite'.
ListInviteResponse struct for ListInviteResponse.
Optional parameters for the method 'ListMember'.
ListMemberResponse struct for ListMemberResponse.
Optional parameters for the method 'ListMessage'.
ListMessageResponse struct for ListMessageResponse.
Optional parameters for the method 'ListRole'.
ListRoleResponse struct for ListRoleResponse.
Optional parameters for the method 'ListService'.
ListServiceResponse struct for ListServiceResponse.
Optional parameters for the method 'ListUserBinding'.
ListUserBindingResponse struct for ListUserBindingResponse.
Optional parameters for the method 'ListUserChannel'.
ListUserChannelResponse struct for ListUserChannelResponse.
Optional parameters for the method 'ListUser'.
ListUserResponse struct for ListUserResponse.
Optional parameters for the method 'UpdateChannel'.
Optional parameters for the method 'UpdateChannelWebhook'.
Optional parameters for the method 'UpdateCredential'.
Optional parameters for the method 'UpdateMember'.
Optional parameters for the method 'UpdateMessage'.
Optional parameters for the method 'UpdateRole'.
Optional parameters for the method 'UpdateService'.
Optional parameters for the method 'UpdateUserChannel'.
Optional parameters for the method 'UpdateUser'.