gdcc / pyDataverse

Python module for Dataverse Software (dataverse.org).
http://pydataverse.readthedocs.io/
MIT License
63 stars 43 forks source link

API endpoint to get user details #59

Closed ecowan closed 3 years ago

skasberger commented 3 years ago

@ecowan can you share some information about the API endpoint please. Can not find documentation and usage about it,

Two specific question I have: -> What is the full url the requests is made to? -> What is expected to be the response?

ecowan commented 3 years ago

@ecowan can you share some information about the API endpoint please. Can not find documentation and usage about it,

Sure @skasberger - it is mentioned here in the documention: https://guides.dataverse.org/en/latest/api/native-api.html#get-user-information-in-json-format

Two specific question I have: -> What is the full url the requests is made to?

$SERVER_URL/api/users/:me

-> What is expected to be the response?

{'status': 'OK', 'data': {'id': , 'identifier': '', 'displayName': '', 'firstName': '', 'lastName': '', 'email': '', 'superuser': False, 'affiliation': '', 'persistentUserId': '', 'emailLastConfirmed': ', 'createdTime':, 'lastLoginTime': , 'authenticationProviderId': 'shib'}}

skasberger commented 3 years ago

Thanks for the commit. Updated the code a bit, and merged to develop. So it will be part of the release in the next days.