Skip to content

API Rest que explota la librería twitter4j, la cual genera un Stream de Tweets en base a unos criterios de búsqueda, máximo de seguidores y lenguajes de los tweets, los Tweets se guardan en una H2 Database configurada en memoria por lo tanto, el arranque de la aplicación puede saturar los servicios del hosting a no ser que se reinicialice la bús…

Notifications You must be signed in to change notification settings

Daviddg91/TwitterFilteredApi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TwitterFilterredApi

Api Rest links:

1)Config results Filtered Tweets: http://localhost:8080/Tweets/persistTweets?languageList=it,pr,fr&maxFollowers=500

  1. Get Filtered Tweets (refresh for see more streams filtered): http://localhost:8080/Tweets

  2. Validate Tweet by id: http://localhost:8080/Tweets/validarTweet/1 (id tweet in database)

  3. Get Valid Tweets: http://localhost:8080/Tweets/valids

  4. Get hashtags: http://localhost:8080/Tweets/hashtags?maxHashtags=10

Links for heroku:

1)Config results Filtered Tweets: https://twitter-filtered-stream.herokuapp.com/Tweets/persistTweets?languageList=pr,jp&maxFollowers=500

  1. Get Filtered Tweets(refresh for see more streams filtered): https://twitter-filtered-stream.herokuapp.com/Tweets

  2. Validate Tweet by id: https://twitter-filtered-stream.herokuapp.com/Tweets/validarTweet/1 (id tweet in database)

  3. Get Valid Tweets: https://twitter-filtered-stream.herokuapp.com/Tweets/valids

  4. Get hashtags: https://twitter-filtered-stream.herokuapp.com/Tweets/hashtags?maxHashtags=10

application.properties example,dont uploaded in gitignore

server.port = 8080

spring.datasource.url=jdbc:h2:mem:testdb&characterEncoding=UTF-8;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE

spring.datasource.driverClassName=org.h2.Driver

spring.jpa.database-platform=org.hibernate.dialect.H2Dialect

spring.jpa.properties.hibernate.hbm2ddl.charset=UTF-8

spring.jpa.properties.hibernate.hbm2ddl.auto=update

spring.jpa.hibernate.ddl-auto=update

ConsumerKey=

ConsumerSecret=

AccessToken=

AccessTokenSecret=

About

API Rest que explota la librería twitter4j, la cual genera un Stream de Tweets en base a unos criterios de búsqueda, máximo de seguidores y lenguajes de los tweets, los Tweets se guardan en una H2 Database configurada en memoria por lo tanto, el arranque de la aplicación puede saturar los servicios del hosting a no ser que se reinicialice la bús…

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages