python - Search.messages 帮助 Python SDK
问题描述
我正在尝试使用 Slack Python SDK 来搜索消息。我的电话看起来像这样:
result = CLIENT.api_call(
api_method="search.messages",
json={"query": search_phrase,
"count": limit,
"page": current_page,
"highlights": highlights
}
)
但我的结果是:
The server responded with: {'ok': False, 'error': 'invalid_arguments', 'response_metadata': {'messages': ['[ERROR] missing required field: query']}}
如您所见,该调用确实包含“查询”参数。
任何帮助将不胜感激!
谢谢,
担
解决方案
推荐阅读
- python - 分析 GPX 数据时出现错误“'NoneType' 对象没有属性 'offset'”
- amazon-web-services - AWS EC2 Ubuntu 19. 设置多个 tinyproxy 服务器
- javascript - 用于清除多个选项卡中的复选框的 Google 表格脚本
- javascript - 使用 v8 在 c++ 中设置一个已经创建的全局 js 变量?
- java - Spring Boot将请求参数字段的日期格式更改为DTO
- bash - 用于删除以前备份的 bash 脚本
- css - 是否可以在悬停时禁用 Material ui 元素(选择)?
- java - 带 Null 的 List 的加权顺序
- c# - 对于控制 Visual Studio 中的列表框自动滚动的类,我应该做一个额外的步骤吗?
- azure-cosmosdb - Azure CosmosDB - 类字典对象集合的分区策略