PUT api/Content/v3/GetLeaderBoard
Request Information
URI Parameters
None.
Body Parameters
LeaderBoardRequestName | Description | Type | Additional information |
---|---|---|---|
CustomerId | integer |
None. |
|
UniqueId | globally unique identifier |
None. |
|
UserUniqueId | integer |
None. |
|
ProgramId | integer |
None. |
Request Formats
application/json, text/json
Sample:
{ "CustomerId": 1, "UniqueId": "14da3c92-915e-45fd-9030-7a349350c828", "UserUniqueId": 3, "ProgramId": 4 }
application/xml, text/xml
Sample:
<LeaderBoardRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Tsunami.Model"> <CustomerId>1</CustomerId> <ProgramId>4</ProgramId> <UniqueId>14da3c92-915e-45fd-9030-7a349350c828</UniqueId> <UserUniqueId>3</UserUniqueId> </LeaderBoardRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
LeaderBoardResponseName | Description | Type | Additional information |
---|---|---|---|
List | Collection of APILeaderBoard |
None. |
|
BreweryList | Collection of APILeaderBoardBreweries |
None. |
|
TotalRecords | integer |
None. |
Response Formats
application/json, text/json
Sample:
{ "List": [ { "FirstName": "sample string 1", "LastName": "sample string 2", "ProfilePic": "sample string 3", "Points": 4, "Rank": 5, "Level": 6, "IsLoggedIn": true }, { "FirstName": "sample string 1", "LastName": "sample string 2", "ProfilePic": "sample string 3", "Points": 4, "Rank": 5, "Level": 6, "IsLoggedIn": true } ], "BreweryList": [ { "Title": "sample string 1", "Points": 2, "Rank": 3 }, { "Title": "sample string 1", "Points": 2, "Rank": 3 } ], "TotalRecords": 1 }
application/xml, text/xml
Sample:
<LeaderBoardResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Tsunami.Model"> <BreweryList> <APILeaderBoardBreweries> <Points>2</Points> <Rank>3</Rank> <Title>sample string 1</Title> </APILeaderBoardBreweries> <APILeaderBoardBreweries> <Points>2</Points> <Rank>3</Rank> <Title>sample string 1</Title> </APILeaderBoardBreweries> </BreweryList> <List> <APILeaderBoard> <FirstName>sample string 1</FirstName> <IsLoggedIn>true</IsLoggedIn> <LastName>sample string 2</LastName> <Level>6</Level> <Points>4</Points> <ProfilePic>sample string 3</ProfilePic> <Rank>5</Rank> </APILeaderBoard> <APILeaderBoard> <FirstName>sample string 1</FirstName> <IsLoggedIn>true</IsLoggedIn> <LastName>sample string 2</LastName> <Level>6</Level> <Points>4</Points> <ProfilePic>sample string 3</ProfilePic> <Rank>5</Rank> </APILeaderBoard> </List> <TotalRecords>1</TotalRecords> </LeaderBoardResponse>