Documentation ¶
Overview ¶
Package interaction 用于处理平台和机器人开发者之间的互动请求(如内联搜索等)。
Index ¶
Constants ¶
View Source
const ( // HeaderSig 请求签名 HeaderSig = "X-Signature-Ed25519" // HeaderTimestamp 跟请求签名对应的时间戳,用于验证签名 HeaderTimestamp = "X-Signature-Timestamp" )
Variables ¶
This section is empty.
Functions ¶
func GenSignature ¶
GenSignature 生成签名,sdk 中的改方法,主要用于与验证签名方法配合进行验证
func SimulateSearch ¶
func SimulateSearch(config *SearchConfig, keyword string) (*dto.SearchRsp, error)
SimulateSearch 模拟内联搜索请求 开发者可以使用本方法请求自己的服务器进行平台内联搜索的模拟,避免在平台上触发搜索请求。提升联调效率。
Types ¶
type SearchConfig ¶
SearchConfig 搜索请求配置
Click to show internal directories.
Click to hide internal directories.