GET api/Account/GetUserInfoAndSettings
Method to get the account details and page settings for the current user
Request Information
URI Parameters
None.
Body Parameters
None.
Response Information
Resource Description
ApiResult[UserInfoAndUserSettingsViewModel] with the current user information and settings
ApiResultOfUserInfoAndUserSettingsViewModelName | Description | Type | Additional information |
---|---|---|---|
Errors | ErrorModel |
None. |
|
Result | UserInfoAndUserSettingsViewModel |
None. |
|
IsSuccess | boolean |
None. |
|
StatusCode | HttpStatusCode |
None. |
Response Formats
application/json, text/json
Sample:
{ "Errors": { "ErrorsNumber": 1, "Messages": [ "sample string 1", "sample string 2" ], "MessagesString": "sample string 2" }, "Result": { "UserInfo": { "ID": 1, "Email": "sample string 2", "Name": "sample string 3", "Surname": "sample string 4", "FullName": "sample string 3 sample string 4" }, "UserSettings": { "FontSize": "sample string 1", "FontColor": "sample string 2", "BackgroundColor": "sample string 3", "PageView": 64 } }, "IsSuccess": false, "StatusCode": 100 }
application/xml, text/xml
Sample:
<ApiResultOfUserInfoAndUserSettingsViewModelJ3Js3fRG xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CSAeReader.Common.API"> <Errors> <ErrorsNumber>1</ErrorsNumber> <Messages xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d3p1:string>sample string 1</d3p1:string> <d3p1:string>sample string 2</d3p1:string> </Messages> <MessagesString>sample string 2</MessagesString> </Errors> <Result xmlns:d2p1="http://schemas.datacontract.org/2004/07/CSAeReader.API.eReaderAPI.Models"> <d2p1:UserInfo> <d2p1:Email>sample string 2</d2p1:Email> <d2p1:ID>1</d2p1:ID> <d2p1:Name>sample string 3</d2p1:Name> <d2p1:Surname>sample string 4</d2p1:Surname> </d2p1:UserInfo> <d2p1:UserSettings> <d2p1:BackgroundColor>sample string 3</d2p1:BackgroundColor> <d2p1:FontColor>sample string 2</d2p1:FontColor> <d2p1:FontSize>sample string 1</d2p1:FontSize> <d2p1:PageView>64</d2p1:PageView> </d2p1:UserSettings> </Result> <StatusCode>Continue</StatusCode> </ApiResultOfUserInfoAndUserSettingsViewModelJ3Js3fRG>