Newer Version Available
getUserInfo()
Retrieves personal information for the user associated with the current session.
Syntax
Usage
Use getUserInfo() to obtain personal information about the currently logged-in user. This convenience API call retrieves and aggregates common profile information that your client application can use for display purposes, performing currency calculations, and so on.
The getUserInfo() call applies only to the username under which your client application has logged in. To retrieve additional personal information not found in the getUserInfoResult object, you can call retrieve() on the User object and pass in the userID returned by this call. To retrieve personal information about other users, you could call retrieve() (if you know their user ID) or query() on the User object.
Sample Code—Java
This sample calls getUserInfo() and writes information about the current user to the console.
Sample Code—C#
This sample calls getUserInfo() and writes information about the current user to the console.
Arguments
None.
Response
getUserInfoResult