It works! Now I know how to put multiple parameters. Thanks very much!

Best,
epomqo

On Apr 24, 4:39 pm, John Kalucki <j...@twitter.com> wrote:
> The curl man page explains how to send multiple parameters. If you
> just put them in one file, curl runs then all together. You have to
> separate them with &, or have curl do it for you by specifying
> multiple -d @ pairs:
>
> adrift.local:/tmp> head foo bar
> ==> foo <==
> follow=1234
>
> ==> bar <==
> track=north
> adrift.local:/tmp> curl -v -x "" -d @foo -d @bar
> stream.twitter.com/1/statuses/filter.xml
>
> -John Kaluckihttp://twitter.com/jkalucki
> Infrastructure, Twitter Inc.
>
> On Sat, Apr 24, 2010 at 5:27 AM, epomqo <wenzi0...@gmail.com> wrote:
> > Dear Sirs,
>
> > Hello! My name is Xiaowen, I have been playing with Twitter for some
> > time and I am writing to ask a small question regarding Streaming
> > API :)
>
> > From the documentation I know we can use the command "curl -d
> > @locationshttp://stream.twitter.com/1/statuses/filter.json-
> > uAnyTwitterUser:Password" to filter geo-tagged tweets in a bounded box
> > area, we could also use similar method to follow tweets of specific
> > users. These are two parameters which can be implemented by statuses/
> > filter method. My question is, if I want to incorporate both of these
> > two parameters in one command, how to put them together? I have tried
> > something like
>
> > "curl -d @locations 
> > @followinghttp://stream.twitter.com/1/statuses/filter.json
> > -uAnyTwitterUser:Password"
>
> > but it doesn't work :(
>
> > Later I got response from Twitter support, suggesting that:
>
> > "One Streaming API connection can filter both geo-tagged tweets and
> > tweets from specific users. You may want to combine both of your
> > parameters into one file so that you do not need to reference two in
> > your command (for example @locandfollow instead of @locations
> > @following)."
>
> > But then what is the correct way to put the parameters in one file? I
> > tried simply put them together, like this:
>
> > locations=-122.75,36.8,-121.75,37.8;
> > follow=...,...,...
>
> > but still it doesn't work.
>
> > Many thanks for your advices!
>
> > --
> > Subscription 
> > settings:http://groups.google.com/group/twitter-development-talk/subscribe?hl=en

Reply via email to