POST v3/me/games/savescore
Save game score by admin
For newly add overtime period, please set the id of the period_detail to -1
And for deleted overtime period, put the id to the deleted_periods array
Request Information
Parameters
Name | Description | Additional information |
---|---|---|
inVO | the score data |
Define this parameter in the request body. |
Request body formats
application/json, text/json
Sample:
{ "gameResult": 0, "periodDetails": [ { "periodId": 1, "periodNumber": 2, "team1Score": 1, "team2Score": 1, "periodType": 0, "periodTimeLength": 3 }, { "periodId": 1, "periodNumber": 2, "team1Score": 1, "team2Score": 1, "periodType": 0, "periodTimeLength": 3 }, { "periodId": 1, "periodNumber": 2, "team1Score": 1, "team2Score": 1, "periodType": 0, "periodTimeLength": 3 } ], "team1Score": "sample string 1", "team1Points": "sample string 2", "team1FD": 0, "team2Score": "sample string 3", "team2Points": "sample string 4", "team2FD": 0, "deletedPeriods": [ 1, 2, 3 ], "comments": "sample string 5", "gameId": 6, "gameType": 0, "curUserId": "sample string 7", "isSSO": true, "requestHost": "sample string 9", "applicationPath": "sample string 10", "secureApplicationPath": "sample string 11", "absoluteApplicationPath": "sample string 12", "isHttps": true, "isMobileDevice": true, "isFullEmbed": true, "clientType": 0, "clientVersion": "sample string 16", "clientOS": "sample string 17", "clientBuild": "sample string 18", "premiumAppId": "sample string 19", "clientWidth": 20, "clientHeight": 21, "timezone": 22 }
application/xml, text/xml
Sample:
<GameScoreInVO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/imLeagues.Internal.API.VO.Input"> <ClientHeight>21</ClientHeight> <ClientType>Site</ClientType> <ClientWidth>20</ClientWidth> <absoluteApplicationPath>sample string 12</absoluteApplicationPath> <applicationPath>sample string 10</applicationPath> <cachedKey>sample string 1</cachedKey> <clientBuild>sample string 18</clientBuild> <clientOS>sample string 17</clientOS> <clientVersion>sample string 16</clientVersion> <curUserId>sample string 7</curUserId> <isFullEmbed>true</isFullEmbed> <isHttps>true</isHttps> <isMobileDevice>true</isMobileDevice> <isSSO>true</isSSO> <premiumAppId>sample string 19</premiumAppId> <requestHost>sample string 9</requestHost> <secureApplicationPath>sample string 11</secureApplicationPath> <timezone>22</timezone> <gameId>6</gameId> <gameType>RegularGame</gameType> <Comments>sample string 5</Comments> <DeletedPeriods xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:int>1</d2p1:int> <d2p1:int>2</d2p1:int> <d2p1:int>3</d2p1:int> </DeletedPeriods> <gameResult>NotPlayed</gameResult> <periodDetails xmlns:d2p1="http://schemas.datacontract.org/2004/07/imLeagues.Internal.API.VO.Output.Game"> <d2p1:GamePeriodDetailsVO> <d2p1:PeriodTimeLength>3</d2p1:PeriodTimeLength> <d2p1:PeriodType>NormalRace</d2p1:PeriodType> <d2p1:periodId>1</d2p1:periodId> <d2p1:periodNumber>2</d2p1:periodNumber> <d2p1:team1Score>1</d2p1:team1Score> <d2p1:team2Score>1</d2p1:team2Score> </d2p1:GamePeriodDetailsVO> <d2p1:GamePeriodDetailsVO> <d2p1:PeriodTimeLength>3</d2p1:PeriodTimeLength> <d2p1:PeriodType>NormalRace</d2p1:PeriodType> <d2p1:periodId>1</d2p1:periodId> <d2p1:periodNumber>2</d2p1:periodNumber> <d2p1:team1Score>1</d2p1:team1Score> <d2p1:team2Score>1</d2p1:team2Score> </d2p1:GamePeriodDetailsVO> <d2p1:GamePeriodDetailsVO> <d2p1:PeriodTimeLength>3</d2p1:PeriodTimeLength> <d2p1:PeriodType>NormalRace</d2p1:PeriodType> <d2p1:periodId>1</d2p1:periodId> <d2p1:periodNumber>2</d2p1:periodNumber> <d2p1:team1Score>1</d2p1:team1Score> <d2p1:team2Score>1</d2p1:team2Score> </d2p1:GamePeriodDetailsVO> </periodDetails> <team1FD>None</team1FD> <team1Points>sample string 2</team1Points> <team1Score>sample string 1</team1Score> <team2FD>None</team2FD> <team2Points>sample string 4</team2Points> <team2Score>sample string 3</team2Score> </GameScoreInVO>
application/x-www-form-urlencoded
Sample:
Sample not available.