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://ip-messaging.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}
ServicesChannelsApiCreateChannelPost /v1/Services/{ServiceSid}/Channels
ServicesChannelsApiDeleteChannelDelete /v1/Services/{ServiceSid}/Channels/{Sid}
ServicesChannelsApiFetchChannelGet /v1/Services/{ServiceSid}/Channels/{Sid}
ServicesChannelsApiListChannelGet /v1/Services/{ServiceSid}/Channels
ServicesChannelsApiUpdateChannelPost /v1/Services/{ServiceSid}/Channels/{Sid}
ServicesChannelsInvitesApiCreateInvitePost /v1/Services/{ServiceSid}/Channels/{ChannelSid}/Invites
ServicesChannelsInvitesApiDeleteInviteDelete /v1/Services/{ServiceSid}/Channels/{ChannelSid}/Invites/{Sid}
ServicesChannelsInvitesApiFetchInviteGet /v1/Services/{ServiceSid}/Channels/{ChannelSid}/Invites/{Sid}
ServicesChannelsInvitesApiListInviteGet /v1/Services/{ServiceSid}/Channels/{ChannelSid}/Invites
ServicesChannelsMembersApiCreateMemberPost /v1/Services/{ServiceSid}/Channels/{ChannelSid}/Members
ServicesChannelsMembersApiDeleteMemberDelete /v1/Services/{ServiceSid}/Channels/{ChannelSid}/Members/{Sid}
ServicesChannelsMembersApiFetchMemberGet /v1/Services/{ServiceSid}/Channels/{ChannelSid}/Members/{Sid}
ServicesChannelsMembersApiListMemberGet /v1/Services/{ServiceSid}/Channels/{ChannelSid}/Members
ServicesChannelsMembersApiUpdateMemberPost /v1/Services/{ServiceSid}/Channels/{ChannelSid}/Members/{Sid}
ServicesChannelsMessagesApiCreateMessagePost /v1/Services/{ServiceSid}/Channels/{ChannelSid}/Messages
ServicesChannelsMessagesApiDeleteMessageDelete /v1/Services/{ServiceSid}/Channels/{ChannelSid}/Messages/{Sid}
ServicesChannelsMessagesApiFetchMessageGet /v1/Services/{ServiceSid}/Channels/{ChannelSid}/Messages/{Sid}
ServicesChannelsMessagesApiListMessageGet /v1/Services/{ServiceSid}/Channels/{ChannelSid}/Messages
ServicesChannelsMessagesApiUpdateMessagePost /v1/Services/{ServiceSid}/Channels/{ChannelSid}/Messages/{Sid}
ServicesRolesApiCreateRolePost /v1/Services/{ServiceSid}/Roles
ServicesRolesApiDeleteRoleDelete /v1/Services/{ServiceSid}/Roles/{Sid}
ServicesRolesApiFetchRoleGet /v1/Services/{ServiceSid}/Roles/{Sid}
ServicesRolesApiListRoleGet /v1/Services/{ServiceSid}/Roles
ServicesRolesApiUpdateRolePost /v1/Services/{ServiceSid}/Roles/{Sid}
ServicesUsersApiCreateUserPost /v1/Services/{ServiceSid}/Users
ServicesUsersApiDeleteUserDelete /v1/Services/{ServiceSid}/Users/{Sid}
ServicesUsersApiFetchUserGet /v1/Services/{ServiceSid}/Users/{Sid}
ServicesUsersApiListUserGet /v1/Services/{ServiceSid}/Users
ServicesUsersApiUpdateUserPost /v1/Services/{ServiceSid}/Users/{Sid}
ServicesUsersChannelsApiListUserChannelGet /v1/Services/{ServiceSid}/Users/{UserSid}/Channels

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 'CreateChannel'.
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'.
IpMessagingV1Channel struct for IpMessagingV1Channel.
IpMessagingV1Credential struct for IpMessagingV1Credential.
IpMessagingV1Invite struct for IpMessagingV1Invite.
IpMessagingV1Member struct for IpMessagingV1Member.
IpMessagingV1Message struct for IpMessagingV1Message.
IpMessagingV1Role struct for IpMessagingV1Role.
IpMessagingV1Service struct for IpMessagingV1Service.
IpMessagingV1User struct for IpMessagingV1User.
IpMessagingV1UserChannel struct for IpMessagingV1UserChannel.
Optional parameters for the method 'ListChannel'.
ListChannelResponse struct for ListChannelResponse.
ListChannelResponseMeta struct for ListChannelResponseMeta.
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 '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 '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 'UpdateUser'.