Users/lookup returns error message: could not authenticate you. (code:32)


#1

Hi,
I have a problem to get users/lookup since I use v1.1.
My request URL is:
https://api.twitter.com/1.1/users/lookup.json?user_id=[user_id],[user_id],[user_id],[user_id]?id=[id]&oauth_consumer_key=[oauth_consumer_key]&oauth_nonce=[oauth_nonce]&oauth_signature_method=HMAC-SHA1&oauth_timestamp=1371763066&oauth_token=[oauth_token]&oauth_version=1.0

I had no issues with this request on v1.0

Can anyone help me please?


#2

You and I have the same problem, Can anyone help me please?
base string

String bss;
bss = “POST” + “&”+ URLEncoder.encode(“https://api.twitter.com/1.1/statuses/update.json”, “utf8”) + “&”;
String bsss =“oauth_consumer_key=” + getTwAppid() +
"&oauth_nonce="+ set_nonce +
"&oauth_signature_method="+ “HMAC-SHA1” +
"&oauth_timestamp="+ oauth_timestamp +
"&oauth_token="+ “1669812324-tMJUZ0w5JTv2ZggLrx5pP10Dzd5oPJOTg9vwJHL” +
"&oauth_version=" + 1.0+
"&status="+URLEncoder.encode(“1234”,“UTF-8”);
bsss = HttpUtil.encodeURIComponent(bsss);

I can be get oauth_signature and oauth tool to the same result can be, so it should be no problem oauth_signature

date

params.put(“oauth_consumer_key”, getTwAppid());
params.put(“oauth_nonce”,set_nonce);
params.put(“oauth_signature”, URLEncoder.encode(oauth_signature, “UTF-8”));
params.put(“oauth_token”, “1669812324tMJUZ0w5JTv2ZggLrx5pP10Dzd5oPJOTg9vwJHL”);
params.put(“oauth_signature_method”, “HMAC-SHA1”);
params.put(“oauth_timestamp”, oauth_timestamp);
params.put(“oauth_consumer secret”, getTwAppkey());
params.put(“oauth_version”, “1.0”);