The Draft Kings Players resource tracks all player salary information (begining on 12/9/14). You can query by player name, or ID if you already have it, and contest ID. Returned to you will be the salary information for a specific contest, as well as the average PPG at that time.
Integer. The ID for the player. Player IDs can be found from the players resource. Without a Player ID, all players will be returned.
Integer. The ID of the Draft Kings Contest. IDs can be found from the Draft Kings contest resource.
String. The first name of the player you are trying to find Draft King Salary data for.
String. The last name of the player you are trying to find Draft King Salary data for.
<?php $url = 'https://probasketballapi.com/draftkings/players'; $api_key = '__YOUR__API__KEY__'; $query_string = 'api_key='.$api_key.'&first_name=LeBron&last_name=James'; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_POSTFIELDS, $query_string); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); $result = curl_exec($ch); curl_close($ch); echo $result; ?>