Submit Pick Team
Submit a list of winner team id for pick game type
Request URL
http://fanvictor.com/api/mobile/PickTeams/{api_key}/{user_id}
Request Method
POST
Request parameters
api_key
string
Subscription key which provides access to this API.
user_id
interger
User id of account from client site.
league_id
interger
The id of league
entry_number
interger
The number of entry user enter a contest, default 1.
winner
string
a json string of array
+For pickem game type
+For pickem game type
array( array( "fightID" => 12345, "winner_id" => 57 ), array( "fightID" => 45678, "winner_id" => 41 ) )+For picksquares game type
array( 'fightID' => '1_1,1_2,1_3,1_4' );
Sample Code
$params = array( 'league_id' => '{league_id}', 'entry_number' => '{entry_number}', 'winner' => '{winner}', ) $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "http://fanvictor.com/api/mobile/PickTeams/{api_key}/{user_id}"); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, urlencode(http_build_query($params))); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $output = curl_exec ($ch); curl_close ($ch);