Re: twitter-api and streaming calls

2014-06-23 Thread Kelsey G. I.
I submitted a pull request that fixes this issue in twitter-streaming-client: https://github.com/mccraigmccraig/twitter-streaming-client/pull/2 On Tuesday, May 6, 2014 8:18:31 PM UTC-7, Andrew Fitzgerald wrote: > > I had someone email me today asking for a code snippet of using the java > twitt

Re: twitter-api and streaming calls

2014-05-06 Thread Andrew Fitzgerald
I had someone email me today asking for a code snippet of using the java twitter api, so I'll repost it here. I'm fairly new to clojure so forgive me for the ugliness/lack of idiomatic code. It's a port of the java example code at https://github.com/twitter/hbc/blob/master/hbc-example/src/main/j

Re: twitter-api and streaming calls

2014-05-02 Thread Simon Katz
Thanks Andrew and Gary. You've saved me a lot of time! On Friday, 2 May 2014 02:43:51 UTC+1, Gary Trakhman wrote: > > Oh, nice, I was concerned about reconnections and backfill issues, if I > have to change anything substantial again I'll reimplement on top of the > java api that provides this

Re: twitter-api and streaming calls

2014-05-01 Thread Gary Trakhman
Oh, nice, I was concerned about reconnections and backfill issues, if I have to change anything substantial again I'll reimplement on top of the java api that provides this out of the box. On Thu, May 1, 2014 at 9:13 PM, Andrew Fitzgerald < andrewcfitzger...@gmail.com> wrote: > I had the same (v

Re: twitter-api and streaming calls

2014-05-01 Thread Andrew Fitzgerald
I had the same (very frustrating issue) recently. I ended up just using the official twitter API which is written in Java https://github.com/twitter/hbc On Thursday, May 1, 2014 6:59:04 PM UTC-4, Simon Katz wrote: > > Hi, > > I'm playing with twitter-api (https://github.com/adamwynne/twitter-api

Re: twitter-api and streaming calls

2014-05-01 Thread Gary Trakhman
I fixed this in my implementation about a week ago, have a look: Basically, JSON might be split across multiple chunks. You can assemble it back with a PipedReader/Writer and then use cheshire's lazy seq. https://github.com/gtrak/dashboard/blob/master/src/gtrak/dashboard/twitter.clj#L94 On Thu