Class: QuizApiClient::Services::YoutubeService

Inherits:
BaseApiService show all
Defined in:
lib/quiz_api_client/services/youtube_service.rb

Instance Attribute Summary

Attributes inherited from BaseApiService

#config

Instance Method Summary collapse

Methods inherited from BaseApiService

#initialize

Constructor Details

This class inherits a constructor from QuizApiClient::Services::BaseApiService

Instance Method Details



7
8
9
10
11
12
# File 'lib/quiz_api_client/services/youtube_service.rb', line 7

def convert_link(params:, token: nil)
  client(token: token).post(
    '/api/youtube/convert_youtube_link',
    params
  )
end

#post_to_quiz_api(params:, token:) ⇒ Object



14
15
16
17
18
19
# File 'lib/quiz_api_client/services/youtube_service.rb', line 14

def post_to_quiz_api(params:, token:)
  client(token: token).post(
    '/api/youtube/start_youtube_migration_scan',
    params
  )
end

#start_scan(params:, token: nil) ⇒ Object



3
4
5
# File 'lib/quiz_api_client/services/youtube_service.rb', line 3

def start_scan(params:, token: nil)
  post_to_quiz_api(params: params, token: token)
end