scrapebadger 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/Gemfile +9 -0
- data/LICENSE +21 -0
- data/README.md +548 -0
- data/Rakefile +10 -0
- data/docs/AccountApi.md +76 -0
- data/docs/AccountInfo.md +28 -0
- data/docs/AmazonApi.md +1244 -0
- data/docs/ApartmentsApi.md +373 -0
- data/docs/BaiduApi.md +447 -0
- data/docs/BillingLogListResponse.md +24 -0
- data/docs/BillingLogResponse.md +32 -0
- data/docs/BingApi.md +610 -0
- data/docs/ChatGPTApi.md +521 -0
- data/docs/DepopApi.md +542 -0
- data/docs/DuckDuckGoApi.md +700 -0
- data/docs/EBayApi.md +1019 -0
- data/docs/FacebookApi.md +1671 -0
- data/docs/FilterRuleCreate.md +28 -0
- data/docs/FilterRuleDeliveryLogListResponse.md +24 -0
- data/docs/FilterRuleDeliveryLogResponse.md +44 -0
- data/docs/FilterRuleListResponse.md +24 -0
- data/docs/FilterRuleResponse.md +40 -0
- data/docs/FilterRuleUpdate.md +30 -0
- data/docs/FilterRuleValidateRequest.md +18 -0
- data/docs/FilterRuleValidateResponse.md +22 -0
- data/docs/GoogleApi.md +3175 -0
- data/docs/HTTPValidationError.md +18 -0
- data/docs/IdealistaApi.md +822 -0
- data/docs/ImmobiliareApi.md +773 -0
- data/docs/InstagramApi.md +1673 -0
- data/docs/LeboncoinApi.md +884 -0
- data/docs/LinkedInApi.md +925 -0
- data/docs/LoopNetApi.md +529 -0
- data/docs/PortalApiRoutersV1TwitterFilterRulesFilterRulePricingResponse.md +20 -0
- data/docs/RealtorApi.md +474 -0
- data/docs/RedditApi.md +1677 -0
- data/docs/RedfinApi.md +616 -0
- data/docs/StreamMonitorCreate.md +26 -0
- data/docs/StreamMonitorListResponse.md +24 -0
- data/docs/StreamMonitorResponse.md +42 -0
- data/docs/StreamMonitorUpdate.md +28 -0
- data/docs/SubscriptionInfo.md +40 -0
- data/docs/TikTokApi.md +2104 -0
- data/docs/TweetDeliveryLogListResponse.md +24 -0
- data/docs/TweetDeliveryLogResponse.md +44 -0
- data/docs/TwitterApi.md +4091 -0
- data/docs/ValidationError.md +22 -0
- data/docs/ValidationErrorLocInner.md +15 -0
- data/docs/VintedApi.md +766 -0
- data/docs/WalmartApi.md +904 -0
- data/docs/WebApi.md +634 -0
- data/docs/WebhookCreate.md +22 -0
- data/docs/WebhookListItem.md +28 -0
- data/docs/WebhookListResponse.md +20 -0
- data/docs/WebhookResponse.md +26 -0
- data/docs/WebhookTestRequest.md +18 -0
- data/docs/WebhookTestResponse.md +24 -0
- data/docs/YahooApi.md +602 -0
- data/docs/YandexApi.md +450 -0
- data/docs/YouTubeApi.md +2872 -0
- data/docs/ZillowApi.md +622 -0
- data/git_push.sh +57 -0
- data/lib/scrapebadger/api/account_api.rb +79 -0
- data/lib/scrapebadger/api/amazon_api.rb +1165 -0
- data/lib/scrapebadger/api/apartments_api.rb +377 -0
- data/lib/scrapebadger/api/baidu_api.rb +436 -0
- data/lib/scrapebadger/api/bing_api.rb +580 -0
- data/lib/scrapebadger/api/chat_gpt_api.rb +466 -0
- data/lib/scrapebadger/api/depop_api.rb +518 -0
- data/lib/scrapebadger/api/duck_duck_go_api.rb +675 -0
- data/lib/scrapebadger/api/e_bay_api.rb +1029 -0
- data/lib/scrapebadger/api/facebook_api.rb +1492 -0
- data/lib/scrapebadger/api/google_api.rb +3191 -0
- data/lib/scrapebadger/api/idealista_api.rb +864 -0
- data/lib/scrapebadger/api/immobiliare_api.rb +734 -0
- data/lib/scrapebadger/api/instagram_api.rb +1555 -0
- data/lib/scrapebadger/api/leboncoin_api.rb +818 -0
- data/lib/scrapebadger/api/linked_in_api.rb +832 -0
- data/lib/scrapebadger/api/loop_net_api.rb +503 -0
- data/lib/scrapebadger/api/realtor_api.rb +481 -0
- data/lib/scrapebadger/api/reddit_api.rb +1601 -0
- data/lib/scrapebadger/api/redfin_api.rb +625 -0
- data/lib/scrapebadger/api/tik_tok_api.rb +2029 -0
- data/lib/scrapebadger/api/twitter_api.rb +3696 -0
- data/lib/scrapebadger/api/vinted_api.rb +705 -0
- data/lib/scrapebadger/api/walmart_api.rb +876 -0
- data/lib/scrapebadger/api/web_api.rb +547 -0
- data/lib/scrapebadger/api/yahoo_api.rb +560 -0
- data/lib/scrapebadger/api/yandex_api.rb +422 -0
- data/lib/scrapebadger/api/you_tube_api.rb +2520 -0
- data/lib/scrapebadger/api/zillow_api.rb +634 -0
- data/lib/scrapebadger/api_client.rb +394 -0
- data/lib/scrapebadger/api_error.rb +58 -0
- data/lib/scrapebadger/configuration.rb +308 -0
- data/lib/scrapebadger/models/account_info.rb +288 -0
- data/lib/scrapebadger/models/billing_log_list_response.rb +272 -0
- data/lib/scrapebadger/models/billing_log_response.rb +334 -0
- data/lib/scrapebadger/models/filter_rule_create.rb +427 -0
- data/lib/scrapebadger/models/filter_rule_delivery_log_list_response.rb +272 -0
- data/lib/scrapebadger/models/filter_rule_delivery_log_response.rb +422 -0
- data/lib/scrapebadger/models/filter_rule_list_response.rb +272 -0
- data/lib/scrapebadger/models/filter_rule_response.rb +390 -0
- data/lib/scrapebadger/models/filter_rule_update.rb +389 -0
- data/lib/scrapebadger/models/filter_rule_validate_request.rb +250 -0
- data/lib/scrapebadger/models/filter_rule_validate_response.rb +248 -0
- data/lib/scrapebadger/models/http_validation_error.rb +216 -0
- data/lib/scrapebadger/models/portal_api_routers_v1_twitter_filter_rules_filter_rule_pricing_response.rb +238 -0
- data/lib/scrapebadger/models/stream_monitor_create.rb +373 -0
- data/lib/scrapebadger/models/stream_monitor_list_response.rb +272 -0
- data/lib/scrapebadger/models/stream_monitor_response.rb +406 -0
- data/lib/scrapebadger/models/stream_monitor_update.rb +335 -0
- data/lib/scrapebadger/models/subscription_info.rb +352 -0
- data/lib/scrapebadger/models/tweet_delivery_log_list_response.rb +272 -0
- data/lib/scrapebadger/models/tweet_delivery_log_response.rb +422 -0
- data/lib/scrapebadger/models/validation_error.rb +255 -0
- data/lib/scrapebadger/models/validation_error_loc_inner.rb +104 -0
- data/lib/scrapebadger/models/webhook_create.rb +282 -0
- data/lib/scrapebadger/models/webhook_list_item.rb +302 -0
- data/lib/scrapebadger/models/webhook_list_response.rb +240 -0
- data/lib/scrapebadger/models/webhook_response.rb +286 -0
- data/lib/scrapebadger/models/webhook_test_request.rb +223 -0
- data/lib/scrapebadger/models/webhook_test_response.rb +259 -0
- data/lib/scrapebadger/version.rb +15 -0
- data/lib/scrapebadger.rb +96 -0
- data/scrapebadger.gemspec +39 -0
- data/spec/api/account_api_spec.rb +46 -0
- data/spec/api/amazon_api_spec.rb +258 -0
- data/spec/api/apartments_api_spec.rb +98 -0
- data/spec/api/baidu_api_spec.rb +109 -0
- data/spec/api/bing_api_spec.rb +141 -0
- data/spec/api/chat_gpt_api_spec.rb +123 -0
- data/spec/api/depop_api_spec.rb +132 -0
- data/spec/api/duck_duck_go_api_spec.rb +162 -0
- data/spec/api/e_bay_api_spec.rb +222 -0
- data/spec/api/facebook_api_spec.rb +326 -0
- data/spec/api/google_api_spec.rb +649 -0
- data/spec/api/idealista_api_spec.rb +197 -0
- data/spec/api/immobiliare_api_spec.rb +174 -0
- data/spec/api/instagram_api_spec.rb +309 -0
- data/spec/api/leboncoin_api_spec.rb +184 -0
- data/spec/api/linked_in_api_spec.rb +197 -0
- data/spec/api/loop_net_api_spec.rb +127 -0
- data/spec/api/realtor_api_spec.rb +123 -0
- data/spec/api/reddit_api_spec.rb +331 -0
- data/spec/api/redfin_api_spec.rb +147 -0
- data/spec/api/tik_tok_api_spec.rb +413 -0
- data/spec/api/twitter_api_spec.rb +735 -0
- data/spec/api/vinted_api_spec.rb +169 -0
- data/spec/api/walmart_api_spec.rb +192 -0
- data/spec/api/web_api_spec.rb +136 -0
- data/spec/api/yahoo_api_spec.rb +137 -0
- data/spec/api/yandex_api_spec.rb +111 -0
- data/spec/api/you_tube_api_spec.rb +500 -0
- data/spec/api/zillow_api_spec.rb +150 -0
- data/spec/models/account_info_spec.rb +66 -0
- data/spec/models/billing_log_list_response_spec.rb +54 -0
- data/spec/models/billing_log_response_spec.rb +78 -0
- data/spec/models/filter_rule_create_spec.rb +66 -0
- data/spec/models/filter_rule_delivery_log_list_response_spec.rb +54 -0
- data/spec/models/filter_rule_delivery_log_response_spec.rb +114 -0
- data/spec/models/filter_rule_list_response_spec.rb +54 -0
- data/spec/models/filter_rule_response_spec.rb +102 -0
- data/spec/models/filter_rule_update_spec.rb +72 -0
- data/spec/models/filter_rule_validate_request_spec.rb +36 -0
- data/spec/models/filter_rule_validate_response_spec.rb +48 -0
- data/spec/models/http_validation_error_spec.rb +36 -0
- data/spec/models/portal_api_routers_v1_twitter_filter_rules_filter_rule_pricing_response_spec.rb +42 -0
- data/spec/models/stream_monitor_create_spec.rb +60 -0
- data/spec/models/stream_monitor_list_response_spec.rb +54 -0
- data/spec/models/stream_monitor_response_spec.rb +108 -0
- data/spec/models/stream_monitor_update_spec.rb +66 -0
- data/spec/models/subscription_info_spec.rb +102 -0
- data/spec/models/tweet_delivery_log_list_response_spec.rb +54 -0
- data/spec/models/tweet_delivery_log_response_spec.rb +114 -0
- data/spec/models/validation_error_loc_inner_spec.rb +21 -0
- data/spec/models/validation_error_spec.rb +48 -0
- data/spec/models/webhook_create_spec.rb +48 -0
- data/spec/models/webhook_list_item_spec.rb +66 -0
- data/spec/models/webhook_list_response_spec.rb +42 -0
- data/spec/models/webhook_response_spec.rb +60 -0
- data/spec/models/webhook_test_request_spec.rb +36 -0
- data/spec/models/webhook_test_response_spec.rb +54 -0
- data/spec/spec_helper.rb +111 -0
- metadata +324 -0
|
@@ -0,0 +1,413 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#ScrapeBadger API
|
|
3
|
+
|
|
4
|
+
#Unified credit-based scraping API. https://docs.scrapebadger.com
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 0.1.0
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.10.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
|
|
16
|
+
# Unit tests for ScrapeBadger::TikTokApi
|
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
18
|
+
# Please update as you see appropriate
|
|
19
|
+
describe 'TikTokApi' do
|
|
20
|
+
before do
|
|
21
|
+
# run before each test
|
|
22
|
+
@api_instance = ScrapeBadger::TikTokApi.new
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
after do
|
|
26
|
+
# run after each test
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
describe 'test an instance of TikTokApi' do
|
|
30
|
+
it 'should create an instance of TikTokApi' do
|
|
31
|
+
expect(@api_instance).to be_instance_of(ScrapeBadger::TikTokApi)
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
# unit tests for tiktok_general_search
|
|
36
|
+
# General search
|
|
37
|
+
# General TikTok search — video results from the Top feed.
|
|
38
|
+
# @param query Search keyword
|
|
39
|
+
# @param [Hash] opts the optional parameters
|
|
40
|
+
# @option opts [String] :region
|
|
41
|
+
# @option opts [Integer] :count
|
|
42
|
+
# @option opts [String] :cursor Composite pagination cursor (offset.search_id) from a prior page's pagination.cursor
|
|
43
|
+
# @return [Object]
|
|
44
|
+
describe 'tiktok_general_search test' do
|
|
45
|
+
it 'should work' do
|
|
46
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
47
|
+
end
|
|
48
|
+
end
|
|
49
|
+
|
|
50
|
+
# unit tests for tiktok_get_comment_replies
|
|
51
|
+
# Get comment replies
|
|
52
|
+
# Get replies to a TikTok comment (best-effort).
|
|
53
|
+
# @param comment_id
|
|
54
|
+
# @param video_id Parent video id
|
|
55
|
+
# @param [Hash] opts the optional parameters
|
|
56
|
+
# @option opts [String] :region
|
|
57
|
+
# @option opts [Integer] :count
|
|
58
|
+
# @option opts [String] :cursor Pagination cursor from a prior page's pagination.cursor
|
|
59
|
+
# @return [Object]
|
|
60
|
+
describe 'tiktok_get_comment_replies test' do
|
|
61
|
+
it 'should work' do
|
|
62
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
63
|
+
end
|
|
64
|
+
end
|
|
65
|
+
|
|
66
|
+
# unit tests for tiktok_get_comments
|
|
67
|
+
# Get comments
|
|
68
|
+
# Get top-level comments on a TikTok video.
|
|
69
|
+
# @param video_id
|
|
70
|
+
# @param [Hash] opts the optional parameters
|
|
71
|
+
# @option opts [String] :region
|
|
72
|
+
# @option opts [Integer] :count
|
|
73
|
+
# @option opts [String] :cursor Pagination cursor from a prior page's pagination.cursor
|
|
74
|
+
# @return [Object]
|
|
75
|
+
describe 'tiktok_get_comments test' do
|
|
76
|
+
it 'should work' do
|
|
77
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
78
|
+
end
|
|
79
|
+
end
|
|
80
|
+
|
|
81
|
+
# unit tests for tiktok_get_followers_deprecated
|
|
82
|
+
# Get followers (deprecated)
|
|
83
|
+
# DEPRECATED — TikTok followers require an authenticated account session. Returns HTTP 410.
|
|
84
|
+
# @param username
|
|
85
|
+
# @param [Hash] opts the optional parameters
|
|
86
|
+
# @option opts [String] :region
|
|
87
|
+
# @option opts [Integer] :count
|
|
88
|
+
# @return [Object]
|
|
89
|
+
describe 'tiktok_get_followers_deprecated test' do
|
|
90
|
+
it 'should work' do
|
|
91
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
92
|
+
end
|
|
93
|
+
end
|
|
94
|
+
|
|
95
|
+
# unit tests for tiktok_get_following_deprecated
|
|
96
|
+
# Get following (deprecated)
|
|
97
|
+
# DEPRECATED — TikTok following requires an authenticated account session. Returns HTTP 410.
|
|
98
|
+
# @param username
|
|
99
|
+
# @param [Hash] opts the optional parameters
|
|
100
|
+
# @option opts [String] :region
|
|
101
|
+
# @option opts [Integer] :count
|
|
102
|
+
# @return [Object]
|
|
103
|
+
describe 'tiktok_get_following_deprecated test' do
|
|
104
|
+
it 'should work' do
|
|
105
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
106
|
+
end
|
|
107
|
+
end
|
|
108
|
+
|
|
109
|
+
# unit tests for tiktok_get_hashtag_detail
|
|
110
|
+
# Get hashtag detail
|
|
111
|
+
# Get TikTok hashtag/challenge detail.
|
|
112
|
+
# @param name
|
|
113
|
+
# @param [Hash] opts the optional parameters
|
|
114
|
+
# @option opts [String] :region
|
|
115
|
+
# @return [Object]
|
|
116
|
+
describe 'tiktok_get_hashtag_detail test' do
|
|
117
|
+
it 'should work' do
|
|
118
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
119
|
+
end
|
|
120
|
+
end
|
|
121
|
+
|
|
122
|
+
# unit tests for tiktok_get_hashtag_videos
|
|
123
|
+
# Get hashtag videos
|
|
124
|
+
# Get videos tagged with a TikTok hashtag.
|
|
125
|
+
# @param name
|
|
126
|
+
# @param [Hash] opts the optional parameters
|
|
127
|
+
# @option opts [String] :region
|
|
128
|
+
# @option opts [Integer] :count
|
|
129
|
+
# @option opts [String] :cursor Pagination cursor from a prior page's pagination.cursor
|
|
130
|
+
# @return [Object]
|
|
131
|
+
describe 'tiktok_get_hashtag_videos test' do
|
|
132
|
+
it 'should work' do
|
|
133
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
134
|
+
end
|
|
135
|
+
end
|
|
136
|
+
|
|
137
|
+
# unit tests for tiktok_get_liked_videos_deprecated
|
|
138
|
+
# Get liked videos (deprecated)
|
|
139
|
+
# DEPRECATED — TikTok liked videos require an authenticated account session. Returns HTTP 410.
|
|
140
|
+
# @param username
|
|
141
|
+
# @param [Hash] opts the optional parameters
|
|
142
|
+
# @option opts [String] :region
|
|
143
|
+
# @option opts [Integer] :count
|
|
144
|
+
# @return [Object]
|
|
145
|
+
describe 'tiktok_get_liked_videos_deprecated test' do
|
|
146
|
+
it 'should work' do
|
|
147
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
148
|
+
end
|
|
149
|
+
end
|
|
150
|
+
|
|
151
|
+
# unit tests for tiktok_get_music_sound_detail
|
|
152
|
+
# Get music/sound detail
|
|
153
|
+
# Get TikTok sound/music detail.
|
|
154
|
+
# @param music_id
|
|
155
|
+
# @param [Hash] opts the optional parameters
|
|
156
|
+
# @option opts [String] :region
|
|
157
|
+
# @return [Object]
|
|
158
|
+
describe 'tiktok_get_music_sound_detail test' do
|
|
159
|
+
it 'should work' do
|
|
160
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
161
|
+
end
|
|
162
|
+
end
|
|
163
|
+
|
|
164
|
+
# unit tests for tiktok_get_music_videos
|
|
165
|
+
# Get music videos
|
|
166
|
+
# Get videos using a given TikTok sound.
|
|
167
|
+
# @param music_id
|
|
168
|
+
# @param [Hash] opts the optional parameters
|
|
169
|
+
# @option opts [String] :region
|
|
170
|
+
# @option opts [Integer] :count
|
|
171
|
+
# @option opts [String] :cursor Pagination cursor from a prior page's pagination.cursor
|
|
172
|
+
# @return [Object]
|
|
173
|
+
describe 'tiktok_get_music_videos test' do
|
|
174
|
+
it 'should work' do
|
|
175
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
176
|
+
end
|
|
177
|
+
end
|
|
178
|
+
|
|
179
|
+
# unit tests for tiktok_get_oembed_metadata
|
|
180
|
+
# Get oEmbed metadata
|
|
181
|
+
# Get cheap unauthenticated oEmbed metadata for a TikTok URL.
|
|
182
|
+
# @param url Full TikTok video or profile URL
|
|
183
|
+
# @param [Hash] opts the optional parameters
|
|
184
|
+
# @option opts [String] :region
|
|
185
|
+
# @return [Object]
|
|
186
|
+
describe 'tiktok_get_oembed_metadata test' do
|
|
187
|
+
it 'should work' do
|
|
188
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
189
|
+
end
|
|
190
|
+
end
|
|
191
|
+
|
|
192
|
+
# unit tests for tiktok_get_related_videos
|
|
193
|
+
# Get related videos
|
|
194
|
+
# Get TikTok's related videos for a given video.
|
|
195
|
+
# @param video_id
|
|
196
|
+
# @param [Hash] opts the optional parameters
|
|
197
|
+
# @option opts [String] :region
|
|
198
|
+
# @option opts [Integer] :count
|
|
199
|
+
# @return [Object]
|
|
200
|
+
describe 'tiktok_get_related_videos test' do
|
|
201
|
+
it 'should work' do
|
|
202
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
203
|
+
end
|
|
204
|
+
end
|
|
205
|
+
|
|
206
|
+
# unit tests for tiktok_get_reposts
|
|
207
|
+
# Get reposts
|
|
208
|
+
# Get videos a TikTok user has reposted.
|
|
209
|
+
# @param username
|
|
210
|
+
# @param [Hash] opts the optional parameters
|
|
211
|
+
# @option opts [String] :region
|
|
212
|
+
# @option opts [Integer] :count
|
|
213
|
+
# @return [Object]
|
|
214
|
+
describe 'tiktok_get_reposts test' do
|
|
215
|
+
it 'should work' do
|
|
216
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
217
|
+
end
|
|
218
|
+
end
|
|
219
|
+
|
|
220
|
+
# unit tests for tiktok_get_transcript
|
|
221
|
+
# Get transcript
|
|
222
|
+
# Get subtitle/caption tracks for a TikTok video.
|
|
223
|
+
# @param video_id
|
|
224
|
+
# @param [Hash] opts the optional parameters
|
|
225
|
+
# @option opts [String] :region
|
|
226
|
+
# @return [Object]
|
|
227
|
+
describe 'tiktok_get_transcript test' do
|
|
228
|
+
it 'should work' do
|
|
229
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
230
|
+
end
|
|
231
|
+
end
|
|
232
|
+
|
|
233
|
+
# unit tests for tiktok_get_user_profile
|
|
234
|
+
# Get user profile
|
|
235
|
+
# Get a TikTok user's full profile.
|
|
236
|
+
# @param username
|
|
237
|
+
# @param [Hash] opts the optional parameters
|
|
238
|
+
# @option opts [String] :region Content region (ISO 3166-1 alpha-2)
|
|
239
|
+
# @return [Object]
|
|
240
|
+
describe 'tiktok_get_user_profile test' do
|
|
241
|
+
it 'should work' do
|
|
242
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
243
|
+
end
|
|
244
|
+
end
|
|
245
|
+
|
|
246
|
+
# unit tests for tiktok_get_user_videos
|
|
247
|
+
# Get user videos
|
|
248
|
+
# Get a TikTok user's posted videos.
|
|
249
|
+
# @param username
|
|
250
|
+
# @param [Hash] opts the optional parameters
|
|
251
|
+
# @option opts [String] :region
|
|
252
|
+
# @option opts [Integer] :count
|
|
253
|
+
# @option opts [String] :cursor Pagination cursor from a prior page's `pagination.cursor` (signer path only).
|
|
254
|
+
# @return [Object]
|
|
255
|
+
describe 'tiktok_get_user_videos test' do
|
|
256
|
+
it 'should work' do
|
|
257
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
258
|
+
end
|
|
259
|
+
end
|
|
260
|
+
|
|
261
|
+
# unit tests for tiktok_get_video_detail
|
|
262
|
+
# Get video detail
|
|
263
|
+
# Get full metadata for a single TikTok video/post.
|
|
264
|
+
# @param video_id
|
|
265
|
+
# @param [Hash] opts the optional parameters
|
|
266
|
+
# @option opts [String] :region
|
|
267
|
+
# @option opts [String] :username Author handle (skips oEmbed lookup)
|
|
268
|
+
# @return [Object]
|
|
269
|
+
describe 'tiktok_get_video_detail test' do
|
|
270
|
+
it 'should work' do
|
|
271
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
272
|
+
end
|
|
273
|
+
end
|
|
274
|
+
|
|
275
|
+
# unit tests for tiktok_health_check
|
|
276
|
+
# Health check
|
|
277
|
+
# Check health of the TikTok scraper service.
|
|
278
|
+
# @param [Hash] opts the optional parameters
|
|
279
|
+
# @return [Object]
|
|
280
|
+
describe 'tiktok_health_check test' do
|
|
281
|
+
it 'should work' do
|
|
282
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
283
|
+
end
|
|
284
|
+
end
|
|
285
|
+
|
|
286
|
+
# unit tests for tiktok_health_check_head
|
|
287
|
+
# Health check
|
|
288
|
+
# Check health of the TikTok scraper service.
|
|
289
|
+
# @param [Hash] opts the optional parameters
|
|
290
|
+
# @return [Object]
|
|
291
|
+
describe 'tiktok_health_check_head test' do
|
|
292
|
+
it 'should work' do
|
|
293
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
294
|
+
end
|
|
295
|
+
end
|
|
296
|
+
|
|
297
|
+
# unit tests for tiktok_list_regions
|
|
298
|
+
# List regions
|
|
299
|
+
# List supported TikTok content regions.
|
|
300
|
+
# @param [Hash] opts the optional parameters
|
|
301
|
+
# @return [Object]
|
|
302
|
+
describe 'tiktok_list_regions test' do
|
|
303
|
+
it 'should work' do
|
|
304
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
305
|
+
end
|
|
306
|
+
end
|
|
307
|
+
|
|
308
|
+
# unit tests for tiktok_search_hashtags
|
|
309
|
+
# Search hashtags
|
|
310
|
+
# Search TikTok hashtags by keyword.
|
|
311
|
+
# @param query Search keyword
|
|
312
|
+
# @param [Hash] opts the optional parameters
|
|
313
|
+
# @option opts [String] :region
|
|
314
|
+
# @option opts [Integer] :count
|
|
315
|
+
# @option opts [String] :cursor Composite pagination cursor (offset.search_id) from a prior page's pagination.cursor
|
|
316
|
+
# @return [Object]
|
|
317
|
+
describe 'tiktok_search_hashtags test' do
|
|
318
|
+
it 'should work' do
|
|
319
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
320
|
+
end
|
|
321
|
+
end
|
|
322
|
+
|
|
323
|
+
# unit tests for tiktok_search_the_tiktok_ad_library
|
|
324
|
+
# Search the TikTok Ad Library
|
|
325
|
+
# Search TikTok's Commercial Content Library (ad transparency) by keyword or advertiser.
|
|
326
|
+
# @param [Hash] opts the optional parameters
|
|
327
|
+
# @option opts [String] :query Keyword (ignored when advertiser_id is set)
|
|
328
|
+
# @option opts [String] :advertiser_id Advertiser business id(s) for advertiser search
|
|
329
|
+
# @option opts [String] :region EU region code (the Ad Library is EU-only)
|
|
330
|
+
# @option opts [Integer] :days
|
|
331
|
+
# @option opts [String] :sort
|
|
332
|
+
# @option opts [Integer] :offset
|
|
333
|
+
# @option opts [String] :search_id
|
|
334
|
+
# @option opts [Integer] :count
|
|
335
|
+
# @return [Object]
|
|
336
|
+
describe 'tiktok_search_the_tiktok_ad_library test' do
|
|
337
|
+
it 'should work' do
|
|
338
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
339
|
+
end
|
|
340
|
+
end
|
|
341
|
+
|
|
342
|
+
# unit tests for tiktok_search_users
|
|
343
|
+
# Search users
|
|
344
|
+
# Search TikTok users by keyword.
|
|
345
|
+
# @param query Search keyword
|
|
346
|
+
# @param [Hash] opts the optional parameters
|
|
347
|
+
# @option opts [String] :region
|
|
348
|
+
# @option opts [Integer] :count
|
|
349
|
+
# @option opts [String] :cursor Composite pagination cursor (offset.search_id) from a prior page's pagination.cursor
|
|
350
|
+
# @return [Object]
|
|
351
|
+
describe 'tiktok_search_users test' do
|
|
352
|
+
it 'should work' do
|
|
353
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
354
|
+
end
|
|
355
|
+
end
|
|
356
|
+
|
|
357
|
+
# unit tests for tiktok_search_videos
|
|
358
|
+
# Search videos
|
|
359
|
+
# Search TikTok videos by keyword.
|
|
360
|
+
# @param query Search keyword
|
|
361
|
+
# @param [Hash] opts the optional parameters
|
|
362
|
+
# @option opts [String] :region
|
|
363
|
+
# @option opts [Integer] :count
|
|
364
|
+
# @option opts [String] :cursor Composite pagination cursor (offset.search_id) from a prior page's pagination.cursor
|
|
365
|
+
# @return [Object]
|
|
366
|
+
describe 'tiktok_search_videos test' do
|
|
367
|
+
it 'should work' do
|
|
368
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
369
|
+
end
|
|
370
|
+
end
|
|
371
|
+
|
|
372
|
+
# unit tests for tiktok_trending_hashtags
|
|
373
|
+
# Trending hashtags
|
|
374
|
+
# Get trending hashtags (mobile Discover surface — view_count + creators).
|
|
375
|
+
# @param [Hash] opts the optional parameters
|
|
376
|
+
# @option opts [String] :region
|
|
377
|
+
# @option opts [Integer] :period
|
|
378
|
+
# @option opts [Integer] :count
|
|
379
|
+
# @return [Object]
|
|
380
|
+
describe 'tiktok_trending_hashtags test' do
|
|
381
|
+
it 'should work' do
|
|
382
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
383
|
+
end
|
|
384
|
+
end
|
|
385
|
+
|
|
386
|
+
# unit tests for tiktok_trending_songs
|
|
387
|
+
# Trending songs
|
|
388
|
+
# Get trending songs/sounds (mobile hot-music feed — ranked by usage).
|
|
389
|
+
# @param [Hash] opts the optional parameters
|
|
390
|
+
# @option opts [String] :region
|
|
391
|
+
# @option opts [Integer] :period
|
|
392
|
+
# @option opts [Integer] :count
|
|
393
|
+
# @return [Object]
|
|
394
|
+
describe 'tiktok_trending_songs test' do
|
|
395
|
+
it 'should work' do
|
|
396
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
397
|
+
end
|
|
398
|
+
end
|
|
399
|
+
|
|
400
|
+
# unit tests for tiktok_trending_videos
|
|
401
|
+
# Trending videos
|
|
402
|
+
# Get trending videos from the TikTok Explore feed.
|
|
403
|
+
# @param [Hash] opts the optional parameters
|
|
404
|
+
# @option opts [String] :region
|
|
405
|
+
# @option opts [Integer] :count
|
|
406
|
+
# @return [Object]
|
|
407
|
+
describe 'tiktok_trending_videos test' do
|
|
408
|
+
it 'should work' do
|
|
409
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
410
|
+
end
|
|
411
|
+
end
|
|
412
|
+
|
|
413
|
+
end
|