Class: Apify::Scheduler::Server
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Apify::Scheduler::Server
- Defined in:
- app/models/apify/scheduler/server.rb
Instance Method Summary collapse
Instance Method Details
#test_api_key ⇒ Object
6 7 8 9 10 |
# File 'app/models/apify/scheduler/server.rb', line 6 def test_api_key test_url = "#{url.chomp('/')}/test-api-key?apify_secret=#{api_key}" response = RestClient.post(test_url, {}) JSON.parse(response) end |