JSON - HTTP request failed! HTTP/1.1 403 Forbidden

520 views
Skip to first unread message

Martin Nenning

unread,
May 17, 2016, 4:23:32 AM5/17/16
to Songkick API
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 16

If 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

Sabrina Leandro

unread,
May 23, 2016, 5:07:12 AM5/23/16
to songki...@googlegroups.com
Hi Martin

Sorry, I'm not sure what this could be... maybe someone else can help?

There's the Songkick WordPress plugin which can show past dates, maybe that works?
https://wordpress.org/extend/plugins/songkick-concerts-and-festivals/


--
You received this message because you are subscribed to the Google Groups "Songkick API" group.
To unsubscribe from this group and stop receiving emails from it, send an email to songkick-api...@googlegroups.com.
To post to this group, send email to songki...@googlegroups.com.
Visit this group at https://groups.google.com/group/songkick-api.
For more options, visit https://groups.google.com/d/optout.



--
Sabrina Leandro  |  VP of Technology
Reply all
Reply to author
Forward
0 new messages