Bug#651944: Feedback on the (unreleased) package
I found another problem:
It seems that Squeeze's php is somehow compiled with built-in oauth support.
This conflicts with the (re-)definition of the class OAuthException in
library/OAuth1.php.
The whole thing just doesn't work, in that case. You can verify this by simply
calling the API http://yourBaseURL/api/account/verify_credentials
It should return 200 and a json object with your user data in case you are
logged in. Otherwise it's supposed to return 401.
Alas, with the above problem, it always return 200 (but no user object).
If I wrap the class OAuthException in library/OAuth1.php with '!class_exists'
like this:
if (!class_exists('OAuthException')) {
class OAuthException extends Exception {
// pass
}
}
it works for me.
Thanks,
Carsten
Reply to: