Hi!
I'm trying to write a simple plugin in wordpress for my bandwebsite to show our last played shows.
I got the JSON data from my request when I put the URL with artists and my API key in the browser - that works.
But If I try to use my plugin with the JSON request I allways get this error message:
Warning:
file_get_contents(http://api.songkick.com/api/3.0/artists/xxx/gigography.json?apikey=xxx&order=desc):
failed to open stream: HTTP request failed! HTTP/1.1 403 Forbidden
in
/home/.sites/109/site852/web/wp-content/plugins/songkick/past_concerts.php
on line 13
Fatal error: Call to undefined function events_from_json() in
/home/.sites/109/site852/web/wp-content/plugins/songkick/past_concerts.php
on line 16If I test the php code with XAMPP the programm is working fine, but on the bandwebsiteserver I always get this error-message.
Anyone an idea whats going wrong?
thanks, Martin