Add/Update custom player position

Add/Update custom player position

Request URL

http://fanvictor.com/api/mobile/CustomPlayerPosition/{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.
sport_id
interger
The id of sport
name
string
Name of position
abbr
string
Abbriviation name of position
quantity
interger
Default number of player for playerdraft game type

Sample Code

$params = array(
     'sport_id' => '{sport_id}',
     'name' => '{name}',
     'abbr' => '{abbr}',
     'quantity' => '{quantity}',
)

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "http://fanvictor.com/api/mobile/CustomPlayerPosition/{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);