nodejs middleware to link alexa custom skill with twitter oauth using amazon alexa account linking service
pre-info: it's not possible to integrate twitter api with amazon alexa skill account linking service directly. the solution is adapting twitter & alexa API's by developing a middleware which integrates alexa skill user with twitter api. it moves requests access tokens, passes amazon's required parameters.
this is a simple nodejs + express middleware is configured to work on heroku.
- holds amazon's required parameters on session,
- performs standard oauth requests to obtain key & secret
- no database. returns token and secret in "TOKEN,SECRET" format to amazon alexa.
notes:
- do not forget to define env variables on heroku dashboard
alexa skill functions compatible with this middleware:
- nodejs: eercanayar/alexa-skill-linked-account-twitter-nodejs
- netcore10: eercanayar/alexa-skill-linked-account-twitter-dotnet-core
Visit wiki and learn more about Alexa Skill Development and read detailed section for this sample skill; Alexa-Skills-Kit-(ASK)-Development-Tutorial#step-3-exchange-calculator-skill-with-nodejs--alexa-sdk--account-linking-with-twitter
eercan @Accenture Istanbul