Twitter API -- weird authentication problems

this is weird…

$tweetSearch = $TwitterConn->get('https://api.twitter.com/1.1/search/tweets.json?q='.$searchForThis.'&result_type=recent&count=100&include_entities=true&');

works fine…

$tweetSearch = $TwitterConn->get('https://api.twitter.com/1.1/search/tweets.json?q='.$searchForThis.'&result_type=recent&count=100&include_entities=true&[COLOR="#FF0000"]count=1[/COLOR]');

works fine…

$tweetSearch = $TwitterConn->get('https://api.twitter.com/1.1/search/tweets.json?q='.$searchForThis.'&result_type=recent&count=100&include_entities=true&[COLOR="#FF0000"]count=2[/COLOR]');

get authentication problems… essentially any count value above 1 gives me this auth error…

is this weird or what?

error I get:

{“errors”:[{“message”:“Could not authenticate you”,“code”:32}]}

I can’t possibly print all results… the resulting JSON is so long that when I put it in JSON Lint in FF the browser freaks out…

thank you…

Huh? your first example has &count=100
your second has &count=1
but your third has &count=100 and &count=2

Seems the second &count would overwrite the first, but perhaps it’s considered an invalid syntax and refuses to authenticate?

oh my gosh… I hadn’t seen the “count=100” in this url…

(I’m trying out about four different urls (two of them have been deprecated…) and hadn’t noticed this one had the “count=100” param in there… none of the others did…)

oh brother… it’s too late… I need to continue tomorrow…:wink:

thank you…