Documentation
¶
Index ¶
- Variables
- func Execute(ctx context.Context, method, uri string, body interface{}) ([]byte, error)
- func Get(ctx context.Context, uri string) ([]byte, error)
- func ParseToken(token string, sessionID string) (string, error)
- func SendMessage(ctx context.Context, token string, payload Payload) error
- func SignToken(userID, sessionID, conversationID string) (string, error)
- type Payload
Constants ¶
This section is empty.
Variables ¶
View Source
var Endpoint = "https://echo.fox.one"
Functions ¶
func ParseToken ¶
ParseToken parse the jwt token
func SendMessage ¶ added in v1.1.1
SendMessage send a message
Types ¶
type Payload ¶ added in v1.1.0
type Payload struct { MessageID string `json:"message_id,omitempty"` RecipientID string `json:"recipient_id,omitempty"` Category string `json:"category,omitempty"` Data string `json:"data,omitempty"` }
Payload represent message content leave RecipientID empty to broadcast
Click to show internal directories.
Click to hide internal directories.