Method: ScribdFu.scribd_user
- Defined in:
- lib/scribd_fu.rb
.scribd_user ⇒ Object
Login, store, and return a handle to the Scribd user account
55 56 57 58 59 60 61 62 63 64 |
# File 'lib/scribd_fu.rb', line 55 def scribd_user begin # Ensure we can login to Scribd, and get a handle on the account Scribd::API.instance.key = config[:key] Scribd::API.instance.secret = config[:secret] @scribd_user = Scribd::User.login(config[:user], config[:password]) rescue raise ScribdFuError, "Your Scribd credentials are incorrect" end end |