Submit Pick Player
Submit a list of player for draft game type
Request URL
http://fanvictor.com/api/mobile/PickPlayers/{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.
player_id
string
a List of player id separated by commas. Example: 123456,456789,789123
Sample Code
$params = array( 'league_id' => '{league_id}', 'entry_number' => '{entry_number}', 'player_id' => '{player_id}', ) $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "http://fanvictor.com/api/mobile/PickPlayers/{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);