GameCenter Web Api

<back to all web services

UpdatePartnerGameScores

Updates the scores for a game. GameId, PublisherId, and the Scores array are required, the other fields are optional but encouraged. Enum values: ClockStatus: GameNotStarted, Running, PeriodEnded, Timeout, InjuryTimeout, OfficialTimeout, GameEnded, Delayed, Postponed; for Period and CurrentPeriod: 1-4, OT continues with periods 5-8; if halves, use 1-2 and 3-6 for OT; GameStatus: Scheduled, Delayed, Postponed, InProgress, Cancelled, Complete; PeriodSecondsLeft: an example would be a value of 124 to indicate 2:04 left in the current period, 0 if the period is over

The following routes are available for this service:
PUT/partner/games/{GameId}/scores

To override the Content-type in your clients HTTP Accept Header, append the .xml suffix or ?format=xml

HTTP + XML

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /xml/reply/UpdatePartnerGameScores HTTP/1.1 
Host: api.digitalscout.com 
Content-Type: application/xml
Content-Length: length

<PartnerGameService.UpdatePartnerGameScores xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/GameCenter.Api.Services.Partners">
  <ClockStatus>GameNotStarted</ClockStatus>
  <CurrentPeriod>0</CurrentPeriod>
  <GameId>String</GameId>
  <GameStatus>Scheduled</GameStatus>
  <PeriodSecondsLeft>0</PeriodSecondsLeft>
  <PublisherId>String</PublisherId>
  <Scores>
    <PartnerGameService.PartnerGamePeriodScore>
      <IsFinal>false</IsFinal>
      <Period>0</Period>
      <SchoolId>String</SchoolId>
      <Score>0</Score>
    </PartnerGameService.PartnerGamePeriodScore>
  </Scores>
</PartnerGameService.UpdatePartnerGameScores>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<PartnerGameService.PartnerGame xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/GameCenter.Api.Services.Partners">
  <ClockStatus>GameNotStarted</ClockStatus>
  <CurrentPeriod>0</CurrentPeriod>
  <GameStatus>Scheduled</GameStatus>
  <GameType>Preseason</GameType>
  <HomeSchoolId>String</HomeSchoolId>
  <HtmlUrl>String</HtmlUrl>
  <Id>String</Id>
  <Participants>
    <PartnerGameService.PartnerGameParticipant>
      <Gender>Male</Gender>
      <Level>Freshman</Level>
      <SchoolId>String</SchoolId>
    </PartnerGameService.PartnerGameParticipant>
  </Participants>
  <PeriodSecondsLeft>0</PeriodSecondsLeft>
  <Scores>
    <PartnerGameService.PartnerGamePeriodScore>
      <IsFinal>false</IsFinal>
      <Period>0</Period>
      <SchoolId>String</SchoolId>
      <Score>0</Score>
    </PartnerGameService.PartnerGamePeriodScore>
  </Scores>
  <Sport>Football</Sport>
  <StartTime>0001-01-01T00:00:00</StartTime>
</PartnerGameService.PartnerGame>