Skip to content
This repository has been archived by the owner on Mar 30, 2019. It is now read-only.

Twitter API Application

Zeynep Işık edited this page May 12, 2018 · 14 revisions

We've created a small application to have acquaintance with API's. In this case, Twitter was our target and we made several tiny apps to demonstrate our work. Server can be reached from:

http://206.189.12.235/


Trends by Location (by Abdurrahman Dilmaç)

Description

  • Gathers trends information by place. Use WOEID (Where On Earth ID)

Input:

  • woeid: Woeid numbers for places can be found in this list.

Output:

  • Trends for given place.

Web interface: http://206.189.12.235/trends-by-place/woeid

Example Web interface call: http://206.189.12.235/trends-by-place/1

API call: http://206.189.12.235/api/trends-by-place/woeid

Example API call: http://206.189.12.235/api/trends-by-place/1


Find Users (by Ömer Kırbıyık)

Description

  • Based on your search query it founds most relevant 5 accounts for that search.
  • Then it fetches very last tweet of that 5 accounts.
  • Displays them together.

Input:

  • search-name: A search query to find users relevant to it. For instance, 'mark'.

Output:

  • 5 tweets which consist of last tweet of 5 accounts.

Web interface: http://206.189.12.235/find_users/search-name

Example Web interface: http://206.189.12.235/find_users/jack

API call: http://206.189.12.235/api/find_users/search-name

Example API call: http://206.189.12.235/api/find_users/jack


Retweet (by Atıf Emre Yüksel)

Description

  • Retweet the last tweet of the user whose username is specified in link.
  • If there is no user with specified username, return a response including the information about wrong input.
  • If the last tweet is retweeted before, return a response about that this tweet cannot be retweeted more than once.

Input:

  • username: A username string to retweet its last tweet. For example, 'ylecun'.

Output:

  • Retweet of the last tweet of user.

Web interface: http://206.189.12.235/retweet/username

Example Web interface: http://206.189.12.235/retweet/ylecun

API call: http://206.189.12.235/api/retweet/username

Example API call: http://206.189.12.235/api/retweet/ylecun


Find Followings List of a User (by Mert Aközcan)

Description

  • Finds users that the given user is following on Twitter
  • Lists these found users

Input:

  • screen_name: username of user whose followings list will be found
  • count: (optional) number of users wanted to be returned in the result list (default = 20)

Output:

  • List of users that the given user is following

Web interface: http://206.189.12.235/followings/screen_name?count=20

Example Web interface: http://206.189.12.235/followings/uskudarli?count=10

API call: http://206.189.12.235/api/followings/screen_name?count=20

Example API call: http://206.189.12.235/api/followings/uskudarli?count=10


Recent Favorites (by Fatih Maytalman)

Description

  • Finds user's recent favorited tweets Twitter and finds the retweet number of the tweet
  • Gives average number of retweets of the favorited tweets of the user

Input:

  • screen_name: username of user whose followings list will be found
  • count: (optional) number of users wanted to be returned in the result list (default = 20)

Output:

  • List of users that the given user is following

Web interface: http://206.189.12.235/recent_favorites/screen_name?count=20

Example Web interface: http://206.189.12.235/recent_favorites/uskudarli?count=20

API call: http://206.189.12.235/api/recent_favorites/screen_name?count=20

Example API call: http://206.189.12.235/api/recent_favorites/uskudarli?count=10


Followers (by Zeynep Işık)

Description

  • Finds input user's 10 followers

Input:

  • screen_name: username of user who is followed

Output:

  • List of 10 followers of the input user

Web interface: http://206.189.12.235/find_followers/screen_name

Example Web interface: http://206.189.12.235/find_followers/uskudarli

API call: http://206.189.12.235/api/find_followers/screen_name

Example API call: http://206.189.12.235/api/find_followers/uskudarli

Resources

Meeting Notes

Team Members

Researches

Templates

Clone this wiki locally