How can i do a request to streaming api without case sensitive?

php

#1

Hi, evryone,

First I hope you will forgive me my English, I’m still learning the language.

My question is that: ¿How can i make to the Streaming API a NO case sensitive request?
I’m developing a little app and i can’t make a good request because if i enter “London” in my request, only apears the messages where have “London”, i want to appears “london”, “LONDON”… and all odds.

Thanks for your help.


#2

Hello there, your English is perfectly understandable!

Please post a sample of how you call the Streaming API, particularly which method and parameters you send along. Do not post your OAuth consumer key and other sensitive data, however.

More info: https://dev.twitter.com/streaming/overview/request-parameters#track


#3

Oh, yes, I can.

I do that:

$url = 'https://stream.twitter.com/1.1/statuses/filter.json';
$requestMethod = 'POST';

$postfields = array(
	'track' => 'fun'
);

$twitter = new TwitterAPIExchange($settings);
echo $twitter->buildOauth($url, $requestMethod)
	->setPostfields($postfields)
	->performRequest();