Skip to content

"TweetMe" Is a 3rd party framework for Tweeter communication

Notifications You must be signed in to change notification settings

Asafb26/TweetMe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TweetMe

"TweetMe" Is a 3rd party framework for Tweeter communication using REST architecture over Node.js

Usage:


text - post and list a text based tweet

get list of tweets by specific query:

http get: api/text/?q=some+query

post a new tweet:

http post: api/text
http body json: {"message": "YOUR_MESSAGE"}

weather - tweet the weather information in your location

post a new weather tweet:

http post: api/weather

photos - tweet a random photo from flickr API that filtered by specific subject

post a new weather tweet:

http post: api/photos
http body json: {"subject": "YOUR_SUBJECT"}

news - tweet a random news from google news that filtered by specific subject

post a new weather tweet:

http post: api/news
http body json: {"subject": "YOUR_SUBJECT"}

yoda - transform your sentence into a yoda style one (from RapidAPI collection)

post a new yoda tweet:

http post: api/yoda
http body json: {"message": "YOUR_MESSAGE"}

famous - tweet a random famous quote (from RapidAPI collection)

post a new famous tweet:

http post: api/famous
http body json: {"subject": "YOUR_SUBJECT"}
*subject should be movies or famous, otherwise you get quotes from any category.

Example (using curl for convience)

news:

$curl -H "Content-Type: application/json" -X POST -d "{\"subject\": \"RapidAPI\"}" http://tweetmeapi.herokuapp.com/api/news

alt text

weather:

$curl -X POST http://tweetmeapi.herokuapp.com/api/weather

alt text

photos:

$curl -H "Content-Type: application/json" -X POST -d "{\"subject\": \"earth\"}" http://tweetmeapi.herokuapp.com/api/photos

alt text

Unit Testing (using Mocha and Chai):

$npm test

alt text

About

"TweetMe" Is a 3rd party framework for Tweeter communication

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published