如何保留ASP Net Web API先前的请求值
我们正在开发一个API,但我一直限于如何保留先前的请求值。例如,我们将以下消息发送给用户的WhatsApp。
请按选项编号发送答复。
- 投诉
- 计费
- 发票
和用户回复1,因此投诉子菜单将如下显示。
请按选项编号发送答复。
- 新投诉
- 投诉清单
,但是我怎么知道用户已输入投诉菜单选项编号1?以及我将如何通过后续API中的投诉期权编号。 问题是如何保留以前的价值?如果是,我是否必须使用任何数据库侧处理或缓存?
We Are Developing an API but i'm stuck at how to retain previous request value. For example we have send below message to user's whatsapp.
Kindly Send reply by option number.
- Complaint
- Billing
- Invoices
and user reply back by 1 so the complaint sub menu will be display like this.
Kindly Send reply by option number.
- For New Complaint
- For Complaint List
but how would i know that user has entered in complaint menu option number 1? and how i will pass complaint option number in subsequent APIs.
The question is how do i retain previous value? do i have to use any database side handling or caching if yes then how?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论