Hello, I’m using the tmhOauth library for authenticated requests and when I use the API 1.1
I receve this “message”:“Could not authenticate you”,“code”:32. I tried different type of requests, but without results.
If I use the API 1.0 all goes good. I had googled around but I’ve found anything specific about my problem.
Someone had the same issue, or some solutions?
Here an example:
$oAuth = new tmhOAuth(array("consumer_key" =>$consumerKey,
"consumer_secret"=>$consumerSecret,
"user_token" => $accessToken,
"user_token_secret" =>$accessTokenSecret,
'curl_ssl_verifypeer' => false));
$socialid = an id;
$url ="https://api.twitter.com/1.1/users/lookup.json";
$parameters = array('user_id' => $socialId, 'include_entities' => true);
$oAuth->request('GET', $url, $parameters);
$code = $oAuth->response['code'];
if ( $code == 200)
echo $oAuth->response['response'];
else{
echo "Request turn bad: Error ".$code;
echo var_dump($oAuth->response['error'])."</br>";
echo var_dump($oAuth->response['raw'])."</br>";
}