Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
LTI App for Twitter
Ruby JavaScript CSS
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
app
bin
config
lib
spec
.gitignore
.rspec
.travis.yml
Gemfile
Gemfile.lock
MIT-LICENSE
README.markdown
Rakefile
inst_lti_twitter.gemspec

README.markdown

Twitter LTI Tool

Build Status Code Climate Gem Version

Embed a Twitter widget into your LMS with this LTI App.

Usage

This gem is a mountable Rails engine. To use this you will need to include the gem into a Rails application then mount the engine in the routes file. Example:

# Gemfile
gem "lti_twitter_engine"

# routes.rb
mount InstLtiTwitter::Engine, at: "/twitter_lti"

You will also need to create a new file in your config folder called inst_lti_twitter_config.yml. This will contain the credentials for using the Twitter API.

default: &default
  inst_lti_twitter_consumer_key:        INST_LTI_TWITTER_CONSUMER_KEY
  inst_lti_twitter_consumer_secret:     INST_LTI_TWITTER_CONSUMER_SECRET
  inst_lti_twitter_access_token:        INST_LTI_TWITTER_ACCESS_TOKEN
  inst_lti_twitter_access_token_secret: INST_LTI_TWITTER_ACCESS_TOKEN_SECRET

development:
  <<: *default

test:
  <<: *default

production:
  <<: *default

Once this is done, you should be able to go to /twitter_lti on your app and the LTI app will appear.

Something went wrong with that request. Please try again.