GameCenter Web Api

<back to all web services

GetMyTeams

Get all teams for which the authenticated user has manager rights. May filter by Sport and/or SeasonId. API versions explicitly requested that are less than 1.2 will return a denormalized Season, instead of a Team with Seasons.

The following routes are available for this service:
GET/user/teams
Parameters:
NameParameterData TypeRequiredDescription
ModifiedAfterpathstringNoOptional, but HIGHLY recommended; must be in UTC or included an appropriate time zone offset; format: YYYY-MM-DDTHH:mm:ss+ZZ
CountpathstringNodeprecated in favor of PageSize; how many results to return per page
PagepathstringNoone-based page, based on how big each page is (via PageSize)
PageSizepathstringNohow many results to return per page; may be limited if too many are requested—ensure subsequent pages never request a bigger PageSize than is returned in a previous page (unless this is the last or after the last page, in other words, zero results were returned) to ensure results are not accidentally skipped
OffsetpathstringNodeprecated in favor of Page; how many results to skip

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

HTTP + CSV

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

POST /csv/reply/GetMyTeams HTTP/1.1 
Host: api.digitalscout.com 
Content-Type: text/csv
Content-Length: length

SeasonId,Sport,ModifiedAfter,Count,Page,PageSize,Offset,AuthToken,Version
0,Football,String,0,0,0,0,String,String

HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

CreatedOn,CreatorGuid,DeletedOn,Gender,IsMyTeam,Level,Logo,SchoolId,SchoolMascot,SchoolName,Seasons,Sport,TeamAcronym,TeamId,TeamName,TeamType,UpdatedOn
"""0001-01-01 00:00:00 +00""",00000000-0000-0000-0000-000000000000,"""0001-01-01 00:00:00 +00""",Male,0,Freshman,String,0,String,String,"[{DeletedOn:""0001-01-01 00:00:00 +00"",SeasonActiveEndDTTM:""0001-01-01 00:00:00 +00"",SeasonActiveStartDTTM:""0001-01-01 00:00:00 +00"",SeasonEndDTTM:""0001-01-01 00:00:00 +00"",SeasonName:String,SeasonStartDTTM:""0001-01-01 00:00:00 +00"",SeasonYear:0,TeamSeasonId:0}]",Football,String,0,String,School,"""0001-01-01 00:00:00 +00"""