Skip to content

nobodyiscertain/sinatra-twitter-fetcher-api-v1.1

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sample Sinatra App for Twitter API v1.1 Calls

Read more about this here: Them Blogs

Twitter's new API got ya down? Requests coming back as 410? Gone gone gone.

Fork. Bundle. Update. Done.

This is good to push up to Heroku once you update you're credentials.

Restrict Access

I would recommend restricting access to the app so your rate limits aren't compromised. For example: Check the request referrer.

if request.referrer == "http://example.com/blog/"
  jsonp @@twitter_client.home_timeline.map(&:attrs)
else
  status 401
end

About

A simple Sinatra app to make authenticated Twitter API calls

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages