The Messaging API is a new API that consolidates all messaging channels. It encapsulates a user (developer) from having to use multiple APIs to interact with our various channels such as SMS, MMS, Viber, Facebook Messenger, etc. The API normalises information across all channels to abstracted to, from and content. This API is currently Beta.
This API client was generated by the OpenAPI Generator project. By using the OpenAPI-spec from a remote server, you can easily generate an API client.
- API version: 0.3.0
- Package version: 1.0.0
- Build package: org.openapitools.codegen.languages.GoClientCodegen For more information, please visit https://developer.nexmo.com/
Install the following dependencies:
go get github.com/stretchr/testify/assert
go get golang.org/x/oauth2
go get golang.org/x/net/context
go get github.com/antihax/optional
Put the package under your project folder and add the following in import:
import "./openapi"
All URIs are relative to https://api.nexmo.com/v0.1
Class | Method | HTTP request | Description |
---|---|---|---|
DefaultApi | NewMessage | Post /messages | Send a Message |
- AudioProperty
- Error
- FileProperty
- FromProperty
- ImageProperty
- InboundMessage
- InboundMessageFrom
- InboundMessageMessage
- InboundMessageMessageContent
- InboundMessageTo
- LocationProperty
- MessageProperty
- MessagePropertyContent
- MessagePropertyMessenger
- MessagePropertyViberServiceMsg
- MessagePropertyWhatsapp
- MessageStatus
- MessageStatusError
- MessageStatusUsage
- NewMessage
- Response
- TemplateProperty
- TemplatePropertyParameters
- ToProperty
- VideoProperty
- 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)
- 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)