-
Notifications
You must be signed in to change notification settings - Fork 0
Endpoints
Ricky edited this page Mar 16, 2016
·
9 revisions
The #feels API has three public endpoints:
- Positive trend: get "http://hashtagfeels-92395643.us-east-1.elb.amazonaws.com/positive"
- Negative trend: get "http://hashtagfeels-92395643.us-east-1.elb.amazonaws.com/negative"
- All trends: get "http://hashtagfeels-92395643.us-east-1.elb.amazonaws.com/"
Each returns JSON data from the database. The database contains roughly 10 recent positive and negative trending topics.
The first two endpoints return one random trend object whose sentiment matches the endpoint's name, in the following structure:
{
"name": "",
"sentiment": "",
"id": "",
"created": ""
}
The third endpoint returns an array of trend objects in the same structure:
[
{
"name": "",
"sentiment": "",
"id": "",
"created": ""
},
...
]