Add/Update custom team
Add/Update custom team
Request URL
http://fanvictor.com/api/mobile/CustomTeam/{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 team
nickname
string
Nickname of team
Sample Code
$params = array(
'sport_id' => '{sport_id}',
'name' => '{name}',
'nickname' => '{nickname}',
)
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "http://fanvictor.com/api/mobile/CustomTeam/{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);