Class: QuizApiClient::Services::YoutubeService
Instance Attribute Summary
#config
Instance Method Summary
collapse
#initialize
Instance Method Details
#convert_link(params:, token: nil) ⇒ Object
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
|