Alexa Twitter OAuth account linking example
This repo contains a simple web app for account linking a twitter user with an alexa skill. live at: https://alexa-twitter-airport-info.herokuapp.com/
Skill Configuration
- Upload the skill code contained in the
skilldirectory to a new AWS Lambda instance. For instructions on how to set up a Lambda instance, refer to : https://www.bignerdranch.com/blog/developing-alexa-skills-locally-with-nodejs-deploying-your-skill-to-staging/ - Set up a new skill instance for the skill at https://developer.amazon.com/edw/home.html#/skills/list called 'Tweeter'. Refer to the Readme in the
/skilldirectory for details. - On the
configurationpage, select "Yes" for Account Linking. - Enter https://localhost:3000/oauth/request_token for Authorization URL.
- Take note of the
vendorIdvalue under "Redirect URL". Copy this value, and update the VENDOR_ID attribute in the .env.example file
Server Setup
- Register a new application with Twitter. You will need to register a twitter developer account to do this.
- Copy the consumer key and consumer secret values, and update the respective values in .env.example.
- Copy .env.example to .env
- The example uses
ruby 2.3.0andbundler. Installruby 2.3.0and ensurebundleris installed. If it is not, rungem install bundler. - Within the server directory, run
bundle - within the server directory, run
thin start --ssl -p 3000