Skip to content

huanc/vizoal-1

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 

Repository files navigation

Vizoal API

Global Path: http://api.vizoal.com

新的图片URL:
球员,俱乐部,国家的图都有2套: list 和 detail。  list是小图,用在所有的列表中(包括球员信息上面的国家和俱乐部也用用小图)。 detail的大图,放在像球员界面,俱乐部界面里面,比赛界面的2个队的图标

Player,Club,Country Image:  /vizoal/image/ios/list/{imageName}.png
                             /vizoal/image/ios/detail/{imageName}.png

联赛的图需要用一套就可以
League Image:  /vizoal/image/ios/league/{imageName}.png
请不要用这套图了,因为很多都找不到

Player Image:  /vizoal/image/android/player/2.0/{player_fm_id}.png
Club Image:    /vizoal/image/android/club_logo/2.0/{club_fm_id}.png
Country Image: /vizoal/image/android/country_logo_profile/2.0/{country_fm_id}.png
League Image:  /vizoal/image/android/league/{league_fm_id}.png

##APIs

  1. Get Top players
  2. Get players by club id
  3. Get clubs by league id
  4. Get player profile by player id
  5. Get homepage players
  6. Search
  7. Create an account
  8. Update an account
  9. Login
  10. Post a comment
  11. Get comment list by player id
  12. Get old comment list by player id
  13. Get player statistics
  14. country logo url
  15. Top League List
  16. Get match list by league and round
  17. Get all match list by club id
  18. Ranking - team standing
  19. Ranking - top scorer
  20. Ranking - top assists
  21. Club profile
  22. Video by league
  23. IOS crash log
  24. Match and match live
  25. Match statistics
  26. Match players
  27. Post a match comment
  28. Load match comment by match id
  29. Load old match comment by match id
  30. Videos by match id
  31. Clubs by league id
  32. Setting league list
  33. IOS Notification Registration
  34. IOS Notification Test

##1 : Get popular players

###URL /vizoal/services/playerlist/1

###Method GET

###Header Parameters 1) Content-Type = application/json

###Image URL /vizoal/image/android/player/3.0/{player_fm_id}.png

###JSON Response

