Skip to content

mobileproto/twitterproto

Folders and files

NameName
Last commit message
Last commit date

Latest commit

067dde6 · Sep 29, 2013

History

32 Commits
Feb 16, 2013
Sep 26, 2013
Feb 16, 2013
Sep 26, 2013
Feb 16, 2013
Sep 26, 2013
Sep 29, 2013
Feb 17, 2013

Repository files navigation

twitterproto

API

Tweeting

Retrieve, post, and search tweets.

# GET /tweets
Get all tweets, ever! Returns:

{
  "tweets": [
    {
      "status": "Everything happens so much",
      "datetime": "2013-09-03T00:00:00",
      "username": "horse_ebooks" 
    }
    ...
  ]
}

# POST /:username/tweets
Post a new tweet as a user. Your status should be <= 140 characters! Submit a payload:

{
  "status": "...text..."
}

# GET /:username/tweets
Get all the tweets for a user. Returns:

{
  "tweets": [
    {
      "status": "Everything happens so much",
      "datetime": "2013-09-03T00:00:00",
      "username": "horse_ebooks" 
    }
    ...
  ]
}

# GET /tweets?q=:pattern
Search for all tweets that include :pattern. See /tweets.

# GET /:username/tweets?q=:pattern
Search for all tweets from a user that include :pattern. See /:username/tweets.

Follows

Connect people, see who follows whom, etc.

# GET /:username/followers
See who follows this user. Returns:

{
  "followers": [
    "horse_ebooks",
    "reyner",
    "renyer"
  ]
}

# GET /:username/following
See who this user is following. Returns:

{
  "following": [
    "horse_ebooks",
    "reyner",
    "renyer"
  ]
}

# POST /:username/follow
Make someone follow another person. Submit a payload:

{
  "username": "horse_ebooks"
}

License

MIT

Releases

No releases published

Packages

No packages published