API Wrappers API Wrappers: PHP

The following wrapper function can communicate with the API using cURL. Include this function in any page to establish a connection with
pnet_api_req($data) {
$ch curl_init('');
is_array($data)) { $data http_build_query($data); }
return curl_exec($ch);

The next step is to send data to the function. Here is an example method call:
= [
$arr = @json_decode(pnet_api_req($data),true); //set to true for an array or false for an object
if(is_array($arr)) { print_r($arr); } else { echo '<p>Unable to fetch API</p>'; }

This should provide you the infrastructure to communicate with the API using any method, including the writeable methods. is a non-commercial project run by Phish fans and for Phish fans under the auspices of the all-volunteer, non-profit Mockingbird Foundation.

This project serves to compile, preserve, and protect encyclopedic information about Phish and their music.

Credits | Terms Of Use | Legal

© 1990-2018  The Mockingbird Foundation, Inc. | Hosted by End Point Corporation