简体   繁体   English

ActiveCollab API过滤器导致API请求

[英]ActiveCollab API filter results in API request

In its simplest form, I would like to return specific results, by means of a filter, but I can't see anything mentioned in the API documentation! 以最简单的形式,我想通过过滤器返回特定的结果,但是我看不到API文档中提到的任何内容!

I'm using the Feather SDK ( https://github.com/activecollab/activecollab-feather-sdk ) with this API https://developers.activecollab.com/api-documentation/ 我正在将此API https://developers.activecollab.com/api-documentation/使用Feather SDK( https://github.com/activecollab/activecollab-feather-sdk

One working example of the call returning everything is... 通话返回所有内容的一个可行示例是...

$tasks = $client->get('projects/123/tasks/')->getJson();

One would expect something like this to work? 人们会期望像这样的东西行得通吗?

$tasks = $client->get('projects/123/tasks/', [
   'task_list_id' => 12345
])->getJson();

Or maybe... 或者可能...

$tasks = $client->get('projects/123/tasks/?task_list_id=12345')->getJson();

However neither seem to be working. 但是似乎都没有用。

Am I missing something blatantly obvious here?! 我在这里错过明显地明显的东西吗?

Many thanks in advance. 提前谢谢了。

Filtered tasks API is currently not available. 筛选的任务API当前不可用。 By calling /projects/:project_id/tasks you get all open tasks in the project, and you can implement any required filtering on client's end, when you receive the response. 通过调用/projects/:project_id/tasks您可以在项目中获得所有未完成的任务,并且在收到响应时可以在客户端执行任何必需的筛选。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM