Closed felsgaertner closed 5 years ago
If you call /user without any parameter, you get the details of the user which the token belongs to:
curl --header "PRIVATE-TOKEN: <token>" "https://gitlab.com/api/v4/user"
This should be able with GitLab-API-v4, which is not possible yet. The current version v4-0.17 complains about missing parameters.
This is already implemented as the current_user() method, documented at:
current_user()
https://metacpan.org/pod/GitLab::API::v4#Users
Ok, thanks. Maybe I was stuck to tight to the upstream API docs. Didn't find that.
If you call /user without any parameter, you get the details of the user which the token belongs to:
This should be able with GitLab-API-v4, which is not possible yet. The current version v4-0.17 complains about missing parameters.