freshchat_client

package module
v0.0.0-...-9245989 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 16, 2020 License: MIT Imports: 7 Imported by: 0

README

Freshchat

Freshchat API client library using Go. https://developers.freshchat.com/api/#whatsapp

Documentation

Index

Constants

View Source
const (
	Success             responseCode = 200
	Accepted            responseCode = 202
	BadRequest          responseCode = 400
	Unauthenticated     responseCode = 401
	Forbidden           responseCode = 403
	NotFound            responseCode = 404
	TooManyRequests     responseCode = 429
	InternalServerError responseCode = 500
	ServiceUnavailable  responseCode = 503
)

Variables

This section is empty.

Functions

This section is empty.

Types

type WhatsappRequest

type WhatsappRequest struct {
	FromPhoneNumber string
	ToPhoneNumber   string
	TemplateName    string
	HeaderParams    []string
	BodyParams      []string
}

type WhatsappResult

type WhatsappResult struct {
	IsSuccess      bool
	HttpStatusCode int
	Message        string
	RawData        string
}

func SendWhatsappMessage

func SendWhatsappMessage(waRequest WhatsappRequest) (WhatsappResult, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL