Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

针对小白用户,有没有一个入门的完整例子呢? #1

Open
fanhualei opened this issue Jan 10, 2018 · 6 comments
Open

Comments

@fanhualei
Copy link

针对小白用户,有没有一个入门的完整例子呢?

有没有一个官方的文档地址,我去学习一下。

@longger
Copy link
Contributor

longger commented Jan 10, 2018

是需要Java-SDK的例子还是开发bot的例子呢?

@fanhualei
Copy link
Author

我想要一个,展示调用samples\tax\的完整例子。

我已经完成下面的工作了:
1:用idea clone了一份bot-sdk-java,并建立了一个web工程,编译通过了。
2:我在TaxAction中的doGet方法输出一个hello world,在浏览器中输入 http://localhost:8080/tax 也能看到。
3:我在html做了一个form,调用TaxAction的doPost的方法,不知道怎么调用,才能把samples\tax\的演示结果弄出来。

@longger
Copy link
Contributor

longger commented Jan 10, 2018

你可以pull一下代码,我更新了一下readme,在最后面,有一个Request,在启动sample中的taxbot服务后,可以通过postman发送Request,Request的body内容为resource/request/inquiry_request,便可以看到Bot的返回。

@longger
Copy link
Contributor

longger commented Jan 10, 2018

@fanhualei
Copy link
Author

用postman,可以得到结果了。

正在想,这么能做一个完整的例子,把这些功能给串起来。

用postman只能做测试。 我想是不是可以用okhttp模拟一个客户端

@longger
Copy link
Contributor

longger commented Jan 11, 2018

可以在DBP平台( https://dueros.baidu.com/dbp/main/console )上创建Bot,DBP平台可以把这些功能串起来

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants