I'm trying to perform a basic task of getting the logged in users GitLab personal access token using the python-gitlab library. The documentation here is what I am using in the code below - https://python-gitlab.readthedocs.io/en/stable/gl_objects/personal_access_tokens.html
But I get...
token = gl.personal_access_tokens.get("self")
AttributeError: 'PersonalAccessTokenManager' object has no attribute 'get'
Any help would be greatly appreciated! Thanks