spajus / hubot-example

Examples for "Automation and Monitoring with Hubot" book.
https://leanpub.com/automation-and-monitoring-with-hubot
29 stars 8 forks source link

OAuth #3

Open kewubenduben opened 10 years ago

kewubenduben commented 10 years ago

Can you provide a sample that shows usage of an OAuth script? Like this https://github.com/github/hubot-scripts/blob/master/src/scripts/oauth.coffee


By the way, bought your book. great thanks!

spajus commented 10 years ago

@kewubenduben I'll give it a shot, will post an update when it's done. Thanks for buying the book, I hope you enjoy it!

spajus commented 10 years ago

I'm not sure if it's because this script is 2 years old and is probably broken by now, but I couldn't manage to get it working. Tried with Twitter. Perhaps it would still work with other services. You have to set environmental variables with appropriate auth keys first. The list of those keys is here in the source: https://github.com/markomanninen/scribe-node/blob/master/src/widgets/OAuth.coffee#L33

kewubenduben commented 10 years ago

Cool. something like that is already helpful enough. Thanks