0

我目前正在尝试查找登录用户拥有的 id,但文档没有显示任何线索表明如何实现这一点。

我需要知道登录的用户 id 来判断用户是否正在处理一个案例,以便他可以相应地启动/停止。

由于 API 仅返回当前正在处理每个案例的用户的 ID,因此如果用户在不知道他的 ID 的情况下正在处理该案例,我没有其他方法可以显示该用户。

我希望在成功登录后提供此 ID,但事实并非如此,我无法找到发现该 ID 的方法。

有没有这样的方法?如果有,那么我如何通过 API 获取它?

4

1 回答 1

0

So I finally found a way to discover the logged in user ID, the command is viewPerson without passing a user id:

Takes only ixPerson OR sEmail. If no parameters are supplied, the user currently logged in is returned.

http://help.manuscript.com/the-fogbugz-api/users#View_a_User_cmdviewPerson

As to why this eluded me was due to the wrong description of the command return, which states the following:

The case number of the edited case.

Now I am able to cross-check the id with any case I need to find out whether or not the logged in user is working on a certain case.

于 2019-04-05T15:43:31.820 回答