Submit a Challenge
Developer Home Page Remove a tennis court from your favorites. URL: http://www.globaltennisnetwork.com/api/submitChallenge.php Sample Request: http://www.globaltennisnetwork.com/api/submitChallenge.php?ladderID=1&challengerTeamID=14337&challengedTeamID=14342&&sessionID=23as321&devKey=YOUR-DEV-KEY
| Required Parameters |
| ladderID |
The tennis ladder id. |
| challengerTeamID |
The id of the team making the challenge. |
| challengedTeamID |
The id of the team being challenged. |
| message |
The message to the team being challenged. Send as a POST variable.
|
| sessionID |
The user's session id. |
| devKey |
The developer's api key. |
| Notes |
| status |
Will return 'success' or 'fail'. |
errorNum message |
An errorNum corresponds to the message. The possibilities are: 1 - Session id was not recognized. 2 - The user is not on the challenging team. 3 - This team cannot be challenged. |
Sample Response: <response> <status>success</status> <errorNum></errorNum> <message>The challenge has been submitted.</message> </response>
|