Dance Central 2 Data Api - Version: 1.0.25 (Dc2 Api Beta), Configuration: dc2api-integration

Api Services and Methods:

The following sample code shows how to use the Dc2 Data Api. All requests use json as the data format.

MakeAjaxCall: Ajax request via jQuery

6145157589 This example creates the json for a BattleDto and POSTs that json to the CreateBattle endpoint.

(815) 508-3699 This example gets the list of available battles for a sample user represented by an instance of Dc2IdentityDto.

Update Battle This example shows updating a battle. For example, the challengee's phone would call this to respond to an challener's battle request.

accumulative This example shows the call made to accept a battle. The challengee is represented by an instance of Dc2IdentityDto.

318-863-5963 This example shows the call made to reject a battle. The challengee is represented by an instance of Dc2IdentityDto.

Get Videos This example gets the list of available videos (processed videos) for the user represented by an instance of Dc2IdentityDto.

Ajax Results:

DataTransferObjects:

ResponseDto<BattleDto>
ResponseDto<BattleDto> as JSON
{
    "RequestMethod" : "CreateBattle",    
    "ResponseMessage" : "Success",    
    "DataType" : "BattleDto",    
    "Data" : 
    {
        "Id" : "9c47f1f4-c4bd-3bc8-2181-08ce3ca66af8",        
        "Type" : "remote",        
        "Status" : "new",        
        "Challenger" : 
        {
            "DeviceId" : "15b897581fb04b6484e3767cc52dc1dee900493a",            
            "Name" : "Challengee McChallenge",            
            "FbId" : "1234567890",            
            "PushNotificationToken" : "1234_dont_know_what_these_really_look_like_34567890"
        },        
        "ChallengerVideoId" : "fd12c6d6-9aa0-7fc7-4891-08ce3ca66af8",        
        "Challengee" : 
        {
            "DeviceId" : "15b897581fb04b6484e3767cc52dc1dee900493a",            
            "Name" : "Challengee McChallenge",            
            "FbId" : "1234567890",            
            "PushNotificationToken" : "1234_dont_know_what_these_really_look_like_34567890"
        },        
        "ChallengeeVideoId" : "246d1129-1a8c-28c8-4891-08ce3ca66af8"
    }
}
Comments:
Dc2IdentityDto
Dc2IdentityDto as JSON
{
    "DeviceId" : "15b897581fb04b6484e3767cc52dc1dee900493a",    
    "Name" : "Challengee McChallenge",    
    "FbId" : "1234567890",    
    "PushNotificationToken" : "1234_dont_know_what_these_really_look_like_34567890"
}
Comments:
BattleDto
BattleDto as JSON
{
    "Id" : "9c47f1f4-c4bd-3bc8-2181-08ce3ca66af8",    
    "Type" : "remote",    
    "Status" : "new",    
    "Challenger" : 
    {
        "DeviceId" : "f3750b0a37ea4b32896619c32d9aeda31a48627b",        
        "Name" : "Challerger LeChallenge",        
        "FbId" : "0987654321",        
        "PushNotificationToken" : null
    },    
    "ChallengerVideoId" : "fd12c6d6-9aa0-7fc7-4891-08ce3ca66af8",    
    "Challengee" : 
    {
        "DeviceId" : "15b897581fb04b6484e3767cc52dc1dee900493a",        
        "Name" : "Challengee McChallenge",        
        "FbId" : "1234567890",        
        "PushNotificationToken" : null
    },    
    "ChallengeeVideoId" : "246d1129-1a8c-28c8-4891-08ce3ca66af8"
}
Comments:
VideoDto
VideoDto as JSON
{
    "Id" : "9c47f1f4-c4bd-3bc8-2181-08ce3ca66af8",    
    "Type" : "remote",    
    "Category" : null,    
    "TrackId" : null,    
    "Status" : "new"
}
Comments:

Other Definitions