POST Event/GetSportByEventID

Gets the SportID by the EventID.

Request Information

URI Parameters

None.

Body Parameters

ApiGetSportByEventRequestFilter
NameDescriptionTypeAdditional information
eventID

Gets or sets the eventID

integer

None.

userID

Gets or sets the user identifier.

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "eventID": 1,
  "userID": 2
}

application/xml, text/xml

Sample:
<ApiGetSportByEventRequestFilter xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SyX.Online.API.Models">
  <userID>2</userID>
  <eventID>1</eventID>
</ApiGetSportByEventRequestFilter>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

ApiGetSportByEventResponse
NameDescriptionTypeAdditional information
ResponseObject

Gets or sets the response object.

integer

None.

ResponseType

Gets or sets the type of the response.

integer

None.

ResponseMessage

Gets or sets the response message.

string

None.

Response Formats

application/json, text/json

Sample:
{
  "ResponseObject": 1,
  "ResponseType": 2,
  "ResponseMessage": "sample string 3"
}

application/xml, text/xml

Sample:
<ApiGetSportByEventResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SyX.Online.API.Models">
  <ResponseMessage>sample string 3</ResponseMessage>
  <ResponseType>2</ResponseType>
  <ResponseObject>1</ResponseObject>
</ApiGetSportByEventResponse>