No Subscription to this function
GET /golf/get_calendar
Returns all tournaments of one year
Request URL
https://dsg-api.com/clients/{client_name}/golf/get_calendar?ts={tour_season_id}&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'
ts
int Required
unique identifier for a whole season of the particular tour
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
tournament
Details about tournament
area_id
unique identifier for area.
area_name
contains the area name.
competition_id
unique identifier for competition
competition_title
general name of the competition (without sponsor names)
course
course name for this tournament
course_city
city where the course is located
course_id
unique identifier for the course
end_date
End date of tournament, format 'yyyy-mm-dd'.
fedex_cup
determines if the tournament was part of fedexcup or not (values 'yes' or 'no')
fedex_cup_point_purse
value of fedexcup points to be awarded in total for the tournament
fedex_cup_win_points
value of fedexcup points to be awarded for the tournament winner
gender
determines the gender of the tournament (male or female)
last_updated
When record was last updated. Format YYYY-MM-DD HH:MM:SS in CET timezone.
logo
full path URL of logo for particular tournament
official_tournament
determines if the tournament was an officially sanctioned one. (value 'yes' or 'no'
prize_pool
prize pool for this tournament
prize_pool_currency
currency of the prize pool for this tournament
start_date
Start date of tournament, format 'yyyy-mm-dd'.
status
status of the tournament ('Schedule', 'Postponed', 'Cancelled', 'Live', 'Finished')
tournament_format
specific format for this tournament ('match', 'stroke', 'team' or 'stableford')
tournament_id
unique identifier for a tournament.
tournament_name
tournament name during this season
tournament_title
title of the particular tournament
winner_name
common name of the tournament winner
winner_nationality_area_id
unique identifier for the nationality area_id of the tournament winner
winner_people_id
unique identifier for the winner of the tournament
winner_share
winners share of the prize pool
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}/golf/get_calendar?ts={tour_season_id}&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}/golf/get_calendar?ts={tour_season_id}&client={client_name}&authkey={client_authkey}"
response = requests.get("https://dsg-api.com/clients/{client_name}/golf/get_calendar?ts={tour_season_id}&client={client_name}&authkey={client_authkey}", auth=("User", "Password"))
Response Example
200 Success