/chatopera-go-sdk

聊天机器人,Go开发工具包,Chatopera 机器人平台

Primary LanguageGoOtherNOASSERTION


https://bot.chatopera.com/

低代码或无代码方式定制智能对话机器人!

Chatopera 提供聊天机器人开发者平台,Chatopera Go SDK 用于在 Go 应用中集成聊天机器人服务

本教程介绍如何使用 Chatopera 机器人开发者平台的Go SDK与机器人进行集成,阅读本教程需要 10 分钟时间。

安装

go get github.com/chatopera/chatopera-go-sdk

使用文档

快速开始,类接口定义和实例化文档等,参考 文档中心

https://docs.chatopera.com/products/chatbot-platform/integration/index.html

示例程序

假设您已经:

  1. 准备好ClientIdSecret了;

  2. 安装了chatopera-go-sdk

那么,可以用以下代码测试。

import (
	"github.com/chatopera/chatopera-go-sdk"
)
var chatbot = chatopera.Chatbot("YOUR CLIENT ID", "YOUR SECRET")

更多参考代码:

https://github.com/chatopera/chatopera-go-sdk/blob/master/chatopera_test.go

单元测试

单元测试: chatopera_test.go

cd chatopera-go-sdk
export GOPATH=YOUR_PROJECT_GOPATH:$GOPATH
go test -run ''

开源许可协议

Copyright (2018-2020) 北京华夏春松科技有限公司

Apache License Version 2.0

Copyright 2018-2020, 北京华夏春松科技有限公司. All rights reserved. This software and related documentation are provided under a license agreement containing restrictions on use and disclosure and are protected by intellectual property laws. Except as expressly permitted in your license agreement or allowed by law, you may not use, copy, reproduce, translate, broadcast, modify, license, transmit, distribute, exhibit, perform, publish, or display any part, in any form, or by any means. Reverse engineering, disassembly, or decompilation of this software, unless required by law for interoperability, is prohibited.

chatoper banner