sdk

package
v0.0.0-...-3cb2554 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

//project: ccp //file: ccp.go //time: 2019/1/23 18:13:43 //author: ceephoen //contact: ceephoen@163.com //software: GoLand //license: ceephoen@163.com //desc:

//project: ccp //file: configs.go //time: 2019/1/23 18:14:27 //author: ceephoen //contact: ceephoen@163.com //software: GoLand //license: ceephoen@163.com //desc:

Index

Constants

View Source
const (
	//timestamp format, this is a fixed value, the timestamp of the birth of Golang
	TimeFormat = "20060102150405"

	// CCP config
	// ACCOUNT SID
	AccountSid = "***"
	// AUTH TOKEN.
	AccountToken = "***"
	// APPID
	AppId = "***"
	// app.cloopen.com without "http://."
	ServerIp = "app.cloopen.com"
	// port 8883.
	ServerPort = "8883"
	// REST API version
	SoftVersion = "2013-12-26"
	// sms template id
	TemplateId = "***"
)

Variables

This section is empty.

Functions

func SendCode

func SendCode(to, data []string, templateId string) (r map[string]interface{})

Types

type CCP

type CCP struct {
	// CCP struct like CCP class in Python SDK
	IP       string
	Port     string
	Version  string
	AppId    string
	AccSid   string
	AccToken string
}

func (*CCP) Init

func (ccp *CCP) Init(to, data []string, templateId string) (url, body string, headers map[string]string)

Jump to

Keyboard shortcuts

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