To make calls to the ProBasketball API, you must make a POST request to the specified URL. In this request you must pass along your API key, and that is it. You now have access to the API!
Of course you can pass along arguments other than just your API key, in fact, it is encouraged that you do so. It will help narrow down data that will be returned.
All responses will be in the JSON format.
To the right is an example of a POST request done to the Schedule resource in PHP.
<?php $url = 'https://probasketballapi.com/teams'; $api_key = '__YOUR__API__KEY__'; $query_string = 'api_key=' . $api_key . '&team_abbrv=BOS'; $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; ?>