POST api/v1/{appId}/accounts/profile
Информация по авторизированому пользователю
URI ïàðàìåòðû
Name | Description | Type | Additional information |
---|---|---|---|
appId | string |
Required |
Body Parameters
None.
Response Information
Resource Description
Информация по авторизированому пользователю
UserAccountModelName | Description | Type | Additional information |
---|---|---|---|
Email пользователя |
string |
None. |
|
Subscriptions |
Подписки пользователя |
Collection of UserSubscriptionModel |
None. |
UserName |
Логин пользователя |
string |
Required |
Response Formats
application/json, text/json
Ïðèìåð:
{ "Email": "sample string 1", "Subscriptions": [ { "StartDate": "2025-03-14T04:03:44.6006444+00:00", "EndDate": "2025-03-14T04:03:44.6006444+00:00", "AllowToUse": true, "TotalUsage": 3, "MonthlyUsage": 4, "YearlyUsage": 5, "Balance": 6.1, "DailyUsage": 7, "UserSubscriptionId": "45b7536f-5241-4869-ab47-b08e95edc307", "IsDiactivated": true, "Type": 10, "Name": "sample string 11", "RequestPrice": 12.1, "DailyLimit": 1, "MonthLimit": 1, "IsActive": true, "Id": "ce1fd263-381d-4e7a-8906-612f92c97684", "YearRequestLimit": 1, "DurationInDays": 1, "Price": 15.1, "RequestsLimit": 1 }, { "StartDate": "2025-03-14T04:03:44.6006444+00:00", "EndDate": "2025-03-14T04:03:44.6006444+00:00", "AllowToUse": true, "TotalUsage": 3, "MonthlyUsage": 4, "YearlyUsage": 5, "Balance": 6.1, "DailyUsage": 7, "UserSubscriptionId": "45b7536f-5241-4869-ab47-b08e95edc307", "IsDiactivated": true, "Type": 10, "Name": "sample string 11", "RequestPrice": 12.1, "DailyLimit": 1, "MonthLimit": 1, "IsActive": true, "Id": "ce1fd263-381d-4e7a-8906-612f92c97684", "YearRequestLimit": 1, "DurationInDays": 1, "Price": 15.1, "RequestsLimit": 1 } ], "UserName": "sample string 2" }
application/xml, text/xml
Ïðèìåð:
<UserAccount xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="Pactum"> <UserName>sample string 2</UserName> <Email>sample string 1</Email> <Subscriptions> <UserSubscription> <DailyLimit>1</DailyLimit> <DurationInDays>1</DurationInDays> <Id>ce1fd263-381d-4e7a-8906-612f92c97684</Id> <IsActive>true</IsActive> <MonthLimit>1</MonthLimit> <Name>sample string 11</Name> <Price>15.1</Price> <RequestPrice>12.1</RequestPrice> <RequestsLimit>1</RequestsLimit> <Type>0</Type> <YearRequestLimit>1</YearRequestLimit> <AllowToUse>true</AllowToUse> <Balance>6.1</Balance> <DailyUsage>7</DailyUsage> <EndDate>2025-03-14T04:03:44.6006444+00:00</EndDate> <IsDiactivated>true</IsDiactivated> <MonthlyUsage>4</MonthlyUsage> <StartDate>2025-03-14T04:03:44.6006444+00:00</StartDate> <TotalUsage>3</TotalUsage> <Type>10</Type> <UserSubscriptionId>45b7536f-5241-4869-ab47-b08e95edc307</UserSubscriptionId> <YearlyUsage>5</YearlyUsage> </UserSubscription> <UserSubscription> <DailyLimit>1</DailyLimit> <DurationInDays>1</DurationInDays> <Id>ce1fd263-381d-4e7a-8906-612f92c97684</Id> <IsActive>true</IsActive> <MonthLimit>1</MonthLimit> <Name>sample string 11</Name> <Price>15.1</Price> <RequestPrice>12.1</RequestPrice> <RequestsLimit>1</RequestsLimit> <Type>0</Type> <YearRequestLimit>1</YearRequestLimit> <AllowToUse>true</AllowToUse> <Balance>6.1</Balance> <DailyUsage>7</DailyUsage> <EndDate>2025-03-14T04:03:44.6006444+00:00</EndDate> <IsDiactivated>true</IsDiactivated> <MonthlyUsage>4</MonthlyUsage> <StartDate>2025-03-14T04:03:44.6006444+00:00</StartDate> <TotalUsage>3</TotalUsage> <Type>10</Type> <UserSubscriptionId>45b7536f-5241-4869-ab47-b08e95edc307</UserSubscriptionId> <YearlyUsage>5</YearlyUsage> </UserSubscription> </Subscriptions> </UserAccount>