GET api/actions/GetUserToken?phoneNumber={phoneNumber}
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
phoneNumber | string |
Required |
Body Parameters
None.
Response Information
Resource Description
UsersDeviceTokensName | Description | Type | Additional information |
---|---|---|---|
token | string |
None. |
|
UserId | string |
None. |
|
PhoneNumber | string |
None. |
|
id | integer |
None. |
|
CreationDate | date |
None. |
|
LastModificationDate | date |
None. |
|
Creator | ApplicationUser |
None. |
|
CreatorId | string |
None. |
|
Modifier | ApplicationUser |
None. |
|
ModifierId | string |
None. |
|
AttachmentId | integer |
None. |
|
CreatorName | string |
None. |
Response Formats
application/json, text/json
Sample:
{ "token": "sample string 1", "UserId": "sample string 2", "PhoneNumber": "sample string 3", "id": 4, "CreationDate": "2024-11-21T01:50:35.3133138-08:00", "LastModificationDate": "2024-11-21T01:50:35.3133138-08:00", "Creator": { "CreationDate": "2024-11-21T01:50:35.3133138-08:00", "LastModificationDate": "2024-11-21T01:50:35.3133138-08:00", "Name": "sample string 3", "Type": "sample string 4", "Status": "sample string 5", "PictureId": "sample string 6", "password": "sample string 7", "Email": "sample string 8", "EmailConfirmed": true, "PasswordHash": "sample string 10", "SecurityStamp": "sample string 11", "PhoneNumber": "sample string 12", "PhoneNumberConfirmed": true, "TwoFactorEnabled": true, "LockoutEndDateUtc": "2024-11-21T01:50:35.3133138-08:00", "LockoutEnabled": true, "AccessFailedCount": 16, "Roles": [], "Claims": [], "Logins": [], "Id": "sample string 17", "UserName": "sample string 18" }, "CreatorId": "sample string 7", "Modifier": { "CreationDate": "2024-11-21T01:50:35.3133138-08:00", "LastModificationDate": "2024-11-21T01:50:35.3133138-08:00", "Name": "sample string 3", "Type": "sample string 4", "Status": "sample string 5", "PictureId": "sample string 6", "password": "sample string 7", "Email": "sample string 8", "EmailConfirmed": true, "PasswordHash": "sample string 10", "SecurityStamp": "sample string 11", "PhoneNumber": "sample string 12", "PhoneNumberConfirmed": true, "TwoFactorEnabled": true, "LockoutEndDateUtc": "2024-11-21T01:50:35.3133138-08:00", "LockoutEnabled": true, "AccessFailedCount": 16, "Roles": [], "Claims": [], "Logins": [], "Id": "sample string 17", "UserName": "sample string 18" }, "ModifierId": "sample string 8", "AttachmentId": 9, "CreatorName": "sample string 10" }
application/xml, text/xml
Sample:
<UsersDeviceTokens xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Ahlam.Models"> <AttachmentId xmlns="http://schemas.datacontract.org/2004/07/Ahlam.Extras">9</AttachmentId> <CreationDate xmlns="http://schemas.datacontract.org/2004/07/Ahlam.Extras">2024-11-21T01:50:35.3133138-08:00</CreationDate> <Creator xmlns:d2p1="http://schemas.datacontract.org/2004/07/Ahlam.Models" xmlns="http://schemas.datacontract.org/2004/07/Ahlam.Extras"> <AccessFailedCount xmlns="http://schemas.datacontract.org/2004/07/Microsoft.AspNet.Identity.EntityFramework">16</AccessFailedCount> <Email xmlns="http://schemas.datacontract.org/2004/07/Microsoft.AspNet.Identity.EntityFramework">sample string 8</Email> <EmailConfirmed xmlns="http://schemas.datacontract.org/2004/07/Microsoft.AspNet.Identity.EntityFramework">true</EmailConfirmed> <Id xmlns="http://schemas.datacontract.org/2004/07/Microsoft.AspNet.Identity.EntityFramework">sample string 17</Id> <LockoutEnabled xmlns="http://schemas.datacontract.org/2004/07/Microsoft.AspNet.Identity.EntityFramework">true</LockoutEnabled> <LockoutEndDateUtc xmlns="http://schemas.datacontract.org/2004/07/Microsoft.AspNet.Identity.EntityFramework">2024-11-21T01:50:35.3133138-08:00</LockoutEndDateUtc> <PasswordHash xmlns="http://schemas.datacontract.org/2004/07/Microsoft.AspNet.Identity.EntityFramework">sample string 10</PasswordHash> <PhoneNumber xmlns="http://schemas.datacontract.org/2004/07/Microsoft.AspNet.Identity.EntityFramework">sample string 12</PhoneNumber> <PhoneNumberConfirmed xmlns="http://schemas.datacontract.org/2004/07/Microsoft.AspNet.Identity.EntityFramework">true</PhoneNumberConfirmed> <SecurityStamp xmlns="http://schemas.datacontract.org/2004/07/Microsoft.AspNet.Identity.EntityFramework">sample string 11</SecurityStamp> <TwoFactorEnabled xmlns="http://schemas.datacontract.org/2004/07/Microsoft.AspNet.Identity.EntityFramework">true</TwoFactorEnabled> <UserName xmlns="http://schemas.datacontract.org/2004/07/Microsoft.AspNet.Identity.EntityFramework">sample string 18</UserName> <d2p1:CreationDate>2024-11-21T01:50:35.3133138-08:00</d2p1:CreationDate> <d2p1:LastModificationDate>2024-11-21T01:50:35.3133138-08:00</d2p1:LastModificationDate> <d2p1:Name>sample string 3</d2p1:Name> <d2p1:PictureId>sample string 6</d2p1:PictureId> <d2p1:Status>sample string 5</d2p1:Status> <d2p1:Type>sample string 4</d2p1:Type> <d2p1:password>sample string 7</d2p1:password> </Creator> <CreatorId xmlns="http://schemas.datacontract.org/2004/07/Ahlam.Extras">sample string 7</CreatorId> <CreatorName xmlns="http://schemas.datacontract.org/2004/07/Ahlam.Extras">sample string 10</CreatorName> <LastModificationDate xmlns="http://schemas.datacontract.org/2004/07/Ahlam.Extras">2024-11-21T01:50:35.3133138-08:00</LastModificationDate> <Modifier xmlns:d2p1="http://schemas.datacontract.org/2004/07/Ahlam.Models" xmlns="http://schemas.datacontract.org/2004/07/Ahlam.Extras"> <AccessFailedCount xmlns="http://schemas.datacontract.org/2004/07/Microsoft.AspNet.Identity.EntityFramework">16</AccessFailedCount> <Email xmlns="http://schemas.datacontract.org/2004/07/Microsoft.AspNet.Identity.EntityFramework">sample string 8</Email> <EmailConfirmed xmlns="http://schemas.datacontract.org/2004/07/Microsoft.AspNet.Identity.EntityFramework">true</EmailConfirmed> <Id xmlns="http://schemas.datacontract.org/2004/07/Microsoft.AspNet.Identity.EntityFramework">sample string 17</Id> <LockoutEnabled xmlns="http://schemas.datacontract.org/2004/07/Microsoft.AspNet.Identity.EntityFramework">true</LockoutEnabled> <LockoutEndDateUtc xmlns="http://schemas.datacontract.org/2004/07/Microsoft.AspNet.Identity.EntityFramework">2024-11-21T01:50:35.3133138-08:00</LockoutEndDateUtc> <PasswordHash xmlns="http://schemas.datacontract.org/2004/07/Microsoft.AspNet.Identity.EntityFramework">sample string 10</PasswordHash> <PhoneNumber xmlns="http://schemas.datacontract.org/2004/07/Microsoft.AspNet.Identity.EntityFramework">sample string 12</PhoneNumber> <PhoneNumberConfirmed xmlns="http://schemas.datacontract.org/2004/07/Microsoft.AspNet.Identity.EntityFramework">true</PhoneNumberConfirmed> <SecurityStamp xmlns="http://schemas.datacontract.org/2004/07/Microsoft.AspNet.Identity.EntityFramework">sample string 11</SecurityStamp> <TwoFactorEnabled xmlns="http://schemas.datacontract.org/2004/07/Microsoft.AspNet.Identity.EntityFramework">true</TwoFactorEnabled> <UserName xmlns="http://schemas.datacontract.org/2004/07/Microsoft.AspNet.Identity.EntityFramework">sample string 18</UserName> <d2p1:CreationDate>2024-11-21T01:50:35.3133138-08:00</d2p1:CreationDate> <d2p1:LastModificationDate>2024-11-21T01:50:35.3133138-08:00</d2p1:LastModificationDate> <d2p1:Name>sample string 3</d2p1:Name> <d2p1:PictureId>sample string 6</d2p1:PictureId> <d2p1:Status>sample string 5</d2p1:Status> <d2p1:Type>sample string 4</d2p1:Type> <d2p1:password>sample string 7</d2p1:password> </Modifier> <ModifierId xmlns="http://schemas.datacontract.org/2004/07/Ahlam.Extras">sample string 8</ModifierId> <id xmlns="http://schemas.datacontract.org/2004/07/Ahlam.Extras">4</id> <PhoneNumber>sample string 3</PhoneNumber> <UserId>sample string 2</UserId> <token>sample string 1</token> </UsersDeviceTokens>