PHP Classes
elePHPant
Icontem

login with discogs not working

Recommend this page to a friend!

      PHP OAuth Library  >  PHP OAuth Library package blog  >  PHP OAuth Tutorial on...  >  All threads  >  login with discogs not working  >  (Un) Subscribe thread alerts  
Subject:login with discogs not working
Summary:login_with_discogs.php needs an extra line of code
Messages:2
Author:Leo de Keijzer
Date:2014-11-26 20:55:39
 

  1. login with discogs not working   Reply   Report abuse  
Leo de Keijzer - 2014-11-26 20:55:39
My discogs API script suddenly stopped working about a week ago.

You need to add the following line to login_with_discogs.php :

after "$client->server = 'Discogs';"
you should add:
$client->oauth_user_agent = 'YOUR_USER_AGENT';

After adding this line my script was working again.


  2. Re: login with discogs not working   Reply   Report abuse  
Manuel Lemos - 2014-11-26 22:21:02 - In reply to message 1 from Leo de Keijzer
Yes, it seems that when many people use the same HTTP client, Discogs does not process the HTTP requests.

I will add that line to the example script so users of Discogs API may figure the problem quickly.

Thanks for reporting.