|Matthew Faltys 1bdde59a82 Add error recovery on twitter API throttle||2 years ago|
|deps||2 years ago|
|fthbitnuke||2 years ago|
|fthimgur||2 years ago|
|fthlogger||2 years ago|
|fthtwitter||2 years ago|
|.drone.yml||2 years ago|
|.gitignore||2 years ago|
|Makefile||2 years ago|
|fth.go||2 years ago|
|readme.md||2 years ago|
fth.io is an API designed to be consumable. This API will return the top list of trends from twitter and cross reference with an image from imgur. Our developers are not front-end guys so the API is the main focus of this process. Below is usage of the service and how to build it yourself. This project is the backend only, with a simple webpage to invoke the application. The html file is found at deps/fth.html
fth.io is a consumable webservice. It can be consumed from the endpoint
fth.io. The REST service takes the following requests:
fth.io/hypethis will return a top list of hype with their respective image links.
fth.io/trendthis will return a top list of trends only.
fth.io/imagethis will return a top list of image links to top trends.
fth.io/helpthis will return a help message of usage.
fth.io will also return a special header
X-hype that is set to the number of hype returned. This is usefull if the invoking application is
dynamic and needs to know the amount of hype to format correctly. The number of hype returned by default is 10, but can be set to any number <= 50
go get github.com/gorilla/mux
go get github.com/UNO-ISQA-4380/group-5-project
go get github.com/ChimeraCoder/anaconda
go get bitbucket.org/liamstask/go-imgur/imgur
auth. Details on this can be found below
makewill build a dynamically compiled go binary
make statwill build a statically compiled go binary
make runwill run the go app for testing/debugging
make installwill install the app to /usr/bin
make cleanwill clean any binaries
Credentials go in
Twitter: to use the twitter api you must provide credentials in the following format: