Class: Ruboty::Handlers::VerifyAuthCode
- Inherits:
-
Base
- Object
- Base
- Ruboty::Handlers::VerifyAuthCode
- Defined in:
- lib/ruboty/handlers/ymcrawl.rb
Instance Method Summary collapse
Instance Method Details
#verify_auth_code(message) ⇒ Object
77 78 79 80 81 82 83 84 85 |
# File 'lib/ruboty/handlers/ymcrawl.rb', line 77 def verify_auth_code() auth_code = ([:auth_code] == nil) ? "-- please set auth_code --" : [:auth_code] uploader = CrawlManager.instance.get_crawl.get_uploader access_token = uploader.verify_auth_code(auth_code) Ruboty::YMCrawl::DataManager.instance.update_access_token(uploader.get_name, access_token) .reply("You added access token!") .reply("Try clawling again!") end |