About twitter and real time data

This is a draft about my next task, periodically ask Twitter with twitter4j api relevant things, for example, my timeline and trending topics to begin with. I am going to create a web service and then integrate that functionality with a topic rabbitmq  using  spring integration and a websocket managed by a controller, so I can display the relevant info in real time in a browser.

Stay tuned!

update 21 May 2014

Twitter have a very restricted policy about using its api, an usual matter, but i consider it very restricted because i am getting some weird exceptions. A few days before i did not get any of this, but now i think i am banned! grrrrr

 

Failed to delete status: 401:Authentication credentials (https://dev.twitter.com/pages/auth) were missing or incorrect. Ensure that you have set valid consumer key/secret, access token/secret, and the system clock is in sync.

message – Could not authenticate you

code – 32

 

401:Authentication credentials (https://dev.twitter.com/pages/auth) were missing or incorrect. Ensure that you have set valid consumer key/secret, access token/secret, and the system clock is in sync.

message – Could not authenticate you

code – 32

 

Relevant discussions can be found on the Internet at:

http://www.google.co.jp/search?q=c8fb4e9c or

http://www.google.co.jp/search?q=7bffc794

TwitterException{exceptionCode=[c8fb4e9c-7bffc794], statusCode=401, message=Could not authenticate you, code=32, retryAfter=-1, rateLimitStatus=null, version=3.0.6-SNAPSHOT}

at twitter4j.HttpClientImpl.request(HttpClientImpl.java:157)

at twitter4j.HttpClientWrapper.request(HttpClientWrapper.java:58)

at twitter4j.HttpClientWrapper.get(HttpClientWrapper.java:86)

at twitter4j.TwitterImpl.get(TwitterImpl.java:2001)

at twitter4j.TwitterImpl.showUser(TwitterImpl.java:886)

at twitter4j.examples.user.ShowUser.main(ShowUser.java:42)

 

Esto es un borrador acerca de mi próxima tarea, preguntar periódicamente a Twitter con la api twitter4j cosas relevantes, para empezar, mi timeline y los trending topics, para empezar. La forma de preguntar sera creando un servicio web con esa funcionalidad y luego integrarlo con un topic rabbitmq mediante spring integration a un controlador gestionado por websockets, así podré mostrar la info relevante en tiempo real en un navegador.

 

Responder

Introduce tus datos o haz clic en un icono para iniciar sesión:

Logo de WordPress.com

Estás comentando usando tu cuenta de WordPress.com. Cerrar sesión / Cambiar )

Imagen de Twitter

Estás comentando usando tu cuenta de Twitter. Cerrar sesión / Cambiar )

Foto de Facebook

Estás comentando usando tu cuenta de Facebook. Cerrar sesión / Cambiar )

Google+ photo

Estás comentando usando tu cuenta de Google+. Cerrar sesión / Cambiar )

Conectando a %s