GameCenter Web Api

<back to all web services

GetSeasons

Gets the requested season information.

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/GetSeasons HTTP/1.1 
Host: api.digitalscout.com 
Content-Type: application/xml
Content-Length: length

<GetSeasons xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/GameCenter.Api.Models">
  <SeasonIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:long>0</d2p1:long>
  </SeasonIds>
</GetSeasons>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<GetSeasonsResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/GameCenter.Api.Models">
  <Seasons xmlns:d2p1="http://schemas.datacontract.org/2004/07/GameCenter.Data.Models">
    <d2p1:Season>
      <d2p1:Created_On>2018-04-27T00:48:21.5164502Z</d2p1:Created_On>
      <d2p1:Deleted_By>0</d2p1:Deleted_By>
      <d2p1:Deleted_On>0001-01-01T00:00:00</d2p1:Deleted_On>
      <d2p1:Id>0</d2p1:Id>
      <d2p1:Updated_By>0</d2p1:Updated_By>
      <d2p1:Updated_On>2018-04-27T00:48:21.5164502Z</d2p1:Updated_On>
      <d2p1:IsVisibleToPublic>false</d2p1:IsVisibleToPublic>
      <d2p1:Slug>String</d2p1:Slug>
      <d2p1:UnityKey>String</d2p1:UnityKey>
      <d2p1:ConferenceDivisionId>0</d2p1:ConferenceDivisionId>
      <d2p1:ConferenceId>0</d2p1:ConferenceId>
      <d2p1:CreatorGuid>00000000-0000-0000-0000-000000000000</d2p1:CreatorGuid>
      <d2p1:DeletedSeasons i:nil="true" />
      <d2p1:Description>String</d2p1:Description>
      <d2p1:Name>String</d2p1:Name>
      <d2p1:ReplacementSeason>
        <d2p1:Created_On>2018-04-27T00:48:21.5164502Z</d2p1:Created_On>
        <d2p1:Deleted_By>0</d2p1:Deleted_By>
        <d2p1:Deleted_On>0001-01-01T00:00:00</d2p1:Deleted_On>
        <d2p1:Id>0</d2p1:Id>
        <d2p1:Updated_By>0</d2p1:Updated_By>
        <d2p1:Updated_On>2018-04-27T00:48:21.5164502Z</d2p1:Updated_On>
        <d2p1:IsVisibleToPublic>false</d2p1:IsVisibleToPublic>
        <d2p1:Slug>String</d2p1:Slug>
        <d2p1:UnityKey>String</d2p1:UnityKey>
        <d2p1:ConferenceDivisionId>0</d2p1:ConferenceDivisionId>
        <d2p1:ConferenceId>0</d2p1:ConferenceId>
        <d2p1:CreatorGuid>00000000-0000-0000-0000-000000000000</d2p1:CreatorGuid>
        <d2p1:DeletedSeasons i:nil="true" />
        <d2p1:Description>String</d2p1:Description>
        <d2p1:Name>String</d2p1:Name>
        <d2p1:ReplacementSeason>
          <d2p1:Created_On>2018-04-27T00:48:21.5164502Z</d2p1:Created_On>
          <d2p1:Deleted_By>0</d2p1:Deleted_By>
          <d2p1:Deleted_On>0001-01-01T00:00:00</d2p1:Deleted_On>
          <d2p1:Id>0</d2p1:Id>
          <d2p1:Updated_By>0</d2p1:Updated_By>
          <d2p1:Updated_On>2018-04-27T00:48:21.5164502Z</d2p1:Updated_On>
          <d2p1:IsVisibleToPublic>false</d2p1:IsVisibleToPublic>
          <d2p1:Slug>String</d2p1:Slug>
          <d2p1:UnityKey>String</d2p1:UnityKey>
          <d2p1:ConferenceDivisionId>0</d2p1:ConferenceDivisionId>
          <d2p1:ConferenceId>0</d2p1:ConferenceId>
          <d2p1:CreatorGuid>00000000-0000-0000-0000-000000000000</d2p1:CreatorGuid>
          <d2p1:DeletedSeasons i:nil="true" />
          <d2p1:Description>String</d2p1:Description>
          <d2p1:Name>String</d2p1:Name>
          <d2p1:ReplacementSeason i:nil="true" />
          <d2p1:ReplacementSeasonId>0</d2p1:ReplacementSeasonId>
          <d2p1:TeamId>0</d2p1:TeamId>
          <d2p1:UniversalSeasons i:nil="true" />
          <d2p1:Year>0</d2p1:Year>
        </d2p1:ReplacementSeason>
        <d2p1:ReplacementSeasonId>0</d2p1:ReplacementSeasonId>
        <d2p1:TeamId>0</d2p1:TeamId>
        <d2p1:UniversalSeasons i:nil="true" />
        <d2p1:Year>0</d2p1:Year>
      </d2p1:ReplacementSeason>
      <d2p1:ReplacementSeasonId>0</d2p1:ReplacementSeasonId>
      <d2p1:TeamId>0</d2p1:TeamId>
      <d2p1:UniversalSeasons i:nil="true" />
      <d2p1:Year>0</d2p1:Year>
    </d2p1:Season>
  </Seasons>
</GetSeasonsResponse>