No Subscription to this function
GET /tennis/get_tours
Returns all tours and their tour_seasons you are subscribed to
Request URL
https://dsg-api.com/clients/{client_name}/tennis/get_tours?client={client_name}&authkey={client_authkey}
Parameters
authkey
string Required
client authentification key
client
string Required
unique client ID
ftype
string
changes feed type from XML to json (ftype=json)
lang
string
two-character language code, defaults to 'en'
Nodes
method
details about the API function
method_id
unique ID of method.
name
name of method.
tour
details about a tour
gender
gender of the tour
name
name of the particular tour
tour_id
unique tour identifier
tour_season
details about a tour season
title
title of the particular tour season
tour_season_id
unique identifier of a tour season
Response Headers
200
Success
401
Unauthorized
429
Rate limit exceeded
Code Samples
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://dsg-api.com/clients/{client_name}/tennis/get_tours?client={client_name}&authkey={client_authkey}");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_USERPWD, "User:Password");
$content = curl_exec($ch);
curl_close($ch);
?>
curl GET -u "User:Password" "https://dsg-api.com/clients/{client_name}/tennis/get_tours?client={client_name}&authkey={client_authkey}"
response = requests.get("https://dsg-api.com/clients/{client_name}/tennis/get_tours?client={client_name}&authkey={client_authkey}", auth=("User", "Password"))
Response Example
200 Success
{"datasportsgroup":{"version":"1.0","sport":"tennis","lang":"en","method":{"method_id":"121","name":"get_tours"},"tour":[{"tour_id":"1","name":"ATP World Tour","gender":"male","tour_season":[{"tour_season_id":"19","title":"2019"},{"tour_season_id":"7","title":"2018"},{"tour_season_id":"1","title":"2017"}]},{"tour_id":"2","name":"WTA Tour","gender":"female","tour_season":[{"tour_season_id":"21","title":"2019"},{"tour_season_id":"8","title":"2018"},{"tour_season_id":"2","title":"2017"}]},{"tour_id":"4","name":"ATP Challenger","gender":"male","tour_season":[{"tour_season_id":"20","title":"2019"},{"tour_season_id":"14","title":"2018"},{"tour_season_id":"3","title":"2017"}]}]}}