{
    "status": {
        "code": "200",
        "message": "success",
        "errors": [],
        "debug": {
            "build": "1.0",
            "serverName": "localhost",
            "duration": 23
        }
    },
    "result": [
        {
            "playerId": 1205,
            "firstName": "Cristiano",
            "lastName": "Ronaldo",
            "nickName": "",
            "fmId": 735216,
            "playerImageName": "735216_1.png",
            "nationality_fmid": null,
            "currentClub": null,
            "currentClubName": "Real Madrid",
            "clubNumber": "7",
            "club_fm_id": null,
            "clubImageName": null,
            "nationOfDisplayName": "Portugal",
            "rating": "8.51",
            "postionDisplay": null
        },
        {
            "playerId": 960,
            "firstName": "Lionel",
            "lastName": "Messi",
            "nickName": "",
            "fmId": 7458500,
            "playerImageName": "7458500_1.png",
            "nationality_fmid": null,
            "currentClub": null,
            "currentClubName": "Barcelona",
            "clubNumber": "10",
            "club_fm_id": null,
            "clubImageName": null,
            "nationOfDisplayName": "Argentina",
            "rating": "8.43",
            "postionDisplay": null
        },
        {
            "playerId": 625,
            "firstName": "Franck",
            "lastName": "Ribéry",
            "nickName": "",
            "fmId": 8426264,
            "playerImageName": "8426264_1.png",
            "nationality_fmid": null,
            "currentClub": null,
            "currentClubName": "FC Bayern",
            "clubNumber": "7",
            "club_fm_id": null,
            "clubImageName": null,
            "nationOfDisplayName": "France",
            "rating": "7.94",
            "postionDisplay": null
        },
        {
            "playerId": 1589,
            "firstName": "Zlatan",
            "lastName": "Ibrahimovic",
            "nickName": "",
            "fmId": 142173,
            "playerImageName": "142173_1.png",
            "nationality_fmid": null,
            "currentClub": null,
            "currentClubName": "Paris SG",
            "clubNumber": "10",
            "club_fm_id": null,
            "clubImageName": null,
            "nationOfDisplayName": "Sweden",
            "rating": "7.95",
            "postionDisplay": null
        },
        {
            "playerId": 128,
            "firstName": "Gareth",
            "lastName": "Bale",
            "nickName": "",
            "fmId": 5132312,
            "playerImageName": "5132312_1.png",
            "nationality_fmid": null,
            "currentClub": null,
            "currentClubName": "Real Madrid",
            "clubNumber": "11",
            "club_fm_id": null,
            "clubImageName": null,
            "nationOfDisplayName": "Wales",
            "rating": "7.67",
            "postionDisplay": null
        }

##2 : Get players by club id

###URL /vizoal/services/playerlistByClub/{clubId}

###Method GET

###Header Parameters 1) Content-Type = application/json

###Image URL Player Image: /vizoal/image/android/player/2.0/{player_fm_id}.png

###JSON Response Sample

{
    "status": {
        "code": "200",
        "message": "success",
        "errors": [],
        "debug": {
            "build": "1.0",
            "serverName": "ip-172-31-15-220",
            "duration": 145
        }
    },
    "result": [
        {
            "playerId": 94,
            "firstName": "Santi",
            "lastName": "Cazorla",
            "fullName": "Santiago Cazorla González",
            "nickName": "",
            "nationOfBirth": 90,
            "nationDisplay": 90,
            "nationOfBirthName": "Spain",
            "cityOfBirth": "Lugo De Llanera",
            "dateOfBirth": "1984-12-13",
            "nationDisplay_fmid": 796,
            "age": 0,
            "weight": "66kg",
            "height": "168",
            "preferFoot": "either",
            "currentClub": 16,
            "currentClubName": "Arsenal",
            "clubNumber": "19",
            "fmId": 7456688,
            "version": 2,
            "playerPositionList": [
                {
                    "playerPositionId": 312,
                    "playerId": 94,
                    "name": "AMC",
                    "efficiency": "100%",
                    "order": null,
                    "version": 2
                },
                {
                    "playerPositionId": 313,
                    "playerId": 94,
                    "name": "AML",
                    "efficiency": "90%",
                    "order": null,
                    "version": 1
                },
                {
                    "playerPositionId": 314,
                    "playerId": 94,
                    "name": "AMR",
                    "efficiency": "90%",
                    "order": null,
                    "version": 1
                },
                {
                    "playerPositionId": 315,
                    "playerId": 94,
                    "name": "ML",
                    "efficiency": "90%",
                    "order": null,
                    "version": 2
                },
                {
                    "playerPositionId": 316,
                    "playerId": 94,
                    "name": "MR",
                    "efficiency": "90%",
                    "order": null,
                    "version": 1
                },
                {
                    "playerPositionId": 317,
                    "playerId": 94,
                    "name": "MC",
                    "efficiency": "90%",
                    "order": null,
                    "version": 1
                }
            ]
        },
        {
            "playerId": 92,
            "firstName": "Francis",
            "lastName": "Coquelin",
            "fullName": "Francis Coquelin",
            "nickName": "",
            "nationOfBirth": 135,
            "nationDisplay": 135,
            "nationOfBirthName": "France",
            "cityOfBirth": "Laval",
            "dateOfBirth": "1991-05-13",
            "nationDisplay_fmid": 769,
            "age": 0,
            "weight": "73",
            "height": "178",
            "preferFoot": "right",
            "currentClub": 16,
            "currentClubName": "Arsenal",
            "clubNumber": "20",
            "fmId": 34012022,
            "version": 2,
            "playerPositionList": [
                {
                    "playerPositionId": 296,
                    "playerId": 92,
                    "name": "DMC",
                    "efficiency": "100%",
                    "order": null,
                    "version": 1
                },
                {
                    "playerPositionId": 297,
                    "playerId": 92,
                    "name": "MC",
                    "efficiency": "90%",
                    "order": null,
                    "version": 1
                },
                {
                    "playerPositionId": 298,
                    "playerId": 92,
                    "name": "DR",
                    "efficiency": "80%",
                    "order": null,
                    "version": 1
                },
                {
                    "playerPositionId": 299,
                    "playerId": 92,
                    "name": "DL",
                    "efficiency": "80%",
                    "order": null,
                    "version": 1
                },
                {
                    "playerPositionId": 300,
                    "playerId": 92,
                    "name": "WBR",
                    "efficiency": "80%",
                    "order": null,
                    "version": 1
                },
                {
                    "playerPositionId": 301,
                    "playerId": 92,
                    "name": "MR",
                    "efficiency": "80%",
                    "order": null,
                    "version": 1
                }
            ]
        }
    ]
}

##3 : Get clubs by league

###URL Right now just hard-coded for top 5 leagues:

    Barclays Premier League(England):  /vizoal/services/clublistByLeague/11  
    Bundesliga(Germany):               /vizoal/services/clublistByLeague/17  
    Ligue 1(France):                   /vizoal/services/clublistByLeague/21  
    Liga BBVA(Spain):                  /vizoal/services/clublistByLeague/19 
    Serie A(Italy):                    /vizoal/services/clublistByLeague/15  

###Method GET

###Header Parameters 1) Content-Type = application/json

###Image URL /vizoal/image/android/club_logo/3.0/{club_fm_id}.png

###JSON Response Sample

{
    "status": {
        "code": "200",
        "message": "success",
        "errors": [],
        "debug": {
            "build": "1.0",
            "serverName": "ip-172-31-15-220",
            "duration": 9
        }
    },
    "result": [
        {
            "clubId": 33,
            "name": "West Bromwich Albion F.C.",
            "leagueId": 11,
            "fmId": 734,
            "sort": 0,
            "version": 1
        },
        {
            "clubId": 34,
            "name": "West Ham United F.C.",
            "leagueId": 11,
            "fmId": 735,
            "sort": 0,
            "version": 1
        }
    ]
}

##4 : Get player profile by player id

###URL /vizoal/services/player/{playerId}

###Method GET

###Header Parameters 1) Content-Type = application/json

###Image URL Player Image: /vizoal/image/android/player/2.0/{player_fm_id}.png Club Image: /vizoal/image/android/club_logo/2.0/{club_fm_id}.png Country Image: /vizoal/image/android/country_logo_profile/2.0/{country_fm_id}.png

###JSON Response Sample

{
    "status": {
        "code": "200",
        "message": "success",
        "errors": [],
        "debug": {
            "build": "1.0",
            "serverName": "ip-172-31-15-220",
            "duration": 54
        }
    },
    "result": {
        "playerId": 21,
        "firstName": "Ryan",
        "lastName": "Giggs",
        "fullName": "Ryan Joseph Giggs",
        "nickName": "",
        "nationOfBirth": 116,
        "nationDisplay": 116,
        "nationOfBirthName": "Wales",
        "cityOfBirth": "Cardiff",
        "dateOfBirth": "1973-11-29",
        "dateOfBirth_andriod": "November 29 1973",
        "age": 39,
        "weight": "69kg",
        "height": "180cm",
        "preferFoot": "left",
        "currentClub": 23,
        "currentClubName": "Manchester United F.C.",
        "fmId": 2018995,
        "nationality_fmid": 801,
        "club_fm_id": 680,
        "leagueId": 11,
        "leagueName": "Barclays Premier League",
        "version": 2,
        "playerPositionList": [
            {
                "playerPositionId": 48,
                "playerId": 21,
                "name": "AMC",
                "efficiency": "100%",
                "order": 1,
                "version": 1
            },
            {
                "playerPositionId": 49,
                "playerId": 21,
                "name": "AML",
                "efficiency": "90%",
                "order": 2,
                "version": 1
            },
            {
                "playerPositionId": 50,
                "playerId": 21,
                "name": "ML",
                "efficiency": "90%",
                "order": 3,
                "version": 1
            },
            {
                "playerPositionId": 51,
                "playerId": 21,
                "name": "MC",
                "efficiency": "90%",
                "order": 4,
                "version": 1
            },
            {
                "playerPositionId": 52,
                "playerId": 21,
                "name": "AMR",
                "efficiency": "70%",
                "order": 5,
                "version": 1
            },
            {
                "playerPositionId": 53,
                "playerId": 21,
                "name": "ST",
                "efficiency": "50%",
                "order": 6,
                "version": 1
            }
        ],
        "playerClubRecordList": [
            {
                "playerClubRecordId": 41,
                "clubId": 23,
                "clubName": "Manchester United F.C.",
                "playerId": 21,
                "seasonFrom": "1987-88",
                "seasonEnd": "1990-91",
                "previousClubId": null,
                "transferInfo": null,
                "youthStatus": "1",
                "loanFrom": null,
                "loanFromName": null,
                "coOwnWith": null,
                "coOwnWithName": null,
                "currentStatus": null,
                "order": 1,
                "version": 1
            },
            {
                "playerClubRecordId": 42,
                "clubId": 23,
                "clubName": "Manchester United F.C.",
                "playerId": 21,
                "seasonFrom": "1990-91",
                "seasonEnd": "Present",
                "previousClubId": null,
                "transferInfo": null,
                "youthStatus": "0",
                "loanFrom": null,
                "loanFromName": null,
                "coOwnWith": null,
                "coOwnWithName": null,
                "currentStatus": null,
                "order": null,
                "version": 1
            }
        ],
        "playerPlayerNationalityList": [
            {
                "playerNationalityId": 11,
                "playerId": 21,
                "nationalityId": 116,
                "name": "Wales",
                "abbreviation": "Welsh",
                "eligible": false,
                "isFirstTeam": true,
                "order": 1,
                "version": 3
            },
            {
                "playerNationalityId": 12,
                "playerId": 21,
                "nationalityId": 188,
                "name": "Sierra Leone",
                "abbreviation": "Sierra Leonian",
                "eligible": false,
                "isFirstTeam": true,
                "order": 2,
                "version": 4
            }
        ]
    }
}

##5 : Get homepage players

###URL /vizoal/services/player/homepage

###Method GET

###Header Parameters 1) Content-Type = application/json

###Image URL

Android:	
		/vizoal/image/android/homepage/hdRez/1.png
		/vizoal/image/android/homepage/hiRez/1.png
		/vizoal/image/android/homepage/medRez/1.png
		/vizoal/image/android/homepage/lowRez/1.png
	
IOS:		
		/vizoal/image/ios/homepage/iphone1/1.png
		/vizoal/image/ios/homepage/iphone2/1.png
		/vizoal/image/ios/homepage/iphone5/1.png

Response


{
    "status": {
        "code": "200",
        "message": "success",
        "errors": [],
        "debug": {
            "build": "1.0",
            "serverName": "ip-172-31-15-220",
            "duration": 6
        }
    },
    "result": [
        {
            "playerId": 960,
            "name": "Lionel Messi",
            "image": "1.png"
        },
        {
            "playerId": 1205,
            "name": "Cristiano Ronaldo",
            "image": "2.png"
        },
        {
            "playerId": 0,
            "name": "Neymar",
            "image": "3.png"
        },
        {
            "playerId": 116,
            "name": "Wayne Rooney",
            "image": "4.png"
        }
    ]
}

##6: Search

###URL

       /vizoal/services/search?keyword={keyword}&limit={limit}&offset={offset}
       
       Sample: /vizoal/services/search?keyword=Diego%20Mil&offset=0&limit=10
       
       offset: start from
       limit:  how many records per page

###Method GET

###Header Parameters 1) Content-Type = application/json

Response


{
    "status": {
        "code": "200",
        "message": "success",
        "errors": [],
        "debug": {
            "build": "1.0",
            "serverName": "ip-172-31-12-36",
            "duration": 26
        }
    },
    "result": {
        "totalCount": 5,
        "searchItemList": [
            {
                "type": "player",
                "playerId": 282,
                "playerName": "Ramírez Gastón",
                "playerFMId": 78027222,
                "clubId": 28,
                "clubName": "Southampton",
                "clubFMId": 713,
                "leagueId": null,
                "leagueName": "",
                "countryId": 93,
                "countryName": "Uruguay",
                "countryFMId": 1657
            },
            {
                "type": "player",
                "playerId": 1138,
                "playerName": "Demichelis Martín",
                "playerFMId": 952826,
                "clubId": 22,
                "clubName": "Manchester City",
                "clubFMId": 679,
                "leagueId": null,
                "leagueName": "",
                "countryId": 92,
                "countryName": "Argentina",
                "countryFMId": 1649
            },
            {
                "type": "player",
                "playerId": 1984,
                "playerName": "López Maxi",
                "playerFMId": 951030,
                "clubId": 77,
                "clubName": "Sampdoria",
                "clubFMId": 1167,
                "leagueId": null,
                "leagueName": "",
                "countryId": 92,
                "countryName": "Argentina",
                "countryFMId": 1649
            },
            {
                "type": "player",
                "playerId": 2145,
                "playerName": "Rubén Marco ",
                "playerFMId": 961949,
                "clubId": 129,
                "clubName": "Evian",
                "clubFMId": 3502354,
                "leagueId": null,
                "leagueName": "",
                "countryId": 92,
                "countryName": "Argentina",
                "countryFMId": 1649
            },
            {
                "type": "club",
                "playerId": null,
                "playerName": "",
                "playerFMId": null,
                "clubId": 17,
                "clubName": "Aston Villa",
                "clubFMId": 603,
                "leagueId": 11,
                "leagueName": "Premier League",
                "countryId": 122,
                "countryName": "England",
                "countryFMId": 765
            }
        ]
    }
}

##7 : Create an account

###Coming soon

##8 : Update an account

###Coming soon

##9 : Login

###Coming soon

##10 : Post a comment

###URL /vizoal/services/playerComment

###Method POST

###Header Parameters 1) Content-Type = application/json

Request

{
    "playerId": 14,
    "userName": "ethanchen",
    "comment": "fk222..............."
}

Response

It will return new inserted player comment id


{
  "status": {
    "code": "200",
    "message": "success",
    "errors": [],
    "debug": {
      "build": "1.0",
      "serverName": "ethan",
      "duration": 1634
    }
  },
  "result": 135
}

##11 : Get latest comment list by player id

It will return the latest 15 records

###URL /vizoal/services/playerComment/{playerId}

###Method GET

###Header Parameters 1) Content-Type = application/json

Response


{
    "status": {
        "code": "200",
        "message": "success",
        "errors": [],
        "debug": {
            "build": "1.0",
            "serverName": "ip-172-31-12-36",
            "duration": 14
        }
    },
    "result": {
        "totalCount": 8,
        "playerCommentList": [
            {
                "playerCommentId": 311,
                "playerId": 1205,
                "userName": "wert",
                "comment": "wow..........",
                "displayTime": "just now",
                "post_date": "2014-03-26 00:53:44"
            },
            {
                "playerCommentId": 310,
                "playerId": 1205,
                "userName": "wert",
                "comment": "ship i ship,,..................",
                "displayTime": "12 minutes ago",
                "post_date": "2014-03-26 00:41:05"
            },
            {
                "playerCommentId": 308,
                "playerId": 1205,
                "userName": "Jason",
                "comment": "test",
                "displayTime": "1 hours ago",
                "post_date": "2014-03-25 23:05:17"
            }
            ....................more
        ]
    }
}

##12 : Get old comment list by player id

It returns 15 records before given playerCommentId

###URL /vizoal/services/playerComment/old/{playerId}/{lastPlayerCommentId}

   Example:  Suppose currently your page is displaying 30 records about player xxx, and the playerCommentids are 200,199,198.....170.
             If you want to get 15 more earlier records about the player, the expected url is:
             /vizoal/services/playerComment/old/xxx/170.   

###Method GET

###Header Parameters 1) Content-Type = application/json

Response


{
    "status": {
        "code": "200",
        "message": "success",
        "errors": [],
        "debug": {
            "build": "1.0",
            "serverName": "ethan",
            "duration": 437
        }
    },
    "result": [
        {
            "playerCommentId": 135,
            "playerId": 14,
            "userName": "ethanchen",
            "comment": "fk222...............",
            "post_date": "2013-11-20 20:08:42"
        },
        {
            "playerCommentId": 133,
            "playerId": 14,
            "userName": "unknown",
            "comment": "tredfgfcdf....again",
            "post_date": "2013-11-21 04:00:47"
        },
        {
            "playerCommentId": 132,
            "playerId": 14,
            "userName": "ethanchen",
            "comment": "fk222...............",
            "post_date": "2013-11-20 20:00:27"
        },
        {
            "playerCommentId": 131,
            "playerId": 14,
            "userName": "ethanchen",
            "comment": "fk...............",
            "post_date": "2013-11-20 19:56:10"
        },
        {
            "playerCommentId": 130,
            "playerId": 14,
            "userName": "ethanchen",
            "comment": "fk",
            "post_date": "2013-11-20 19:55:20"
        },
        {
            "playerCommentId": 125,
            "playerId": 14,
            "userName": "unknown",
            "comment": "tyy",
            "post_date": "2013-11-10 23:49:37"
        },
        {
            "playerCommentId": 79,
            "playerId": 14,
            "userName": "unknown",
            "comment": "",
            "post_date": "2013-10-28 06:28:09"
        },
        {
            "playerCommentId": 63,
            "playerId": 14,
            "userName": "unknown",
            "comment": "hello",
            "post_date": "2013-08-11 03:04:40"
        },
        {
            "playerCommentId": 62,
            "playerId": 14,
            "userName": "unknown",
            "comment": ".%46#%$&%%#$$%%$$&%$%%%%$&$+%7#7#8$8$+$+$?$8$8$8$8$9$8$+$&#&$&$&#6'+'&$9$7$7$9",
            "post_date": "2013-08-08 02:37:27"
        },
        {
            "playerCommentId": 46,
            "playerId": 14,
            "userName": "unknown",
            "comment": "huan",
            "post_date": "2013-06-08 21:56:34"
        },
        {
            "playerCommentId": 45,
            "playerId": 14,
            "userName": "unknown",
            "comment": "fff",
            "post_date": "2013-06-08 21:55:40"
        },
        {
            "playerCommentId": 43,
            "playerId": 14,
            "userName": "unknown",
            "comment": "rrrrrrrr",
            "post_date": "2013-06-07 01:04:31"
        },
        {
            "playerCommentId": 42,
            "playerId": 14,
            "userName": "unknown",
            "comment": "eeeeeee",
            "post_date": "2013-06-07 01:04:08"
        },
        {
            "playerCommentId": 41,
            "playerId": 14,
            "userName": "unknown",
            "comment": "trst",
            "post_date": "2013-06-07 01:03:59"
        },
        {
            "playerCommentId": 40,
            "playerId": 14,
            "userName": "unknown",
            "comment": "",
            "post_date": "2013-06-06 07:52:35"
        }
    ]
}

##13 : Get player statistics

###URL:

/vizoal/services/playerStatistics/{player_id}

Example: /vizoal/services/playerStatistics/1205

###Method GET

###Header Parameters 1) Content-Type = application/json

Response


{
    "status": {
        "code": "200",
        "message": "success",
        "errors": [],
        "debug": {
            "build": "1.0",
            "serverName": "ip-172-31-12-36",
            "duration": 18
        }
    },
    "result": {
        "playerId": null,
        "appearance": "32",
        "manOfTheMatch": "12",
        "rating": "8.63",
        "goals": "39",
        "assists": "10",
        "yellowCards": "4",
        "redCards": "1",
        "passSuccessPercentage": "81.7%",
        "goalsPerGame": "1.2",
        "shotsPerGame": "28",
        "shotsOnTargetPerGame": "3.3",
        "dribblePerGame": "2.4",
        "tacklesPerGame": "0.7",
        "interceptionPerGame": "0.1",
        "clearancePerGame": "0.4",
        "arialWonPerGame": "1.8",
        "foulPerGame": "0.8"
    }
}
    

##14 : Country logo url

###URL: /vizoal/image/android/country_logo_profile/{density}/{fm_id}.png

Example: http://api.vizoal.com/vizoal/image/android/country_logo_profile/2.0/796.png

##15 : Top League List

###URL:

/vizoal/services/topleaguelist

###Method GET

###Header Parameters 1) Content-Type = application/json

Response


{
    "status": {
        "code": "200",
        "message": "success",
        "errors": [],
        "debug": {
            "build": "1.0",
            "serverName": "ethan",
            "duration": 387
        }
    },
    "result": [
        {
            "leagueId": 181,
            "name": "Champion League",
            "nationality": 286,
            "nationalityName": "UEFA",
            "fmId": 1301394,
            "sort": 0,
            "currentRound": 1,
            "maxRound": 1,
            "liveMatches": 0,
            "matchdaySettingId": 1,
            "matchdayDisplay": {
                "1": "Group Matchday 1",
                "2": "Group Matchday 2",
                "3": "Group Matchday 3",
                "4": "Group Matchday 4",
                "5": "Group Matchday 5",
                "6": "Group Matchday 6",
                "7": "Round of 16 first leg",
                "8": "Round of 16 Second leg",
                "9": "Quarter Finals first_leg",
                "10": "Quarter Finals second leg",
                "11": "Final"
            },
            "type": "cup",
            "version": 1
        },
        {
            "leagueId": 11,
            "name": "Premier League",
            "nationality": 122,
            "nationalityName": "England",
            "fmId": 11,
            "sort": 1,
            "currentRound": 33,
            "maxRound": 38,
            "liveMatches": 0,
            "matchdaySettingId": 0,
            "matchdayDisplay": null,
            "type": "league",
            "version": 7
        },
        {
            "leagueId": 17,
            "name": "Bundesliga",
            "nationality": 91,
            "nationalityName": "Germany",
            "fmId": 22,
            "sort": 1,
            "currentRound": 29,
            "maxRound": 34,
            "liveMatches": 0,
            "matchdaySettingId": 0,
            "matchdayDisplay": null,
            "type": "league",
            "version": 3
        },
        {
            "leagueId": 21,
            "name": "Ligue 1",
            "nationality": 135,
            "nationalityName": "France",
            "fmId": 16,
            "sort": 1,
            "currentRound": 32,
            "maxRound": 38,
            "liveMatches": 0,
            "matchdaySettingId": 0,
            "matchdayDisplay": null,
            "type": "league",
            "version": 3
        },
        {
            "leagueId": 19,
            "name": "Primera División",
            "nationality": 90,
            "nationalityName": "Spain",
            "fmId": 67,
            "sort": 1,
            "currentRound": 32,
            "maxRound": 38,
            "liveMatches": 0,
            "matchdaySettingId": 0,
            "matchdayDisplay": null,
            "type": "league",
            "version": 3
        },
        {
            "leagueId": 15,
            "name": "Serie A",
            "nationality": 143,
            "nationalityName": "Italy",
            "fmId": 32,
            "sort": 1,
            "currentRound": 32,
            "maxRound": 38,
            "liveMatches": 0,
            "matchdaySettingId": 0,
            "matchdayDisplay": null,
            "type": "league",
            "version": 3
        }
    ]
}
    

##16 : Get match list by league and round

###URL:

/vizoal/services/match/leagueMatchesIOS/{league_id}/{round}

Sample: /vizoal/services/match/leagueMatchesIOS/11/31

###Method GET

###Header Parameters 1) Content-Type = application/json

Response

{
    "status": {
        "code": "200",
        "message": "success",
        "errors": [],
        "debug": {
            "build": "1.0",
            "serverName": "ethan",
            "duration": 1229
        }
    },
    "result": {
        "1": [
            {
                "matchId": 1517,
                "team1FMId": 679,
                "team2FMId": 713,
                "team1Goal": 4,
                "team2Goal": 1,
                "startTime": "2014-04-05 04:45",
                "amOrPM": "AM",
                "displayDate": "Saturday  |  April 5, 2014",
                "started": true,
                "completed": true,
                "postponed": false,
                "currentTime": "FT",
                "clubName1": "Manchester City",
                "clubName2": "Southampton"
            }
        ],
        "2": [
            {
                "matchId": 1522,
                "team1FMId": 625,
                "team2FMId": 642,
                "team1Goal": 0,
                "team2Goal": 3,
                "startTime": "2014-04-05 07:00",
                "amOrPM": "AM",
                "displayDate": "Saturday  |  April 5, 2014",
                "started": true,
                "completed": true,
                "postponed": false,
                "currentTime": "FT",
                "clubName1": "Cardiff City",
                "clubName2": "Crystal Palace"
            }
        ],
        "3": [
            {
                "matchId": 1521,
                "team1FMId": 665,
                "team2FMId": 724,
                "team1Goal": 1,
                "team2Goal": 0,
                "startTime": "2014-04-05 07:00",
                "amOrPM": "AM",
                "displayDate": "Saturday  |  April 5, 2014",
                "started": true,
                "completed": true,
                "postponed": false,
                "currentTime": "FT",
                "clubName1": "Hull City",
                "clubName2": "Swansea"
            }
        ],
        "4": [
            {
                "matchId": 1520,
                "team1FMId": 603,
                "team2FMId": 654,
                "team1Goal": 1,
                "team2Goal": 2,
                "startTime": "2014-04-05 07:00",
                "amOrPM": "AM",
                "displayDate": "Saturday  |  April 5, 2014",
                "started": true,
                "completed": true,
                "postponed": false,
                "currentTime": "FT",
                "clubName1": "Aston Villa",
                "clubName2": "Fulham"
            }
        ],
        "5": [
            {
                "matchId": 1519,
                "team1FMId": 688,
                "team2FMId": 680,
                "team1Goal": 0,
                "team2Goal": 4,
                "startTime": "2014-04-05 07:00",
                "amOrPM": "AM",
                "displayDate": "Saturday  |  April 5, 2014",
                "started": true,
                "completed": true,
                "postponed": false,
                "currentTime": "FT",
                "clubName1": "Newcastle",
                "clubName2": "Manchester UTD"
            }
        ],
        "6": [
            {
                "matchId": 1518,
                "team1FMId": 691,
                "team2FMId": 734,
                "team1Goal": 0,
                "team2Goal": 1,
                "startTime": "2014-04-05 07:00",
                "amOrPM": "AM",
                "displayDate": "Saturday  |  April 5, 2014",
                "started": true,
                "completed": true,
                "postponed": false,
                "currentTime": "FT",
                "clubName1": "Norwich",
                "clubName2": "West Bromwich"
            }
        ],
        "7": [
            {
                "matchId": 1523,
                "team1FMId": 630,
                "team2FMId": 721,
                "team1Goal": 3,
                "team2Goal": 0,
                "startTime": "2014-04-05 09:30",
                "amOrPM": "AM",
                "displayDate": "Saturday  |  April 5, 2014",
                "started": true,
                "completed": true,
                "postponed": false,
                "currentTime": "FT",
                "clubName1": "Chelsea",
                "clubName2": "Stoke"
            }
        ],
        "8": [
            {
                "matchId": 1524,
                "team1FMId": 650,
                "team2FMId": 602,
                "team1Goal": 3,
                "team2Goal": 0,
                "startTime": "2014-04-06 05:30",
                "amOrPM": "AM",
                "displayDate": "Sunday  |  April 6, 2014",
                "started": true,
                "completed": true,
                "postponed": false,
                "currentTime": "FT",
                "clubName1": "Everton",
                "clubName2": "Arsenal"
            }
        ],
        "9": [
            {
                "matchId": 1525,
                "team1FMId": 735,
                "team2FMId": 676,
                "team1Goal": 1,
                "team2Goal": 2,
                "startTime": "2014-04-06 08:00",
                "amOrPM": "AM",
                "displayDate": "Sunday  |  April 6, 2014",
                "started": true,
                "completed": true,
                "postponed": false,
                "currentTime": "FT",
                "clubName1": "West Ham",
                "clubName2": "Liverpool"
            }
        ],
        "10": [
            {
                "matchId": 1526,
                "team1FMId": 728,
                "team2FMId": 722,
                "team1Goal": 5,
                "team2Goal": 1,
                "startTime": "2014-04-07 12:00",
                "amOrPM": "PM",
                "displayDate": "Monday  |  April 7, 2014",
                "started": true,
                "completed": true,
                "postponed": false,
                "currentTime": "FT",
                "clubName1": "Tottenham",
                "clubName2": "Sunderland"
            }
        ]
    }
}

##17 : Get all match list by club id

###URL:

/vizoal/services/match/clubMatches/{club_id}

Sample: /vizoal/services/match/clubMatches/16

###Method GET

###Header Parameters 1) Content-Type = application/json

Response

{
    "status": {
        "code": "200",
        "message": "success",
        "errors": [],
        "debug": {
            "build": "1.0",
            "serverName": "ip-172-31-12-36",
            "duration": 13
        }
    },
    "result": [
        {
            "matchId": 73,
            "team1FMId": 602,
            "team2FMId": 603,
            "team1Goal": 1,
            "team2Goal": 1,
            "startTime": "2013-08-17 07:00",
            "amOrPM": "AM",
            "displayDate": "Saturday  |  August 17, 2013",
            "started": true,
            "completed": true,
            "postponed": false,
            "currentTime": "FT",
            "clubName1": "Arsenal",
            "clubName2": "Aston Villa",
            "matchdayDisplay": "Matchday 1",
            "matchType": "league"
        },
        {
            "matchId": 774,
            "team1FMId": 654,
            "team2FMId": 602,
            "team1Goal": 1,
            "team2Goal": 3,
            "startTime": "2013-08-24 04:45",
            "amOrPM": "AM",
            "displayDate": "Saturday  |  August 24, 2013",
            "started": true,
            "completed": true,
            "postponed": false,
            "currentTime": "FT",
            "clubName1": "Fulham",
            "clubName2": "Arsenal",
            "matchdayDisplay": "Matchday 2",
            "matchType": "league"
        },
        {
            "matchId": 793,
            "team1FMId": 602,
            "team2FMId": 728,
            "team1Goal": 1,
            "team2Goal": 0,
            "startTime": "2013-09-01 08:00",
            "amOrPM": "AM",
            "displayDate": "Sunday  |  September 1, 2013",
            "started": true,
            "completed": true,
            "postponed": false,
            "currentTime": "FT",
            "clubName1": "Arsenal",
            "clubName2": "Tottenham",
            "matchdayDisplay": "Matchday 3",
            "matchType": "league"
        },
        .....
    ]
}

##18 : Ranking - team standing

###URL:

/vizoal/services/league/statistics/{league_id}

Sample: /vizoal/services/league/statistics/11

###Method GET

###Header Parameters 1) Content-Type = application/json

Response

{
    "status": {
        "code": "200",
        "message": "success",
        "errors": [],
        "debug": {
            "build": "1.0",
            "serverName": "ethan",
            "duration": 122
        }
    },
    "result": [
        {
            "leagueId": 11,
            "leagueStatisticsId": 772,
            "clubId": 21,
            "clubName": "Liverpool F.C.",
            "clubShortName": "Liverpool",
            "clubFMId": 676,
            "played": 32,
            "win": 22,
            "draw": 5,
            "loss": 5,
            "goalDifference": "49",
            "goalsFor": 88,
            "goalsAgainst": 39,
            "points": 71,
            "groupName": "Group A"
        },
        {
            "leagueId": 11,
            "leagueStatisticsId": 773,
            "clubId": 18,
            "clubName": "Chelsea F.C.",
            "clubShortName": "Chelsea",
            "clubFMId": 630,
            "played": 32,
            "win": 21,
            "draw": 6,
            "loss": 5,
            "goalDifference": "38",
            "goalsFor": 62,
            "goalsAgainst": 24,
            "points": 69,
            "groupName": "Group A"
        },
        {
            "leagueId": 11,
            "leagueStatisticsId": 774,
            "clubId": 22,
            "clubName": "Manchester City F.C.",
            "clubShortName": "Manchester City",
            "clubFMId": 679,
            "played": 30,
            "win": 21,
            "draw": 4,
            "loss": 5,
            "goalDifference": "52",
            "goalsFor": 80,
            "goalsAgainst": 28,
            "points": 67,
            "groupName": "Group A"
        },
        {
            "leagueId": 11,
            "leagueStatisticsId": 775,
            "clubId": 16,
            "clubName": "Arsenal F.C.",
            "clubShortName": "Arsenal",
            "clubFMId": 602,
            "played": 32,
            "win": 19,
            "draw": 7,
            "loss": 6,
            "goalDifference": "19",
            "goalsFor": 56,
            "goalsAgainst": 37,
            "points": 64,
            "groupName": "Group A"
        },
        {
            "leagueId": 11,
            "leagueStatisticsId": 776,
            "clubId": 19,
            "clubName": "Everton F.C.",
            "clubShortName": "Everton",
            "clubFMId": 650,
            "played": 31,
            "win": 17,
            "draw": 9,
            "loss": 5,
            "goalDifference": "18",
            "goalsFor": 49,
            "goalsAgainst": 31,
            "points": 60
        },
        {
            "leagueId": 11,
            "leagueStatisticsId": 777,
            "clubId": 32,
            "clubName": "Tottenham Hotspur F.C.",
            "clubShortName": "Tottenham",
            "clubFMId": 728,
            "played": 32,
            "win": 17,
            "draw": 5,
            "loss": 10,
            "goalDifference": "-4",
            "goalsFor": 40,
            "goalsAgainst": 44,
            "points": 56
        },
        {
            "leagueId": 11,
            "leagueStatisticsId": 778,
            "clubId": 23,
            "clubName": "Manchester United F.C.",
            "clubShortName": "Manchester UTD",
            "clubFMId": 680,
            "played": 32,
            "win": 16,
            "draw": 6,
            "loss": 10,
            "goalDifference": "14",
            "goalsFor": 52,
            "goalsAgainst": 38,
            "points": 54
        },
        {
            "leagueId": 11,
            "leagueStatisticsId": 779,
            "clubId": 28,
            "clubName": "Southampton F.C.",
            "clubShortName": "Southampton",
            "clubFMId": 713,
            "played": 32,
            "win": 13,
            "draw": 9,
            "loss": 10,
            "goalDifference": "9",
            "goalsFor": 49,
            "goalsAgainst": 40,
            "points": 48
        },
        {
            "leagueId": 11,
            "leagueStatisticsId": 780,
            "clubId": 24,
            "clubName": "Newcastle United F.C.",
            "clubShortName": "Newcastle",
            "clubFMId": 688,
            "played": 32,
            "win": 14,
            "draw": 4,
            "loss": 14,
            "goalDifference": "-9",
            "goalsFor": 38,
            "goalsAgainst": 47,
            "points": 46
        },
        ...
         
    ]
}

##19 : Ranking - top scorer

###URL:

/vizoal/services/league/topScorer/{league_id}

Sample: /vizoal/services/league/topScorer/11

###Method GET

###Header Parameters 1) Content-Type = application/json

Response

{
    "status": {
        "code": "200",
        "message": "success",
        "errors": [],
        "debug": {
            "build": "1.0",
            "serverName": "ethan",
            "duration": 115
        }
    },
    "result": [
        {
            "topScorerId": 331,
            "playerId": 122,
            "leagueId": 11,
            "totalGoals": 29,
            "penaltyGoal": 0,
            "matchPlayed": 27,
            "playerFirstName": "Luis",
            "playerLastName": "Suárez",
            "teamName": "Liverpool F.C.",
            "playerFMId": "78000335"
        },
        {
            "topScorerId": 332,
            "playerId": 253,
            "leagueId": 11,
            "totalGoals": 20,
            "penaltyGoal": 0,
            "matchPlayed": 22,
            "playerFirstName": "Daniel",
            "playerLastName": "Sturridge",
            "teamName": "Liverpool F.C.",
            "playerFMId": "5127717"
        },
        {
            "topScorerId": 333,
            "playerId": 120,
            "leagueId": 11,
            "totalGoals": 17,
            "penaltyGoal": 0,
            "matchPlayed": 29,
            "playerFirstName": "Yaya",
            "playerLastName": "Touré",
            "teamName": "Manchester City F.C.",
            "playerFMId": "533344"
        },
        {
            "topScorerId": 335,
            "playerId": 121,
            "leagueId": 11,
            "totalGoals": 15,
            "penaltyGoal": 0,
            "matchPlayed": 15,
            "playerFirstName": "Sergio",
            "playerLastName": "Agüero",
            "teamName": "Manchester City F.C.",
            "playerFMId": "957002"
        },
        {
            "topScorerId": 336,
            "playerId": 116,
            "leagueId": 11,
            "totalGoals": 15,
            "penaltyGoal": 0,
            "matchPlayed": 25,
            "playerFirstName": "Wayne",
            "playerLastName": "Rooney",
            "teamName": "Manchester United F.C.",
            "playerFMId": "5108390"
        },
        {
            "topScorerId": 334,
            "playerId": 406,
            "leagueId": 11,
            "totalGoals": 15,
            "penaltyGoal": 0,
            "matchPlayed": 29,
            "playerFirstName": "Jay",
            "playerLastName": "Rodriguez",
            "teamName": "Southampton F.C.",
            "playerFMId": "5128651"
        },
        {
            "topScorerId": 337,
            "playerId": 152,
            "leagueId": 11,
            "totalGoals": 14,
            "penaltyGoal": 0,
            "matchPlayed": 31,
            "playerFirstName": "Eden",
            "playerLastName": "Hazard",
            "teamName": "Chelsea F.C.",
            "playerFMId": "18004418"
        },
        {
            "topScorerId": 339,
            "playerId": 108,
            "leagueId": 11,
            "totalGoals": 13,
            "penaltyGoal": 0,
            "matchPlayed": 30,
            "playerFirstName": "Olivier",
            "playerLastName": "Giroud",
            "teamName": "Arsenal F.C.",
            "playerFMId": "34000647"
        },
        ...
    ]
}

##20 : Ranking - top assists

###URL:

/vizoal/services/league/topAssist/{league_id}

Sample: /vizoal/services/league/topAssist/11

###Method GET

###Header Parameters 1) Content-Type = application/json

Response

{
    "status": {
        "code": "200",
        "message": "success",
        "errors": [],
        "debug": {
            "build": "1.0",
            "serverName": "ethan",
            "duration": 120
        }
    },
    "result": [
        {
            "topAssistId": null,
            "playerId": 122,
            "leagueId": 11,
            "assists": 11,
            "matchPlayed": 27,
            "playerFirstName": "Luis",
            "playerLastName": "Suárez",
            "teamName": "Liverpool F.C.",
            "playerFMId": "78000335"
        },
        {
            "topAssistId": null,
            "playerId": 116,
            "leagueId": 11,
            "assists": 10,
            "matchPlayed": 25,
            "playerFirstName": "Wayne",
            "playerLastName": "Rooney",
            "teamName": "Manchester United F.C.",
            "playerFMId": "5108390"
        },
        {
            "topAssistId": null,
            "playerId": 364,
            "leagueId": 11,
            "assists": 10,
            "matchPlayed": 26,
            "playerFirstName": "Rickie",
            "playerLastName": "Lambert",
            "teamName": "Southampton F.C.",
            "playerFMId": "4001311"
        },
        {
            "topAssistId": null,
            "playerId": 131,
            "leagueId": 11,
            "assists": 9,
            "matchPlayed": 27,
            "playerFirstName": "Steven",
            "playerLastName": "Gerrard",
            "teamName": "Liverpool F.C.",
            "playerFMId": "108658"
        },
        {
            "topAssistId": null,
            "playerId": 127,
            "leagueId": 11,
            "assists": 8,
            "matchPlayed": 18,
            "playerFirstName": "David",
            "playerLastName": "Silva",
            "teamName": "Manchester City F.C.",
            "playerFMId": "7458280"
        },
        {
            "topAssistId": null,
            "playerId": 1209,
            "leagueId": 11,
            "assists": 8,
            "matchPlayed": 21,
            "playerFirstName": "Mesut",
            "playerLastName": "Özil",
            "teamName": "Arsenal F.C.",
            "playerFMId": "35002219"
        },
        {
            "topAssistId": null,
            "playerId": 152,
            "leagueId": 11,
            "assists": 7,
            "matchPlayed": 31,
            "playerFirstName": "Eden",
            "playerLastName": "Hazard",
            "teamName": "Chelsea F.C.",
            "playerFMId": "18004418"
        },
        {
            "topAssistId": null,
            "playerId": 108,
            "leagueId": 11,
            "assists": 7,
            "matchPlayed": 30,
            "playerFirstName": "Olivier",
            "playerLastName": "Giroud",
            "teamName": "Arsenal F.C.",
            "playerFMId": "34000647"
        },
        {
            "topAssistId": null,
            "playerId": 253,
            "leagueId": 11,
            "assists": 7,
            "matchPlayed": 22,
            "playerFirstName": "Daniel",
            "playerLastName": "Sturridge",
            "teamName": "Liverpool F.C.",
            "playerFMId": "5127717"
        },
        ...
    ]
}

##21 : Club profile

###URL:

/vizoal/services/club/{league_id}

Sample: /vizoal/services/club/21

###Method GET

###Header Parameters 1) Content-Type = application/json

Response

{
    "status": {
        "code": "200",
        "message": "success",
        "errors": [],
        "debug": {
            "build": "1.0",
            "serverName": "ethan",
            "duration": 3343
        }
    },
    "result": {
        "clubId": 21,
        "name": "Liverpool F.C.",
        "clubNameShort": "Liverpool",
        "leagueId": 11,
        "leagueName": "Premier League",
        "leagueFMID": 11,
        "nationID": 122,
        "nationName": "England",
        "nationFMID": 765,
        "foundYear": "1892",
        "city": "Liverpool",
        "homeField": "Anfield",
        "fmId": 676,
        "thirdPartyId": 26,
        "sort": 0,
        "version": 2,
        "playerList": [
            {
                "playerId": 290,
                "firstName": "Coutinho",
                "lastName": "",
                "nickName": "Coutinho",
                "fmId": 19046041,
                "nationality_fmid": null,
                "currentClub": null,
                "currentClubName": "Liverpool",
                "clubNumber": "10",
                "club_fm_id": null,
                "nationOfDisplayName": "Brazil",
                "rating": "7.41",
                "postionDisplay": "AMC,AML"
            },
            {
                "playerId": 2227,
                "firstName": "Luis Alberto",
                "lastName": "",
                "nickName": "",
                "fmId": 67131771,
                "nationality_fmid": null,
                "currentClub": null,
                "currentClubName": "Liverpool",
                "clubNumber": "6",
                "club_fm_id": null,
                "nationOfDisplayName": "Spain",
                "rating": "6.21",
                "postionDisplay": "AMC,AML"
            },
	    ...
        ]
    }
}

##21 : Video by league

###URL:

/vizoal/services/match/video/league?&leagueId={leagueId}&offset={offset}&limit={limit}

Sample: /vizoal/services/match/video/league?&leagueId=11&offset=0&limit=20

###Method GET

###Header Parameters 1) Content-Type = application/json

Response

{
    "status": {
        "code": "200",
        "message": "success",
        "errors": [],
        "debug": {
            "build": "1.0",
            "serverName": "ethan",
            "duration": 1468
        }
    },
    "result": [
        {
            "videoId": 1,
            "videoName": " [16/03/2014] Manchester United 0-3 Liverpool (All Goals & Highlights)",
            "videoLong": "04:41",
            "createDate": "03/16/2014",
            "matchType": "league",
            "leagueId": 11,
            "url": "http://www.dailymotion.com/embed/video/x1hl1lr",
            "videoType": "MatchHighLights"
        },
        {
            "videoId": 2,
            "videoName": " [16/03/2014] Tottenham 0-1 Arsenal (all goals - highlights)",
            "videoLong": "02:09",
            "createDate": "03/16/2014",
            "matchType": "league",
            "leagueId": 11,
            "url": "http://www.dailymotion.com/embed/video/x1hp4e7",
            "videoType": "MatchHighLights"
        },
        {
            "videoId": 3,
            "videoName": " [15/03/2014] Aston Villa 1 - 0 Chelsea",
            "videoLong": "05:28",
            "createDate": "03/15/2014",
            "matchType": "league",
            "leagueId": 11,
            "url": "http://www.dailymotion.com/embed/video/x1hariw",
            "videoType": "MatchHighLights"
        }
    ]
}

##22 : IOS crash log

###URL /vizoal/services/iosCrashreport

###Method POST

###Header Parameters 1) Content-Type = application/json

Request

{
    "app_version": "1.0",
    "phone_mode": "iphone4",
    "ios_version": "iso7",
    "trace": "error detail goes here..."
}

Response

{
  "status": {
    "code": "200",
    "message": "success",
    "errors": [],
    "debug": {
      "build": "1.0",
      "serverName": "ethan",
      "duration": 923
    }
  },
  "result": 4
}

##23 : Match and match live

###URL

	/vizoal/services/match/liveall?matchId={matchId}&live_flag=true&live_version={version}

        Sample:
        First time call:  /vizoal/services/match/liveall?matchId=2043&live_flag=true&live_version=0
        Later:            /vizoal/services/match/liveall?matchId=2043&live_flag=true&live_version=41
        
        Only need matchbase: /vizoal/services/match/liveall?matchId=2043&live_flag=false
        
        When first time call this API, put live_version as '0'. And then once get the first batch of results back,
        use the version value from the result.

###Method GET

###Header Parameters 1) Content-Type = application/json

Response

{
    "status": {
        "code": "200",
        "message": "success",
        "errors": [],
        "debug": {
            "build": "1.0",
            "serverName": "ethan",
            "duration": 137
        }
    },
    "result": {
        "matchBase": {
            "matchId": 2043,
            "team1Id": 109,
            "team2Id": 120,
            "team1FMId": 1687,
            "team2FMId": 1708,
            "team1Goal": 1,
            "team2Goal": 0,
            "startTime": "2014-04-09 11:45",
            "started": true,
            "completed": true,
            "currentTime": "FT",
            "clubName1": "AT Madrid",
            "clubName2": "Barcelona",
            "team1Formation": "433",
            "team2Formation": "433",
            "postponed": false,
            "version": 41,
            "leagueName": null,
            "leagueFMID": null,
            "leagueId": null,
            "parentId": null,
            "round": null
        },
        "matchLiveList": [
            {
                "matchLiveId": 61917,
                "actionTime": "90",
                "actionType": "yellow",
                "scorerId": null,
                "scorerName": "",
                "assistId": null,
                "assistName": "",
                "currentScore": null,
                "playerYellowId": 7415,
                "playerYellowName": "J. Mascherano",
                "substPlayer1Id": null,
                "substPlayer2Id": null,
                "substPlayer1Name": "",
                "substPlayer2Name": null,
                "playerRedId": null,
                "playerRedName": null,
                "matchId": 2043,
                "thirdPartyMatchId": null,
                "version": 41,
                "team1": false
            },
            {
                "matchLiveId": 61916,
                "actionTime": "90",
                "actionType": "yellow",
                "scorerId": null,
                "scorerName": "",
                "assistId": null,
                "assistName": "",
                "currentScore": null,
                "playerYellowId": 80764,
                "playerYellowName": "Koke",
                "substPlayer1Id": null,
                "substPlayer2Id": null,
                "substPlayer1Name": "",
                "substPlayer2Name": null,
                "playerRedId": null,
                "playerRedName": null,
                "matchId": 2043,
                "thirdPartyMatchId": null,
                "version": 41,
                "team1": true
            },
            {
                "matchLiveId": 61915,
                "actionTime": "79",
                "actionType": "subst",
                "scorerId": null,
                "scorerName": "",
                "assistId": null,
                "assistName": "",
                "currentScore": null,
                "playerYellowId": null,
                "playerYellowName": "",
                "substPlayer1Id": 6319,
                "substPlayer2Id": 19361,
                "substPlayer1Name": "D. Villa",
                "substPlayer2Name": "C. Rodríguez",
                "playerRedId": null,
                "playerRedName": null,
                "matchId": 2043,
                "thirdPartyMatchId": null,
                "version": 41,
                "team1": true
            },
            {
                "matchLiveId": 61914,
                "actionTime": "72",
                "actionType": "subst",
                "scorerId": null,
                "scorerName": "",
                "assistId": null,
                "assistName": "",
                "currentScore": null,
                "playerYellowId": null,
                "playerYellowName": "",
                "substPlayer1Id": 9486,
                "substPlayer2Id": 44055,
                "substPlayer1Name": "A. Iniesta",
                "substPlayer2Name": "Pedro",
                "playerRedId": null,
                "playerRedName": null,
                "matchId": 2043,
                "thirdPartyMatchId": null,
                "version": 41,
                "team1": false
            },
            {
                "matchLiveId": 61913,
                "actionTime": "62",
                "actionType": "subst",
                "scorerId": null,
                "scorerName": "",
                "assistId": null,
                "assistName": "",
                "currentScore": null,
                "playerYellowId": null,
                "playerYellowName": "",
                "substPlayer1Id": 14089,
                "substPlayer2Id": 7417,
                "substPlayer1Name": "Adrián",
                "substPlayer2Name": "Diego",
                "playerRedId": null,
                "playerRedName": null,
                "matchId": 2043,
                "thirdPartyMatchId": null,
                "version": 41,
                "team1": true
            },
            {
                "matchLiveId": 61912,
                "actionTime": "61",
                "actionType": "subst",
                "scorerId": null,
                "scorerName": "",
                "assistId": null,
                "assistName": "",
                "currentScore": null,
                "playerYellowId": null,
                "playerYellowName": "",
                "substPlayer1Id": 8040,
                "substPlayer2Id": 25244,
                "substPlayer1Name": "C. Fàbregas",
                "substPlayer2Name": "A. Sánchez",
                "playerRedId": null,
                "playerRedName": null,
                "matchId": 2043,
                "thirdPartyMatchId": null,
                "version": 41,
                "team1": false
            },
            {
                "matchLiveId": 61911,
                "actionTime": "18",
                "actionType": "yellow",
                "scorerId": null,
                "scorerName": "",
                "assistId": null,
                "assistName": "",
                "currentScore": null,
                "playerYellowId": 44721,
                "playerYellowName": "S. Busquets",
                "substPlayer1Id": null,
                "substPlayer2Id": null,
                "substPlayer1Name": "",
                "substPlayer2Name": null,
                "playerRedId": null,
                "playerRedName": null,
                "matchId": 2043,
                "thirdPartyMatchId": null,
                "version": 41,
                "team1": false
            },
            {
                "matchLiveId": 61910,
                "actionTime": "5",
                "actionType": "goal",
                "scorerId": 80764,
                "scorerName": "Koke",
                "assistId": 14089,
                "assistName": "Adrián",
                "currentScore": null,
                "playerYellowId": null,
                "playerYellowName": "",
                "substPlayer1Id": null,
                "substPlayer2Id": null,
                "substPlayer1Name": "",
                "substPlayer2Name": null,
                "playerRedId": null,
                "playerRedName": null,
                "matchId": 2043,
                "thirdPartyMatchId": null,
                "version": 41,
                "team1": true
            }
        ],
        "matchCommentList": null
    }
}

##24 : Match statistics

###URL

/vizoal/services/matchStatistics/{matchId}

    Sample: /vizoal/services/matchStatistics/2043

###Method GET

###Header Parameters 1) Content-Type = application/json

Response

{
    "status": {
        "code": "200",
        "message": "success",
        "errors": [],
        "debug": {
            "build": "1.0",
            "serverName": "ethan",
            "duration": 90
        }
    },
    "result": {
        "totalShots1": "15",
        "totalShots2": "12",
        "shotsOnTarget1": "5",
        "shotsOnTarget2": "3",
        "accuratePass1": "166",
        "accuratePass2": "574",
        "totalThrows1": "16",
        "totalThrows2": "23",
        "aerialWon1": "20",
        "aerialWon2": "8",
        "totalPass1": "260",
        "totalPass2": "654",
        "totalTackle1": "35",
        "totalTackle2": "21",
        "aerialLost1": "8",
        "aerialLost2": "20",
        "wonCorners1": "6",
        "wonCorners2": "7",
        "possessionPercentage1": "28.8",
        "possessionPercentage2": "71.2"
    }
}

##25 : Match players

###URL

/vizoal/services/match/player/{matchId}

    Sample: /vizoal/services/match/player/1824

###Method GET

###Header Parameters 1) Content-Type = application/json

Response

{
    "status": {
        "code": "200",
        "message": "success",
        "errors": [],
        "debug": {
            "build": "1.0",
            "serverName": "vizoal",
            "duration": 261
        }
    },
    "result": {
        "team1MatchPlayers": [
            {
                "matchPlayerId": 2376204,
                "matchId": 1824,
                "playerId": 2729,
                "playerName": "Yoel",
                "thirdPartyPlayerId": null,
                "formationPlace": 1,
                "teamId": 135,
                "fmid": 67010473,
                "imageName": "67010473_1.png",
                "yellow": 0,
                "red": 0,
                "goal": 0,
                "subst": false,
                "substIn": false,
                "substOut": false
            },
            ...
        ],
        "team2MatchPlayers": [
            {
                "matchPlayerId": 2376222,
                "matchId": 1824,
                "playerId": 1231,
                "playerName": "Bravo",
                "thirdPartyPlayerId": null,
                "formationPlace": 1,
                "teamId": 214,
                "fmid": 5251774,
                "imageName": "5251774_1.png",
                "yellow": 0,
                "red": 0,
                "goal": 0,
                "subst": false,
                "substIn": false,
                "substOut": false
            },
            ...
        ],
        "team1SubstMatchPlayers": [
            {
                "matchPlayerId": 2376216,
                "matchId": 1824,
                "playerId": 1010,
                "playerName": "Fabi??n Orellana",
                "thirdPartyPlayerId": null,
                "formationPlace": 0,
                "teamId": 135,
                "fmid": 8835313,
                "imageName": "8835313_1.png",
                "yellow": 0,
                "red": 0,
                "goal": 0,
                "subst": true,
                "substIn": true,
                "substOut": false
            },
            ...
        ],
        "team2SubstMatchPlayers": [
            {
                "matchPlayerId": 2376234,
                "matchId": 1824,
                "playerId": 2745,
                "playerName": "Haris Seferović",
                "thirdPartyPlayerId": null,
                "formationPlace": 0,
                "teamId": 214,
                "fmid": 69004248,
                "imageName": "69004248_1.png",
                "yellow": 0,
                "red": 0,
                "goal": 0,
                "subst": true,
                "substIn": true,
                "substOut": false
            },
            ...
        ]
    }
}

##26 : Post a match comment

###URL /vizoal/services/match/comment/add

###Method POST

###Header Parameters 1) Content-Type = application/json

Request

{
    "matchId": 2043,
    "userName": "ethanchen",
    "comment": "fk222..............."
}

Response

{
  "status": {
    "code": "200",
    "message": "success",
    "errors": [],
    "debug": {
      "build": "1.0",
      "serverName": "ethan",
      "duration": 126
    }
  },
  "result": 111
}

##27 : Load match comment by match id

###URL

/vizoal/services/match/comment/{match_id}

    Sample: /vizoal/services/match/comment/2043

###Method GET

###Header Parameters 1) Content-Type = application/json

Response

{
    "status": {
        "code": "200",
        "message": "success",
        "errors": [],
        "debug": {
            "build": "1.0",
            "serverName": "ethan",
            "duration": 129
        }
    },
    "result": {
        "totalCount": 5,
        "matchCommentList": [
            {
                "matchCommentId": 112,
                "matchId": 2043,
                "userName": "ethanchen",
                "comment": "fk222...............",
                "displayTime": "15 minutes ago",
                "post_date": "2014-04-10 22:51:31"
            },
            {
                "matchCommentId": 110,
                "matchId": 2043,
                "userName": "Chico",
                "comment": "Come on barca, wake up and step up the game.",
                "displayTime": "2014-04-09",
                "post_date": "2014-04-09 12:41:07"
            },
            {
                "matchCommentId": 109,
                "matchId": 2043,
                "userName": "Ray",
                "comment": "AT Madrid playing at home with an away goal advantage.",
                "displayTime": "2014-04-09",
                "post_date": "2014-04-09 11:56:07"
            },
            {
                "matchCommentId": 108,
                "matchId": 2043,
                "userName": "claire",
                "comment": "stupid messi lol",
                "displayTime": "2014-04-09",
                "post_date": "2014-04-09 11:54:20"
            },
            {
                "matchCommentId": 107,
                "matchId": 2043,
                "userName": "Jason",
                "comment": "What a goal!",
                "displayTime": "2014-04-09",
                "post_date": "2014-04-09 11:53:44"
            }
        ]
    }
}

##28 : Load old match comment by match id

###URL

/comment/old/{matchId}/{matchCommentId}

    Sample: /vizoal/services/match/comment/old/2043/110

###Method GET

###Header Parameters 1) Content-Type = application/json

Response

{
    "status": {
        "code": "200",
        "message": "success",
        "errors": [],
        "debug": {
            "build": "1.0",
            "serverName": "ethan",
            "duration": 129
        }
    },
    "result": {
        "totalCount": 5,
        "matchCommentList": [
            {
                "matchCommentId": 112,
                "matchId": 2043,
                "userName": "ethanchen",
                "comment": "fk222...............",
                "displayTime": "15 minutes ago",
                "post_date": "2014-04-10 22:51:31"
            },
            {
                "matchCommentId": 110,
                "matchId": 2043,
                "userName": "Chico",
                "comment": "Come on barca, wake up and step up the game.",
                "displayTime": "2014-04-09",
                "post_date": "2014-04-09 12:41:07"
            },
            {
                "matchCommentId": 109,
                "matchId": 2043,
                "userName": "Ray",
                "comment": "AT Madrid playing at home with an away goal advantage.",
                "displayTime": "2014-04-09",
                "post_date": "2014-04-09 11:56:07"
            },
            {
                "matchCommentId": 108,
                "matchId": 2043,
                "userName": "claire",
                "comment": "stupid messi lol",
                "displayTime": "2014-04-09",
                "post_date": "2014-04-09 11:54:20"
            },
            {
                "matchCommentId": 107,
                "matchId": 2043,
                "userName": "Jason",
                "comment": "What a goal!",
                "displayTime": "2014-04-09",
                "post_date": "2014-04-09 11:53:44"
            }
        ]
    }
}

##29 : Videos by match id

###URL

/services/match/video/match?matchId={matchId}&limit={limit}&offset={offset}

    Sample: /services/match/video/match?matchId=1426&limit=10&offset=0

###Method GET

###Header Parameters 1) Content-Type = application/json

Response

{
    "status": {
        "code": "200",
        "message": "success",
        "errors": [],
        "debug": {
            "build": "1.0",
            "serverName": "ethan",
            "duration": 88
        }
    },
    "result": [
        {
            "videoId": 1,
            "videoName": " [16/03/2014] Manchester United 0-3 Liverpool (All Goals & Highlights)",
            "videoLong": "04:41",
            "createDate": "03/16/2014",
            "matchType": "league",
            "leagueId": 11,
            "url": "http://www.dailymotion.com/embed/video/x1hl1lr",
            "videoType": "MatchHighLights"
        }
    ]
}

##30 : Clubs by league id

###URL

/vizoal/services/clublistByLeague/{league_id}

    Sample: /vizoal/services/clublistByLeague/11

###Method GET

###Header Parameters 1) Content-Type = application/json

Response

{
    "status": {
        "code": "200",
        "message": "success",
        "errors": [],
        "debug": {
            "build": "1.0",
            "serverName": "localhost",
            "duration": 7
        }
    },
    "result": [
        {
            "clubId": 16,
            "name": "Arsenal F.C.",
            "clubNameShort": "Arsenal",
            "leagueId": 11,
            "leagueName": "",
            "leagueFMID": null,
            "leagueImageName": null,
            "nationID": null,
            "nationName": "",
            "nationFMID": null,
            "foundYear": "1886",
            "city": "London",
            "homeField": "Emirates Stadium",
            "fmId": 602,
            "clubImageName": "602_1.png",
            "sort": 1,
            "version": 1,
            "playerList": null
        },
        {
            "clubId": 17,
            "name": "Aston Villa F.C.",
            "clubNameShort": "Aston Villa",
            "leagueId": 11,
            "leagueName": "",
            "leagueFMID": null,
            "leagueImageName": null,
            "nationID": null,
            "nationName": "",
            "nationFMID": null,
            "foundYear": "1874",
            "city": "Witton",
            "homeField": "Villa Park",
            "fmId": 603,
            "clubImageName": "603_1.png",
            "sort": 1,
            "version": 1,
            "playerList": null
        },
        ...
    ]
}

##30 : Setting league list

###URL

/vizoal/services/settingleaguelist

###Method GET

###Header Parameters 1) Content-Type = application/json

Response

{
    "status": {
        "code": "200",
        "message": "success",
        "errors": [],
        "debug": {
            "build": "1.0",
            "serverName": "localhost",
            "duration": 8
        }
    },
    "result": [
        {
            "leagueId": 11,
            "name": "Premier League",
            "nationality": 122,
            "nationalityName": "",
            "fmId": 11,
            "imageName": null,
            "sort": 1,
            "currentRound": 35,
            "maxRound": null,
            "liveMatches": 0,
            "matchdaySettingId": 0,
            "matchdayDisplay": null,
            "type": null,
            "version": 7
        },
        {
            "leagueId": 17,
            "name": "Bundesliga",
            "nationality": 91,
            "nationalityName": "",
            "fmId": 22,
            "imageName": null,
            "sort": 1,
            "currentRound": 32,
            "maxRound": null,
            "liveMatches": 0,
            "matchdaySettingId": 0,
            "matchdayDisplay": null,
            "type": null,
            "version": 3
        },
        {
            "leagueId": 21,
            "name": "Ligue 1",
            "nationality": 135,
            "nationalityName": "",
            "fmId": 16,
            "imageName": null,
            "sort": 1,
            "currentRound": 34,
            "maxRound": null,
            "liveMatches": 0,
            "matchdaySettingId": 0,
            "matchdayDisplay": null,
            "type": null,
            "version": 3
        },
        {
            "leagueId": 19,
            "name": "Primera División",
            "nationality": 90,
            "nationalityName": "",
            "fmId": 67,
            "imageName": null,
            "sort": 1,
            "currentRound": 34,
            "maxRound": null,
            "liveMatches": 0,
            "matchdaySettingId": 0,
            "matchdayDisplay": null,
            "type": null,
            "version": 3
        },
        {
            "leagueId": 15,
            "name": "Serie A",
            "nationality": 143,
            "nationalityName": "",
            "fmId": 32,
            "imageName": null,
            "sort": 1,
            "currentRound": 35,
            "maxRound": null,
            "liveMatches": 0,
            "matchdaySettingId": 0,
            "matchdayDisplay": null,
            "type": null,
            "version": 3
        },
        {
            "leagueId": 182,
            "name": "World Cup 2014",
            "nationality": 287,
            "nationalityName": "",
            "fmId": 1301385,
            "imageName": null,
            "sort": 1,
            "currentRound": 0,
            "maxRound": null,
            "liveMatches": 0,
            "matchdaySettingId": 2,
            "matchdayDisplay": null,
            "type": null,
            "version": 1
        }
    ]
}

##33 : IOS Notification Registration

###URL

/vizoal/services/notification/iosregister

###Method POST

###Header Parameters 1) Content-Type = application/json

Request

{
    "deviceToken": "asdfjhaweopihfa7jjdfkahdsjfiu3asdf3",
    "clubIds": "3,4,5,6"
}

Response

{
    "status": {
        "code": "200",
        "message": "success",
        "errors": [],
        "debug": {
            "build": "1.0",
            "serverName": "vizoal",
            "duration": 13
        }
    },
    "result": "success"
}

##34 : IOS Notification Test

###URL

        /vizoal/services/iosNotificationTest?token={token}&body={body}&actionKey={actionKey}&badge={badge}&sound={sound}&matchId={matchId}

         sample:	/vizoal/services/iosNotificationTest?token=d2a07176 a749fd41 2b75d1bf 8f9b58e0 72cd3f95 42a3a6d7 053e44f0 242fb98a&body=hello world!&actionKey=Open&badge=2&sound=default&matchId=2345

###Method GET

###Header Parameters 1) Content-Type = application/json

Response

{
    "status": {
        "code": "200",
        "message": "success",
        "errors": [],
        "debug": {
            "build": "1.0",
            "serverName": "localhost",
            "duration": 1614
        }
    },
    "result": "success"
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published