Giter Site home page Giter Site logo

will3942 / fsq2twitter Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 124 KB

Ruby application to update a user's Twitter Profile Location to their latest Foursquare checkin in realtime.

Home Page: https://fsq2twitter.definedcode.com/

License: Other

Ruby 100.00%

fsq2twitter's Introduction

Foursquare2Twitter

Ruby application to update a user's Twitter Profile Location to their latest Foursquare checkin in realtime.

Dependencies

  1. screen
  2. ruby
  3. sinatra (gem)
  4. openssl
  5. webrick (gem)
  6. json (gem)
  7. oauth (gem)
  8. RestClient (gem)
  9. nginx (or apache but config not included)

Installation

1.Clone files

$ git clone https://github.com/will3942/fsq2twitter.git  
$ cd fsq2twitter 

2.Generate self-signed SSL certificates or install other ones. To generate follow the article here. Copy these into the "ssl" folder in the "fsq2twitter" folder.

3.Edit the nginx config file with your domain name and ssl certificate locations

$ sudo mv nginx-f2t-conf /etc/nginx/sites-enabled/  
$ sudo nano /etc/nginx/sites-enabled/nginx-f2t-conf  
$ sudo service nginx reload  

4.Edit the fsq2twitter app file with your information. Generate the oauth keys and access tokens at https://foursquare.com/developers/ and https://dev.twitter.com/ . For twitter make sure "read and write" access is enabled for the access token.

5.Launch the script and keep it running in the background.

$ screen -S fsq2twitter  
$ ruby app.rb  

6.Done!

Copyright

All code in this script is Copyright Will Evans 2013. Contact me:
Twitter
Email
App.net

LICENSE

Licensed under the Apache License, Version 2.0, detailed in the LICENSE file.

fsq2twitter's People

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.