gitlab api: 如何检索当前用户的 userId
gitlab api: how to retrieve userId of current user
我想要一个可单独调用的 url 来查看特定用户在 gitlab 中的问题。
如何检索当前登录的用户?
https://server/folder/project/issues?scope=all&state=opened&assignee_id=<how to get this id>
或
https://server/folder/project/issues?scope=all&state=opened&assignee_username=<how to get this name>
编辑:
已解决scope=assigned_to_me
https://server/folder/project/issues?scope=assigned_to_me&state=opened
List current user: 获取当前认证的用户。
GET /user
示例:https://gitlab.example.org/api/v4/user
.
我想要一个可单独调用的 url 来查看特定用户在 gitlab 中的问题。
如何检索当前登录的用户?
https://server/folder/project/issues?scope=all&state=opened&assignee_id=<how to get this id>
或
https://server/folder/project/issues?scope=all&state=opened&assignee_username=<how to get this name>
已解决scope=assigned_to_me
https://server/folder/project/issues?scope=assigned_to_me&state=opened
List current user: 获取当前认证的用户。
GET /user
示例:https://gitlab.example.org/api/v4/user
.