POST api/Authentication
Request Information
URI Parameters
None.
Body Parameters
AuthenticationDataModel| Name | Description | Type | Additional information |
|---|---|---|---|
| string |
None. |
||
| password | string |
None. |
|
| deviceId | string |
None. |
|
| facebookId | string |
None. |
|
| name | string |
None. |
|
| avatar | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"email": "sample string 1",
"password": "sample string 2",
"deviceId": "sample string 3",
"facebookId": "sample string 4",
"name": "sample string 5",
"avatar": "sample string 6"
}
application/xml, text/xml
Sample:
<AuthenticationDataModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/GamificationWebMVC.Controllers"> <avatar>sample string 6</avatar> <deviceId>sample string 3</deviceId> <email>sample string 1</email> <facebookId>sample string 4</facebookId> <name>sample string 5</name> <password>sample string 2</password> </AuthenticationDataModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
User| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
None. |
|
| Name | string |
None. |
|
| string |
None. |
||
| FacebookId | string |
None. |
|
| FacebookAccessToken | string |
None. |
|
| DeviceId | string |
None. |
|
| Rating | integer |
None. |
|
| Score | integer |
None. |
|
| League | string |
None. |
|
| LeagueRank | integer |
None. |
|
| GlobalRank | integer |
None. |
|
| WinStreak | integer |
None. |
|
| LossStreak | integer |
None. |
|
| Avatar | string |
None. |
|
| PlayerNumber | integer |
None. |
|
| OptOutOfFacebook | boolean |
None. |
|
| OptOutOfLogin | boolean |
None. |
|
| IsComputer | boolean |
None. |
Response Formats
application/json, text/json
Sample:
{
"Id": 1,
"Name": "sample string 2",
"Email": "sample string 3",
"FacebookId": "sample string 4",
"FacebookAccessToken": "sample string 5",
"DeviceId": "sample string 6",
"Rating": 1,
"Score": 1,
"League": "sample string 7",
"LeagueRank": 1,
"GlobalRank": 1,
"WinStreak": 1,
"LossStreak": 1,
"Avatar": "sample string 8",
"PlayerNumber": 9,
"OptOutOfFacebook": true,
"OptOutOfLogin": true,
"IsComputer": true
}
application/xml, text/xml
Sample:
<User xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Gamification"> <Avatar>sample string 8</Avatar> <DeviceId>sample string 6</DeviceId> <Email>sample string 3</Email> <FacebookAccessToken>sample string 5</FacebookAccessToken> <FacebookId>sample string 4</FacebookId> <GlobalRank>1</GlobalRank> <Id>1</Id> <IsComputer>true</IsComputer> <League>sample string 7</League> <LeagueRank>1</LeagueRank> <LossStreak>1</LossStreak> <Name>sample string 2</Name> <OptOutOfFacebook>true</OptOutOfFacebook> <OptOutOfLogin>true</OptOutOfLogin> <PlayerNumber>9</PlayerNumber> <Rating>1</Rating> <Score>1</Score> <WinStreak>1</WinStreak> </User>