Can't get boxscore using API
Issue No. 142
Trying to get boxscore for MLB game. Building off of PHP example (https://erikberg.com/api/examples/php). I changed $method to equal 'boxscore' and $parameters to equal array('event_id' => '20130710-new-york-mets-at-san-francisco-giants'). I get the following errors:
Warning: fopen() [function.fopen]: HTTP request failed! HTTP/1.1 404 Not Found in /home/golddave/public_html/mostlymets/wp-content/ticketnetwork/test2.php on line 143
Warning: fopen(compress.zlib://https://erikberg.com/boxscore.json?event_id=20130710-new-york-mets-at-san-francisco-giants) [function.fopen]: failed to open stream: operation failed in /home/golddave/public_html/mostlymets/wp-content/ticketnetwork/test2.php on line 143
I've played around with my code to try to figure out why it's not working but haven't been able to figure it out. What am I doing wrong?
Look at the documentation and example request for MLB Box Score. <a href="/api#boxscore">/api#boxscore</a>
Your script is creating a URL like:
And it needs to create a URL like:
Please don't file bug reports for support requests. Would rather direct email instead.