View Single Post
Old 10-11-2013, 07:47 AM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,431
Karma: 27757438
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
recipes can run in contexts where no GUI is available, therefore you cannot rely on being able to interact with the user while a recipe is running.

As I see it, you have two options

1) get the user to input the OAuth token in the username or password fields
2) get the user to input their OAuth providers credentials in the suername and password fields and then add code to the recipe to do the authentication

1) is easy for you hard for the user 2) is hard for you easy for the user.
kovidgoyal is offline   Reply With Quote