You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Doing what you are doing will initialize the array with an empty consumer key, secret, user token and secret. By default request will always attempt to authenticate. If you don't want to authenticate you need to modify the call to request like this:
$twitter->request("GET", $twitter->url("1/help/test"), array(), false);
The following code fails with {"request":"/1/help/test.json","error":"Could not authenticate with OAuth."}:
require "./tmhOAuth.php";
$twitter = new tmhOAuth(array());
$twitter->request("GET", $twitter->url("1/help/test"));
print $twitter->response["response"];
reproducer: https://gist.github.com/854361
The text was updated successfully, but these errors were encountered: