# 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
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} | |
ServicesChannelsApi | CreateChannel | Post /v1/Services/{ServiceSid}/Channels | |
ServicesChannelsApi | DeleteChannel | Delete /v1/Services/{ServiceSid}/Channels/{Sid} | |
ServicesChannelsApi | FetchChannel | Get /v1/Services/{ServiceSid}/Channels/{Sid} | |
ServicesChannelsApi | ListChannel | Get /v1/Services/{ServiceSid}/Channels | |
ServicesChannelsApi | UpdateChannel | Post /v1/Services/{ServiceSid}/Channels/{Sid} | |
ServicesChannelsInvitesApi | CreateInvite | Post /v1/Services/{ServiceSid}/Channels/{ChannelSid}/Invites | |
ServicesChannelsInvitesApi | DeleteInvite | Delete /v1/Services/{ServiceSid}/Channels/{ChannelSid}/Invites/{Sid} | |
ServicesChannelsInvitesApi | FetchInvite | Get /v1/Services/{ServiceSid}/Channels/{ChannelSid}/Invites/{Sid} | |
ServicesChannelsInvitesApi | ListInvite | Get /v1/Services/{ServiceSid}/Channels/{ChannelSid}/Invites | |
ServicesChannelsMembersApi | CreateMember | Post /v1/Services/{ServiceSid}/Channels/{ChannelSid}/Members | |
ServicesChannelsMembersApi | DeleteMember | Delete /v1/Services/{ServiceSid}/Channels/{ChannelSid}/Members/{Sid} | |
ServicesChannelsMembersApi | FetchMember | Get /v1/Services/{ServiceSid}/Channels/{ChannelSid}/Members/{Sid} | |
ServicesChannelsMembersApi | ListMember | Get /v1/Services/{ServiceSid}/Channels/{ChannelSid}/Members | |
ServicesChannelsMembersApi | UpdateMember | Post /v1/Services/{ServiceSid}/Channels/{ChannelSid}/Members/{Sid} | |
ServicesChannelsMessagesApi | CreateMessage | Post /v1/Services/{ServiceSid}/Channels/{ChannelSid}/Messages | |
ServicesChannelsMessagesApi | DeleteMessage | Delete /v1/Services/{ServiceSid}/Channels/{ChannelSid}/Messages/{Sid} | |
ServicesChannelsMessagesApi | FetchMessage | Get /v1/Services/{ServiceSid}/Channels/{ChannelSid}/Messages/{Sid} | |
ServicesChannelsMessagesApi | ListMessage | Get /v1/Services/{ServiceSid}/Channels/{ChannelSid}/Messages | |
ServicesChannelsMessagesApi | UpdateMessage | Post /v1/Services/{ServiceSid}/Channels/{ChannelSid}/Messages/{Sid} | |
ServicesRolesApi | CreateRole | Post /v1/Services/{ServiceSid}/Roles | |
ServicesRolesApi | DeleteRole | Delete /v1/Services/{ServiceSid}/Roles/{Sid} | |
ServicesRolesApi | FetchRole | Get /v1/Services/{ServiceSid}/Roles/{Sid} | |
ServicesRolesApi | ListRole | Get /v1/Services/{ServiceSid}/Roles | |
ServicesRolesApi | UpdateRole | Post /v1/Services/{ServiceSid}/Roles/{Sid} | |
ServicesUsersApi | CreateUser | Post /v1/Services/{ServiceSid}/Users | |
ServicesUsersApi | DeleteUser | Delete /v1/Services/{ServiceSid}/Users/{Sid} | |
ServicesUsersApi | FetchUser | Get /v1/Services/{ServiceSid}/Users/{Sid} | |
ServicesUsersApi | ListUser | Get /v1/Services/{ServiceSid}/Users | |
ServicesUsersApi | UpdateUser | Post /v1/Services/{ServiceSid}/Users/{Sid} | |
ServicesUsersChannelsApi | ListUserChannel | Get /v1/Services/{ServiceSid}/Users/{UserSid}/Channels |
Documentation For Models
- IpMessagingV1Service
- ListUserResponse
- ListChannelResponse
- IpMessagingV1Credential
- ListInviteResponse
- IpMessagingV1Message
- ListMessageResponse
- IpMessagingV1UserChannel
- IpMessagingV1User
- ListServiceResponse
- ListMemberResponse
- IpMessagingV1Invite
- IpMessagingV1Member
- IpMessagingV1Channel
- IpMessagingV1Role
- ListUserChannelResponse
- ListCredentialResponse
- ListChannelResponseMeta
- ListRoleResponse
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'.