No Subscription to this function
GET /alpine_skiing/get_tours
Returns all tours and their tour_seasons you are subscribed to
Request URL
https://dsg-api.com/clients/{client_name}/alpine_skiing/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}/alpine_skiing/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}/alpine_skiing/get_tours?client={client_name}&authkey={client_authkey}"
response = requests.get("https://dsg-api.com/clients/{client_name}/alpine_skiing/get_tours?client={client_name}&authkey={client_authkey}", auth=("User", "Password"))
Response Example
200 Success
{"datasportsgroup":{"version":"1.0","sport":"alpine_skiing","lang":"en","method":{"method_id":"173","name":"get_tours"},"tour":{"tour_id":"6","name":"Alpine Skiing World Cup","gender":"both","tour_season":[{"tour_season_id":"17","title":"2019"},{"tour_season_id":"6","title":"2018"},{"tour_season_id":"11","title":"2017"},{"tour_season_id":"12","title":"2016"}]}}}