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
data/docs/FacebookApi.md
ADDED
|
@@ -0,0 +1,1671 @@
|
|
|
1
|
+
# ScrapeBadger::FacebookApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://scrapebadger.com*
|
|
4
|
+
|
|
5
|
+
| Method | HTTP request | Description |
|
|
6
|
+
| ------ | ------------ | ----------- |
|
|
7
|
+
| [**facebook_browse_a_marketplace_category**](FacebookApi.md#facebook_browse_a_marketplace_category) | **GET** /v1/facebook/marketplace/category/{category} | Browse a Marketplace category |
|
|
8
|
+
| [**facebook_get_a_marketplace_item**](FacebookApi.md#facebook_get_a_marketplace_item) | **GET** /v1/facebook/marketplace/item/{item_id} | Get a Marketplace item |
|
|
9
|
+
| [**facebook_get_an_ad**](FacebookApi.md#facebook_get_an_ad) | **GET** /v1/facebook/ads/{ad_archive_id} | Get an ad |
|
|
10
|
+
| [**facebook_get_group_detail**](FacebookApi.md#facebook_get_group_detail) | **GET** /v1/facebook/groups/{group_id} | Get group detail |
|
|
11
|
+
| [**facebook_get_group_posts**](FacebookApi.md#facebook_get_group_posts) | **GET** /v1/facebook/groups/{group_id}/posts | Get group posts |
|
|
12
|
+
| [**facebook_get_page_detail**](FacebookApi.md#facebook_get_page_detail) | **GET** /v1/facebook/pages/{identifier} | Get page detail |
|
|
13
|
+
| [**facebook_get_page_posts**](FacebookApi.md#facebook_get_page_posts) | **GET** /v1/facebook/pages/{identifier}/posts | Get page posts |
|
|
14
|
+
| [**facebook_get_post_comments**](FacebookApi.md#facebook_get_post_comments) | **GET** /v1/facebook/posts/{post_id}/comments | Get post comments |
|
|
15
|
+
| [**facebook_get_post_detail**](FacebookApi.md#facebook_get_post_detail) | **GET** /v1/facebook/posts/{post_id} | Get post detail |
|
|
16
|
+
| [**facebook_get_profile_detail**](FacebookApi.md#facebook_get_profile_detail) | **GET** /v1/facebook/profiles/{identifier} | Get profile detail |
|
|
17
|
+
| [**facebook_get_profile_posts**](FacebookApi.md#facebook_get_profile_posts) | **GET** /v1/facebook/profiles/{identifier}/posts | Get profile posts |
|
|
18
|
+
| [**facebook_list_categories**](FacebookApi.md#facebook_list_categories) | **GET** /v1/facebook/marketplace/categories | List categories |
|
|
19
|
+
| [**facebook_list_locations**](FacebookApi.md#facebook_list_locations) | **GET** /v1/facebook/marketplace/locations | List locations |
|
|
20
|
+
| [**facebook_search_events**](FacebookApi.md#facebook_search_events) | **GET** /v1/facebook/search/events | Search events |
|
|
21
|
+
| [**facebook_search_everything**](FacebookApi.md#facebook_search_everything) | **GET** /v1/facebook/search | Search everything |
|
|
22
|
+
| [**facebook_search_groups**](FacebookApi.md#facebook_search_groups) | **GET** /v1/facebook/search/groups | Search groups |
|
|
23
|
+
| [**facebook_search_marketplace**](FacebookApi.md#facebook_search_marketplace) | **GET** /v1/facebook/marketplace/search | Search Marketplace |
|
|
24
|
+
| [**facebook_search_pages**](FacebookApi.md#facebook_search_pages) | **GET** /v1/facebook/search/pages | Search Pages |
|
|
25
|
+
| [**facebook_search_people**](FacebookApi.md#facebook_search_people) | **GET** /v1/facebook/search/people | Search people |
|
|
26
|
+
| [**facebook_search_places**](FacebookApi.md#facebook_search_places) | **GET** /v1/facebook/search/places | Search places |
|
|
27
|
+
| [**facebook_search_posts**](FacebookApi.md#facebook_search_posts) | **GET** /v1/facebook/search/posts | Search posts |
|
|
28
|
+
| [**facebook_search_the_ad_library**](FacebookApi.md#facebook_search_the_ad_library) | **GET** /v1/facebook/ads/search | Search the Ad Library |
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
## facebook_browse_a_marketplace_category
|
|
32
|
+
|
|
33
|
+
> Object facebook_browse_a_marketplace_category(category, opts)
|
|
34
|
+
|
|
35
|
+
Browse a Marketplace category
|
|
36
|
+
|
|
37
|
+
Browse Marketplace listings in a category (vehicles, electronics, ...).
|
|
38
|
+
|
|
39
|
+
### Examples
|
|
40
|
+
|
|
41
|
+
```ruby
|
|
42
|
+
require 'time'
|
|
43
|
+
require 'scrapebadger'
|
|
44
|
+
# setup authorization
|
|
45
|
+
ScrapeBadger.configure do |config|
|
|
46
|
+
# Configure API key authorization: ApiKeyAuth
|
|
47
|
+
config.api_key['X-API-Key'] = 'YOUR API KEY'
|
|
48
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
49
|
+
# config.api_key_prefix['X-API-Key'] = 'Bearer'
|
|
50
|
+
end
|
|
51
|
+
|
|
52
|
+
api_instance = ScrapeBadger::FacebookApi.new
|
|
53
|
+
category = 'category_example' # String |
|
|
54
|
+
opts = {
|
|
55
|
+
location: 'location_example', # String |
|
|
56
|
+
min_price: 56, # Integer |
|
|
57
|
+
max_price: 56, # Integer |
|
|
58
|
+
sort_by: 'sort_by_example', # String |
|
|
59
|
+
after: 'after_example' # String |
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
begin
|
|
63
|
+
# Browse a Marketplace category
|
|
64
|
+
result = api_instance.facebook_browse_a_marketplace_category(category, opts)
|
|
65
|
+
p result
|
|
66
|
+
rescue ScrapeBadger::ApiError => e
|
|
67
|
+
puts "Error when calling FacebookApi->facebook_browse_a_marketplace_category: #{e}"
|
|
68
|
+
end
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
#### Using the facebook_browse_a_marketplace_category_with_http_info variant
|
|
72
|
+
|
|
73
|
+
This returns an Array which contains the response data, status code and headers.
|
|
74
|
+
|
|
75
|
+
> <Array(Object, Integer, Hash)> facebook_browse_a_marketplace_category_with_http_info(category, opts)
|
|
76
|
+
|
|
77
|
+
```ruby
|
|
78
|
+
begin
|
|
79
|
+
# Browse a Marketplace category
|
|
80
|
+
data, status_code, headers = api_instance.facebook_browse_a_marketplace_category_with_http_info(category, opts)
|
|
81
|
+
p status_code # => 2xx
|
|
82
|
+
p headers # => { ... }
|
|
83
|
+
p data # => Object
|
|
84
|
+
rescue ScrapeBadger::ApiError => e
|
|
85
|
+
puts "Error when calling FacebookApi->facebook_browse_a_marketplace_category_with_http_info: #{e}"
|
|
86
|
+
end
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
### Parameters
|
|
90
|
+
|
|
91
|
+
| Name | Type | Description | Notes |
|
|
92
|
+
| ---- | ---- | ----------- | ----- |
|
|
93
|
+
| **category** | **String** | | |
|
|
94
|
+
| **location** | **String** | | [optional][default to 'nyc'] |
|
|
95
|
+
| **min_price** | **Integer** | | [optional] |
|
|
96
|
+
| **max_price** | **Integer** | | [optional] |
|
|
97
|
+
| **sort_by** | **String** | | [optional] |
|
|
98
|
+
| **after** | **String** | | [optional] |
|
|
99
|
+
|
|
100
|
+
### Return type
|
|
101
|
+
|
|
102
|
+
**Object**
|
|
103
|
+
|
|
104
|
+
### Authorization
|
|
105
|
+
|
|
106
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
107
|
+
|
|
108
|
+
### HTTP request headers
|
|
109
|
+
|
|
110
|
+
- **Content-Type**: Not defined
|
|
111
|
+
- **Accept**: application/json
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
## facebook_get_a_marketplace_item
|
|
115
|
+
|
|
116
|
+
> Object facebook_get_a_marketplace_item(item_id)
|
|
117
|
+
|
|
118
|
+
Get a Marketplace item
|
|
119
|
+
|
|
120
|
+
Get full detail for a single Marketplace listing.
|
|
121
|
+
|
|
122
|
+
### Examples
|
|
123
|
+
|
|
124
|
+
```ruby
|
|
125
|
+
require 'time'
|
|
126
|
+
require 'scrapebadger'
|
|
127
|
+
# setup authorization
|
|
128
|
+
ScrapeBadger.configure do |config|
|
|
129
|
+
# Configure API key authorization: ApiKeyAuth
|
|
130
|
+
config.api_key['X-API-Key'] = 'YOUR API KEY'
|
|
131
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
132
|
+
# config.api_key_prefix['X-API-Key'] = 'Bearer'
|
|
133
|
+
end
|
|
134
|
+
|
|
135
|
+
api_instance = ScrapeBadger::FacebookApi.new
|
|
136
|
+
item_id = 'item_id_example' # String |
|
|
137
|
+
|
|
138
|
+
begin
|
|
139
|
+
# Get a Marketplace item
|
|
140
|
+
result = api_instance.facebook_get_a_marketplace_item(item_id)
|
|
141
|
+
p result
|
|
142
|
+
rescue ScrapeBadger::ApiError => e
|
|
143
|
+
puts "Error when calling FacebookApi->facebook_get_a_marketplace_item: #{e}"
|
|
144
|
+
end
|
|
145
|
+
```
|
|
146
|
+
|
|
147
|
+
#### Using the facebook_get_a_marketplace_item_with_http_info variant
|
|
148
|
+
|
|
149
|
+
This returns an Array which contains the response data, status code and headers.
|
|
150
|
+
|
|
151
|
+
> <Array(Object, Integer, Hash)> facebook_get_a_marketplace_item_with_http_info(item_id)
|
|
152
|
+
|
|
153
|
+
```ruby
|
|
154
|
+
begin
|
|
155
|
+
# Get a Marketplace item
|
|
156
|
+
data, status_code, headers = api_instance.facebook_get_a_marketplace_item_with_http_info(item_id)
|
|
157
|
+
p status_code # => 2xx
|
|
158
|
+
p headers # => { ... }
|
|
159
|
+
p data # => Object
|
|
160
|
+
rescue ScrapeBadger::ApiError => e
|
|
161
|
+
puts "Error when calling FacebookApi->facebook_get_a_marketplace_item_with_http_info: #{e}"
|
|
162
|
+
end
|
|
163
|
+
```
|
|
164
|
+
|
|
165
|
+
### Parameters
|
|
166
|
+
|
|
167
|
+
| Name | Type | Description | Notes |
|
|
168
|
+
| ---- | ---- | ----------- | ----- |
|
|
169
|
+
| **item_id** | **String** | | |
|
|
170
|
+
|
|
171
|
+
### Return type
|
|
172
|
+
|
|
173
|
+
**Object**
|
|
174
|
+
|
|
175
|
+
### Authorization
|
|
176
|
+
|
|
177
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
178
|
+
|
|
179
|
+
### HTTP request headers
|
|
180
|
+
|
|
181
|
+
- **Content-Type**: Not defined
|
|
182
|
+
- **Accept**: application/json
|
|
183
|
+
|
|
184
|
+
|
|
185
|
+
## facebook_get_an_ad
|
|
186
|
+
|
|
187
|
+
> Object facebook_get_an_ad(ad_archive_id)
|
|
188
|
+
|
|
189
|
+
Get an ad
|
|
190
|
+
|
|
191
|
+
Get a single Ad Library ad by its archive id.
|
|
192
|
+
|
|
193
|
+
### Examples
|
|
194
|
+
|
|
195
|
+
```ruby
|
|
196
|
+
require 'time'
|
|
197
|
+
require 'scrapebadger'
|
|
198
|
+
# setup authorization
|
|
199
|
+
ScrapeBadger.configure do |config|
|
|
200
|
+
# Configure API key authorization: ApiKeyAuth
|
|
201
|
+
config.api_key['X-API-Key'] = 'YOUR API KEY'
|
|
202
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
203
|
+
# config.api_key_prefix['X-API-Key'] = 'Bearer'
|
|
204
|
+
end
|
|
205
|
+
|
|
206
|
+
api_instance = ScrapeBadger::FacebookApi.new
|
|
207
|
+
ad_archive_id = 'ad_archive_id_example' # String |
|
|
208
|
+
|
|
209
|
+
begin
|
|
210
|
+
# Get an ad
|
|
211
|
+
result = api_instance.facebook_get_an_ad(ad_archive_id)
|
|
212
|
+
p result
|
|
213
|
+
rescue ScrapeBadger::ApiError => e
|
|
214
|
+
puts "Error when calling FacebookApi->facebook_get_an_ad: #{e}"
|
|
215
|
+
end
|
|
216
|
+
```
|
|
217
|
+
|
|
218
|
+
#### Using the facebook_get_an_ad_with_http_info variant
|
|
219
|
+
|
|
220
|
+
This returns an Array which contains the response data, status code and headers.
|
|
221
|
+
|
|
222
|
+
> <Array(Object, Integer, Hash)> facebook_get_an_ad_with_http_info(ad_archive_id)
|
|
223
|
+
|
|
224
|
+
```ruby
|
|
225
|
+
begin
|
|
226
|
+
# Get an ad
|
|
227
|
+
data, status_code, headers = api_instance.facebook_get_an_ad_with_http_info(ad_archive_id)
|
|
228
|
+
p status_code # => 2xx
|
|
229
|
+
p headers # => { ... }
|
|
230
|
+
p data # => Object
|
|
231
|
+
rescue ScrapeBadger::ApiError => e
|
|
232
|
+
puts "Error when calling FacebookApi->facebook_get_an_ad_with_http_info: #{e}"
|
|
233
|
+
end
|
|
234
|
+
```
|
|
235
|
+
|
|
236
|
+
### Parameters
|
|
237
|
+
|
|
238
|
+
| Name | Type | Description | Notes |
|
|
239
|
+
| ---- | ---- | ----------- | ----- |
|
|
240
|
+
| **ad_archive_id** | **String** | | |
|
|
241
|
+
|
|
242
|
+
### Return type
|
|
243
|
+
|
|
244
|
+
**Object**
|
|
245
|
+
|
|
246
|
+
### Authorization
|
|
247
|
+
|
|
248
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
249
|
+
|
|
250
|
+
### HTTP request headers
|
|
251
|
+
|
|
252
|
+
- **Content-Type**: Not defined
|
|
253
|
+
- **Accept**: application/json
|
|
254
|
+
|
|
255
|
+
|
|
256
|
+
## facebook_get_group_detail
|
|
257
|
+
|
|
258
|
+
> Object facebook_get_group_detail(group_id)
|
|
259
|
+
|
|
260
|
+
Get group detail
|
|
261
|
+
|
|
262
|
+
Get a Facebook group's details.
|
|
263
|
+
|
|
264
|
+
### Examples
|
|
265
|
+
|
|
266
|
+
```ruby
|
|
267
|
+
require 'time'
|
|
268
|
+
require 'scrapebadger'
|
|
269
|
+
# setup authorization
|
|
270
|
+
ScrapeBadger.configure do |config|
|
|
271
|
+
# Configure API key authorization: ApiKeyAuth
|
|
272
|
+
config.api_key['X-API-Key'] = 'YOUR API KEY'
|
|
273
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
274
|
+
# config.api_key_prefix['X-API-Key'] = 'Bearer'
|
|
275
|
+
end
|
|
276
|
+
|
|
277
|
+
api_instance = ScrapeBadger::FacebookApi.new
|
|
278
|
+
group_id = 'group_id_example' # String |
|
|
279
|
+
|
|
280
|
+
begin
|
|
281
|
+
# Get group detail
|
|
282
|
+
result = api_instance.facebook_get_group_detail(group_id)
|
|
283
|
+
p result
|
|
284
|
+
rescue ScrapeBadger::ApiError => e
|
|
285
|
+
puts "Error when calling FacebookApi->facebook_get_group_detail: #{e}"
|
|
286
|
+
end
|
|
287
|
+
```
|
|
288
|
+
|
|
289
|
+
#### Using the facebook_get_group_detail_with_http_info variant
|
|
290
|
+
|
|
291
|
+
This returns an Array which contains the response data, status code and headers.
|
|
292
|
+
|
|
293
|
+
> <Array(Object, Integer, Hash)> facebook_get_group_detail_with_http_info(group_id)
|
|
294
|
+
|
|
295
|
+
```ruby
|
|
296
|
+
begin
|
|
297
|
+
# Get group detail
|
|
298
|
+
data, status_code, headers = api_instance.facebook_get_group_detail_with_http_info(group_id)
|
|
299
|
+
p status_code # => 2xx
|
|
300
|
+
p headers # => { ... }
|
|
301
|
+
p data # => Object
|
|
302
|
+
rescue ScrapeBadger::ApiError => e
|
|
303
|
+
puts "Error when calling FacebookApi->facebook_get_group_detail_with_http_info: #{e}"
|
|
304
|
+
end
|
|
305
|
+
```
|
|
306
|
+
|
|
307
|
+
### Parameters
|
|
308
|
+
|
|
309
|
+
| Name | Type | Description | Notes |
|
|
310
|
+
| ---- | ---- | ----------- | ----- |
|
|
311
|
+
| **group_id** | **String** | | |
|
|
312
|
+
|
|
313
|
+
### Return type
|
|
314
|
+
|
|
315
|
+
**Object**
|
|
316
|
+
|
|
317
|
+
### Authorization
|
|
318
|
+
|
|
319
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
320
|
+
|
|
321
|
+
### HTTP request headers
|
|
322
|
+
|
|
323
|
+
- **Content-Type**: Not defined
|
|
324
|
+
- **Accept**: application/json
|
|
325
|
+
|
|
326
|
+
|
|
327
|
+
## facebook_get_group_posts
|
|
328
|
+
|
|
329
|
+
> Object facebook_get_group_posts(group_id, opts)
|
|
330
|
+
|
|
331
|
+
Get group posts
|
|
332
|
+
|
|
333
|
+
Get a Facebook group's post feed.
|
|
334
|
+
|
|
335
|
+
### Examples
|
|
336
|
+
|
|
337
|
+
```ruby
|
|
338
|
+
require 'time'
|
|
339
|
+
require 'scrapebadger'
|
|
340
|
+
# setup authorization
|
|
341
|
+
ScrapeBadger.configure do |config|
|
|
342
|
+
# Configure API key authorization: ApiKeyAuth
|
|
343
|
+
config.api_key['X-API-Key'] = 'YOUR API KEY'
|
|
344
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
345
|
+
# config.api_key_prefix['X-API-Key'] = 'Bearer'
|
|
346
|
+
end
|
|
347
|
+
|
|
348
|
+
api_instance = ScrapeBadger::FacebookApi.new
|
|
349
|
+
group_id = 'group_id_example' # String |
|
|
350
|
+
opts = {
|
|
351
|
+
after: 'after_example' # String |
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
begin
|
|
355
|
+
# Get group posts
|
|
356
|
+
result = api_instance.facebook_get_group_posts(group_id, opts)
|
|
357
|
+
p result
|
|
358
|
+
rescue ScrapeBadger::ApiError => e
|
|
359
|
+
puts "Error when calling FacebookApi->facebook_get_group_posts: #{e}"
|
|
360
|
+
end
|
|
361
|
+
```
|
|
362
|
+
|
|
363
|
+
#### Using the facebook_get_group_posts_with_http_info variant
|
|
364
|
+
|
|
365
|
+
This returns an Array which contains the response data, status code and headers.
|
|
366
|
+
|
|
367
|
+
> <Array(Object, Integer, Hash)> facebook_get_group_posts_with_http_info(group_id, opts)
|
|
368
|
+
|
|
369
|
+
```ruby
|
|
370
|
+
begin
|
|
371
|
+
# Get group posts
|
|
372
|
+
data, status_code, headers = api_instance.facebook_get_group_posts_with_http_info(group_id, opts)
|
|
373
|
+
p status_code # => 2xx
|
|
374
|
+
p headers # => { ... }
|
|
375
|
+
p data # => Object
|
|
376
|
+
rescue ScrapeBadger::ApiError => e
|
|
377
|
+
puts "Error when calling FacebookApi->facebook_get_group_posts_with_http_info: #{e}"
|
|
378
|
+
end
|
|
379
|
+
```
|
|
380
|
+
|
|
381
|
+
### Parameters
|
|
382
|
+
|
|
383
|
+
| Name | Type | Description | Notes |
|
|
384
|
+
| ---- | ---- | ----------- | ----- |
|
|
385
|
+
| **group_id** | **String** | | |
|
|
386
|
+
| **after** | **String** | | [optional] |
|
|
387
|
+
|
|
388
|
+
### Return type
|
|
389
|
+
|
|
390
|
+
**Object**
|
|
391
|
+
|
|
392
|
+
### Authorization
|
|
393
|
+
|
|
394
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
395
|
+
|
|
396
|
+
### HTTP request headers
|
|
397
|
+
|
|
398
|
+
- **Content-Type**: Not defined
|
|
399
|
+
- **Accept**: application/json
|
|
400
|
+
|
|
401
|
+
|
|
402
|
+
## facebook_get_page_detail
|
|
403
|
+
|
|
404
|
+
> Object facebook_get_page_detail(identifier)
|
|
405
|
+
|
|
406
|
+
Get page detail
|
|
407
|
+
|
|
408
|
+
Get a Facebook Page's profile (name, category, followers, about).
|
|
409
|
+
|
|
410
|
+
### Examples
|
|
411
|
+
|
|
412
|
+
```ruby
|
|
413
|
+
require 'time'
|
|
414
|
+
require 'scrapebadger'
|
|
415
|
+
# setup authorization
|
|
416
|
+
ScrapeBadger.configure do |config|
|
|
417
|
+
# Configure API key authorization: ApiKeyAuth
|
|
418
|
+
config.api_key['X-API-Key'] = 'YOUR API KEY'
|
|
419
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
420
|
+
# config.api_key_prefix['X-API-Key'] = 'Bearer'
|
|
421
|
+
end
|
|
422
|
+
|
|
423
|
+
api_instance = ScrapeBadger::FacebookApi.new
|
|
424
|
+
identifier = 'identifier_example' # String |
|
|
425
|
+
|
|
426
|
+
begin
|
|
427
|
+
# Get page detail
|
|
428
|
+
result = api_instance.facebook_get_page_detail(identifier)
|
|
429
|
+
p result
|
|
430
|
+
rescue ScrapeBadger::ApiError => e
|
|
431
|
+
puts "Error when calling FacebookApi->facebook_get_page_detail: #{e}"
|
|
432
|
+
end
|
|
433
|
+
```
|
|
434
|
+
|
|
435
|
+
#### Using the facebook_get_page_detail_with_http_info variant
|
|
436
|
+
|
|
437
|
+
This returns an Array which contains the response data, status code and headers.
|
|
438
|
+
|
|
439
|
+
> <Array(Object, Integer, Hash)> facebook_get_page_detail_with_http_info(identifier)
|
|
440
|
+
|
|
441
|
+
```ruby
|
|
442
|
+
begin
|
|
443
|
+
# Get page detail
|
|
444
|
+
data, status_code, headers = api_instance.facebook_get_page_detail_with_http_info(identifier)
|
|
445
|
+
p status_code # => 2xx
|
|
446
|
+
p headers # => { ... }
|
|
447
|
+
p data # => Object
|
|
448
|
+
rescue ScrapeBadger::ApiError => e
|
|
449
|
+
puts "Error when calling FacebookApi->facebook_get_page_detail_with_http_info: #{e}"
|
|
450
|
+
end
|
|
451
|
+
```
|
|
452
|
+
|
|
453
|
+
### Parameters
|
|
454
|
+
|
|
455
|
+
| Name | Type | Description | Notes |
|
|
456
|
+
| ---- | ---- | ----------- | ----- |
|
|
457
|
+
| **identifier** | **String** | | |
|
|
458
|
+
|
|
459
|
+
### Return type
|
|
460
|
+
|
|
461
|
+
**Object**
|
|
462
|
+
|
|
463
|
+
### Authorization
|
|
464
|
+
|
|
465
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
466
|
+
|
|
467
|
+
### HTTP request headers
|
|
468
|
+
|
|
469
|
+
- **Content-Type**: Not defined
|
|
470
|
+
- **Accept**: application/json
|
|
471
|
+
|
|
472
|
+
|
|
473
|
+
## facebook_get_page_posts
|
|
474
|
+
|
|
475
|
+
> Object facebook_get_page_posts(identifier, opts)
|
|
476
|
+
|
|
477
|
+
Get page posts
|
|
478
|
+
|
|
479
|
+
Get a Facebook Page's timeline posts.
|
|
480
|
+
|
|
481
|
+
### Examples
|
|
482
|
+
|
|
483
|
+
```ruby
|
|
484
|
+
require 'time'
|
|
485
|
+
require 'scrapebadger'
|
|
486
|
+
# setup authorization
|
|
487
|
+
ScrapeBadger.configure do |config|
|
|
488
|
+
# Configure API key authorization: ApiKeyAuth
|
|
489
|
+
config.api_key['X-API-Key'] = 'YOUR API KEY'
|
|
490
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
491
|
+
# config.api_key_prefix['X-API-Key'] = 'Bearer'
|
|
492
|
+
end
|
|
493
|
+
|
|
494
|
+
api_instance = ScrapeBadger::FacebookApi.new
|
|
495
|
+
identifier = 'identifier_example' # String |
|
|
496
|
+
opts = {
|
|
497
|
+
after: 'after_example' # String |
|
|
498
|
+
}
|
|
499
|
+
|
|
500
|
+
begin
|
|
501
|
+
# Get page posts
|
|
502
|
+
result = api_instance.facebook_get_page_posts(identifier, opts)
|
|
503
|
+
p result
|
|
504
|
+
rescue ScrapeBadger::ApiError => e
|
|
505
|
+
puts "Error when calling FacebookApi->facebook_get_page_posts: #{e}"
|
|
506
|
+
end
|
|
507
|
+
```
|
|
508
|
+
|
|
509
|
+
#### Using the facebook_get_page_posts_with_http_info variant
|
|
510
|
+
|
|
511
|
+
This returns an Array which contains the response data, status code and headers.
|
|
512
|
+
|
|
513
|
+
> <Array(Object, Integer, Hash)> facebook_get_page_posts_with_http_info(identifier, opts)
|
|
514
|
+
|
|
515
|
+
```ruby
|
|
516
|
+
begin
|
|
517
|
+
# Get page posts
|
|
518
|
+
data, status_code, headers = api_instance.facebook_get_page_posts_with_http_info(identifier, opts)
|
|
519
|
+
p status_code # => 2xx
|
|
520
|
+
p headers # => { ... }
|
|
521
|
+
p data # => Object
|
|
522
|
+
rescue ScrapeBadger::ApiError => e
|
|
523
|
+
puts "Error when calling FacebookApi->facebook_get_page_posts_with_http_info: #{e}"
|
|
524
|
+
end
|
|
525
|
+
```
|
|
526
|
+
|
|
527
|
+
### Parameters
|
|
528
|
+
|
|
529
|
+
| Name | Type | Description | Notes |
|
|
530
|
+
| ---- | ---- | ----------- | ----- |
|
|
531
|
+
| **identifier** | **String** | | |
|
|
532
|
+
| **after** | **String** | | [optional] |
|
|
533
|
+
|
|
534
|
+
### Return type
|
|
535
|
+
|
|
536
|
+
**Object**
|
|
537
|
+
|
|
538
|
+
### Authorization
|
|
539
|
+
|
|
540
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
541
|
+
|
|
542
|
+
### HTTP request headers
|
|
543
|
+
|
|
544
|
+
- **Content-Type**: Not defined
|
|
545
|
+
- **Accept**: application/json
|
|
546
|
+
|
|
547
|
+
|
|
548
|
+
## facebook_get_post_comments
|
|
549
|
+
|
|
550
|
+
> Object facebook_get_post_comments(post_id, opts)
|
|
551
|
+
|
|
552
|
+
Get post comments
|
|
553
|
+
|
|
554
|
+
Get a Facebook post's comment thread (paginated).
|
|
555
|
+
|
|
556
|
+
### Examples
|
|
557
|
+
|
|
558
|
+
```ruby
|
|
559
|
+
require 'time'
|
|
560
|
+
require 'scrapebadger'
|
|
561
|
+
# setup authorization
|
|
562
|
+
ScrapeBadger.configure do |config|
|
|
563
|
+
# Configure API key authorization: ApiKeyAuth
|
|
564
|
+
config.api_key['X-API-Key'] = 'YOUR API KEY'
|
|
565
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
566
|
+
# config.api_key_prefix['X-API-Key'] = 'Bearer'
|
|
567
|
+
end
|
|
568
|
+
|
|
569
|
+
api_instance = ScrapeBadger::FacebookApi.new
|
|
570
|
+
post_id = 'post_id_example' # String |
|
|
571
|
+
opts = {
|
|
572
|
+
after: 'after_example', # String |
|
|
573
|
+
sort: 'sort_example' # String |
|
|
574
|
+
}
|
|
575
|
+
|
|
576
|
+
begin
|
|
577
|
+
# Get post comments
|
|
578
|
+
result = api_instance.facebook_get_post_comments(post_id, opts)
|
|
579
|
+
p result
|
|
580
|
+
rescue ScrapeBadger::ApiError => e
|
|
581
|
+
puts "Error when calling FacebookApi->facebook_get_post_comments: #{e}"
|
|
582
|
+
end
|
|
583
|
+
```
|
|
584
|
+
|
|
585
|
+
#### Using the facebook_get_post_comments_with_http_info variant
|
|
586
|
+
|
|
587
|
+
This returns an Array which contains the response data, status code and headers.
|
|
588
|
+
|
|
589
|
+
> <Array(Object, Integer, Hash)> facebook_get_post_comments_with_http_info(post_id, opts)
|
|
590
|
+
|
|
591
|
+
```ruby
|
|
592
|
+
begin
|
|
593
|
+
# Get post comments
|
|
594
|
+
data, status_code, headers = api_instance.facebook_get_post_comments_with_http_info(post_id, opts)
|
|
595
|
+
p status_code # => 2xx
|
|
596
|
+
p headers # => { ... }
|
|
597
|
+
p data # => Object
|
|
598
|
+
rescue ScrapeBadger::ApiError => e
|
|
599
|
+
puts "Error when calling FacebookApi->facebook_get_post_comments_with_http_info: #{e}"
|
|
600
|
+
end
|
|
601
|
+
```
|
|
602
|
+
|
|
603
|
+
### Parameters
|
|
604
|
+
|
|
605
|
+
| Name | Type | Description | Notes |
|
|
606
|
+
| ---- | ---- | ----------- | ----- |
|
|
607
|
+
| **post_id** | **String** | | |
|
|
608
|
+
| **after** | **String** | | [optional] |
|
|
609
|
+
| **sort** | **String** | | [optional][default to 'relevance'] |
|
|
610
|
+
|
|
611
|
+
### Return type
|
|
612
|
+
|
|
613
|
+
**Object**
|
|
614
|
+
|
|
615
|
+
### Authorization
|
|
616
|
+
|
|
617
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
618
|
+
|
|
619
|
+
### HTTP request headers
|
|
620
|
+
|
|
621
|
+
- **Content-Type**: Not defined
|
|
622
|
+
- **Accept**: application/json
|
|
623
|
+
|
|
624
|
+
|
|
625
|
+
## facebook_get_post_detail
|
|
626
|
+
|
|
627
|
+
> Object facebook_get_post_detail(post_id)
|
|
628
|
+
|
|
629
|
+
Get post detail
|
|
630
|
+
|
|
631
|
+
Get a Facebook post's detail plus its top comments.
|
|
632
|
+
|
|
633
|
+
### Examples
|
|
634
|
+
|
|
635
|
+
```ruby
|
|
636
|
+
require 'time'
|
|
637
|
+
require 'scrapebadger'
|
|
638
|
+
# setup authorization
|
|
639
|
+
ScrapeBadger.configure do |config|
|
|
640
|
+
# Configure API key authorization: ApiKeyAuth
|
|
641
|
+
config.api_key['X-API-Key'] = 'YOUR API KEY'
|
|
642
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
643
|
+
# config.api_key_prefix['X-API-Key'] = 'Bearer'
|
|
644
|
+
end
|
|
645
|
+
|
|
646
|
+
api_instance = ScrapeBadger::FacebookApi.new
|
|
647
|
+
post_id = 'post_id_example' # String |
|
|
648
|
+
|
|
649
|
+
begin
|
|
650
|
+
# Get post detail
|
|
651
|
+
result = api_instance.facebook_get_post_detail(post_id)
|
|
652
|
+
p result
|
|
653
|
+
rescue ScrapeBadger::ApiError => e
|
|
654
|
+
puts "Error when calling FacebookApi->facebook_get_post_detail: #{e}"
|
|
655
|
+
end
|
|
656
|
+
```
|
|
657
|
+
|
|
658
|
+
#### Using the facebook_get_post_detail_with_http_info variant
|
|
659
|
+
|
|
660
|
+
This returns an Array which contains the response data, status code and headers.
|
|
661
|
+
|
|
662
|
+
> <Array(Object, Integer, Hash)> facebook_get_post_detail_with_http_info(post_id)
|
|
663
|
+
|
|
664
|
+
```ruby
|
|
665
|
+
begin
|
|
666
|
+
# Get post detail
|
|
667
|
+
data, status_code, headers = api_instance.facebook_get_post_detail_with_http_info(post_id)
|
|
668
|
+
p status_code # => 2xx
|
|
669
|
+
p headers # => { ... }
|
|
670
|
+
p data # => Object
|
|
671
|
+
rescue ScrapeBadger::ApiError => e
|
|
672
|
+
puts "Error when calling FacebookApi->facebook_get_post_detail_with_http_info: #{e}"
|
|
673
|
+
end
|
|
674
|
+
```
|
|
675
|
+
|
|
676
|
+
### Parameters
|
|
677
|
+
|
|
678
|
+
| Name | Type | Description | Notes |
|
|
679
|
+
| ---- | ---- | ----------- | ----- |
|
|
680
|
+
| **post_id** | **String** | | |
|
|
681
|
+
|
|
682
|
+
### Return type
|
|
683
|
+
|
|
684
|
+
**Object**
|
|
685
|
+
|
|
686
|
+
### Authorization
|
|
687
|
+
|
|
688
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
689
|
+
|
|
690
|
+
### HTTP request headers
|
|
691
|
+
|
|
692
|
+
- **Content-Type**: Not defined
|
|
693
|
+
- **Accept**: application/json
|
|
694
|
+
|
|
695
|
+
|
|
696
|
+
## facebook_get_profile_detail
|
|
697
|
+
|
|
698
|
+
> Object facebook_get_profile_detail(identifier)
|
|
699
|
+
|
|
700
|
+
Get profile detail
|
|
701
|
+
|
|
702
|
+
Get a Facebook profile's details.
|
|
703
|
+
|
|
704
|
+
### Examples
|
|
705
|
+
|
|
706
|
+
```ruby
|
|
707
|
+
require 'time'
|
|
708
|
+
require 'scrapebadger'
|
|
709
|
+
# setup authorization
|
|
710
|
+
ScrapeBadger.configure do |config|
|
|
711
|
+
# Configure API key authorization: ApiKeyAuth
|
|
712
|
+
config.api_key['X-API-Key'] = 'YOUR API KEY'
|
|
713
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
714
|
+
# config.api_key_prefix['X-API-Key'] = 'Bearer'
|
|
715
|
+
end
|
|
716
|
+
|
|
717
|
+
api_instance = ScrapeBadger::FacebookApi.new
|
|
718
|
+
identifier = 'identifier_example' # String |
|
|
719
|
+
|
|
720
|
+
begin
|
|
721
|
+
# Get profile detail
|
|
722
|
+
result = api_instance.facebook_get_profile_detail(identifier)
|
|
723
|
+
p result
|
|
724
|
+
rescue ScrapeBadger::ApiError => e
|
|
725
|
+
puts "Error when calling FacebookApi->facebook_get_profile_detail: #{e}"
|
|
726
|
+
end
|
|
727
|
+
```
|
|
728
|
+
|
|
729
|
+
#### Using the facebook_get_profile_detail_with_http_info variant
|
|
730
|
+
|
|
731
|
+
This returns an Array which contains the response data, status code and headers.
|
|
732
|
+
|
|
733
|
+
> <Array(Object, Integer, Hash)> facebook_get_profile_detail_with_http_info(identifier)
|
|
734
|
+
|
|
735
|
+
```ruby
|
|
736
|
+
begin
|
|
737
|
+
# Get profile detail
|
|
738
|
+
data, status_code, headers = api_instance.facebook_get_profile_detail_with_http_info(identifier)
|
|
739
|
+
p status_code # => 2xx
|
|
740
|
+
p headers # => { ... }
|
|
741
|
+
p data # => Object
|
|
742
|
+
rescue ScrapeBadger::ApiError => e
|
|
743
|
+
puts "Error when calling FacebookApi->facebook_get_profile_detail_with_http_info: #{e}"
|
|
744
|
+
end
|
|
745
|
+
```
|
|
746
|
+
|
|
747
|
+
### Parameters
|
|
748
|
+
|
|
749
|
+
| Name | Type | Description | Notes |
|
|
750
|
+
| ---- | ---- | ----------- | ----- |
|
|
751
|
+
| **identifier** | **String** | | |
|
|
752
|
+
|
|
753
|
+
### Return type
|
|
754
|
+
|
|
755
|
+
**Object**
|
|
756
|
+
|
|
757
|
+
### Authorization
|
|
758
|
+
|
|
759
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
760
|
+
|
|
761
|
+
### HTTP request headers
|
|
762
|
+
|
|
763
|
+
- **Content-Type**: Not defined
|
|
764
|
+
- **Accept**: application/json
|
|
765
|
+
|
|
766
|
+
|
|
767
|
+
## facebook_get_profile_posts
|
|
768
|
+
|
|
769
|
+
> Object facebook_get_profile_posts(identifier, opts)
|
|
770
|
+
|
|
771
|
+
Get profile posts
|
|
772
|
+
|
|
773
|
+
Get a Facebook profile's timeline posts.
|
|
774
|
+
|
|
775
|
+
### Examples
|
|
776
|
+
|
|
777
|
+
```ruby
|
|
778
|
+
require 'time'
|
|
779
|
+
require 'scrapebadger'
|
|
780
|
+
# setup authorization
|
|
781
|
+
ScrapeBadger.configure do |config|
|
|
782
|
+
# Configure API key authorization: ApiKeyAuth
|
|
783
|
+
config.api_key['X-API-Key'] = 'YOUR API KEY'
|
|
784
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
785
|
+
# config.api_key_prefix['X-API-Key'] = 'Bearer'
|
|
786
|
+
end
|
|
787
|
+
|
|
788
|
+
api_instance = ScrapeBadger::FacebookApi.new
|
|
789
|
+
identifier = 'identifier_example' # String |
|
|
790
|
+
opts = {
|
|
791
|
+
after: 'after_example' # String |
|
|
792
|
+
}
|
|
793
|
+
|
|
794
|
+
begin
|
|
795
|
+
# Get profile posts
|
|
796
|
+
result = api_instance.facebook_get_profile_posts(identifier, opts)
|
|
797
|
+
p result
|
|
798
|
+
rescue ScrapeBadger::ApiError => e
|
|
799
|
+
puts "Error when calling FacebookApi->facebook_get_profile_posts: #{e}"
|
|
800
|
+
end
|
|
801
|
+
```
|
|
802
|
+
|
|
803
|
+
#### Using the facebook_get_profile_posts_with_http_info variant
|
|
804
|
+
|
|
805
|
+
This returns an Array which contains the response data, status code and headers.
|
|
806
|
+
|
|
807
|
+
> <Array(Object, Integer, Hash)> facebook_get_profile_posts_with_http_info(identifier, opts)
|
|
808
|
+
|
|
809
|
+
```ruby
|
|
810
|
+
begin
|
|
811
|
+
# Get profile posts
|
|
812
|
+
data, status_code, headers = api_instance.facebook_get_profile_posts_with_http_info(identifier, opts)
|
|
813
|
+
p status_code # => 2xx
|
|
814
|
+
p headers # => { ... }
|
|
815
|
+
p data # => Object
|
|
816
|
+
rescue ScrapeBadger::ApiError => e
|
|
817
|
+
puts "Error when calling FacebookApi->facebook_get_profile_posts_with_http_info: #{e}"
|
|
818
|
+
end
|
|
819
|
+
```
|
|
820
|
+
|
|
821
|
+
### Parameters
|
|
822
|
+
|
|
823
|
+
| Name | Type | Description | Notes |
|
|
824
|
+
| ---- | ---- | ----------- | ----- |
|
|
825
|
+
| **identifier** | **String** | | |
|
|
826
|
+
| **after** | **String** | | [optional] |
|
|
827
|
+
|
|
828
|
+
### Return type
|
|
829
|
+
|
|
830
|
+
**Object**
|
|
831
|
+
|
|
832
|
+
### Authorization
|
|
833
|
+
|
|
834
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
835
|
+
|
|
836
|
+
### HTTP request headers
|
|
837
|
+
|
|
838
|
+
- **Content-Type**: Not defined
|
|
839
|
+
- **Accept**: application/json
|
|
840
|
+
|
|
841
|
+
|
|
842
|
+
## facebook_list_categories
|
|
843
|
+
|
|
844
|
+
> Object facebook_list_categories
|
|
845
|
+
|
|
846
|
+
List categories
|
|
847
|
+
|
|
848
|
+
List Marketplace category slugs (free).
|
|
849
|
+
|
|
850
|
+
### Examples
|
|
851
|
+
|
|
852
|
+
```ruby
|
|
853
|
+
require 'time'
|
|
854
|
+
require 'scrapebadger'
|
|
855
|
+
# setup authorization
|
|
856
|
+
ScrapeBadger.configure do |config|
|
|
857
|
+
# Configure API key authorization: ApiKeyAuth
|
|
858
|
+
config.api_key['X-API-Key'] = 'YOUR API KEY'
|
|
859
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
860
|
+
# config.api_key_prefix['X-API-Key'] = 'Bearer'
|
|
861
|
+
end
|
|
862
|
+
|
|
863
|
+
api_instance = ScrapeBadger::FacebookApi.new
|
|
864
|
+
|
|
865
|
+
begin
|
|
866
|
+
# List categories
|
|
867
|
+
result = api_instance.facebook_list_categories
|
|
868
|
+
p result
|
|
869
|
+
rescue ScrapeBadger::ApiError => e
|
|
870
|
+
puts "Error when calling FacebookApi->facebook_list_categories: #{e}"
|
|
871
|
+
end
|
|
872
|
+
```
|
|
873
|
+
|
|
874
|
+
#### Using the facebook_list_categories_with_http_info variant
|
|
875
|
+
|
|
876
|
+
This returns an Array which contains the response data, status code and headers.
|
|
877
|
+
|
|
878
|
+
> <Array(Object, Integer, Hash)> facebook_list_categories_with_http_info
|
|
879
|
+
|
|
880
|
+
```ruby
|
|
881
|
+
begin
|
|
882
|
+
# List categories
|
|
883
|
+
data, status_code, headers = api_instance.facebook_list_categories_with_http_info
|
|
884
|
+
p status_code # => 2xx
|
|
885
|
+
p headers # => { ... }
|
|
886
|
+
p data # => Object
|
|
887
|
+
rescue ScrapeBadger::ApiError => e
|
|
888
|
+
puts "Error when calling FacebookApi->facebook_list_categories_with_http_info: #{e}"
|
|
889
|
+
end
|
|
890
|
+
```
|
|
891
|
+
|
|
892
|
+
### Parameters
|
|
893
|
+
|
|
894
|
+
This endpoint does not need any parameter.
|
|
895
|
+
|
|
896
|
+
### Return type
|
|
897
|
+
|
|
898
|
+
**Object**
|
|
899
|
+
|
|
900
|
+
### Authorization
|
|
901
|
+
|
|
902
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
903
|
+
|
|
904
|
+
### HTTP request headers
|
|
905
|
+
|
|
906
|
+
- **Content-Type**: Not defined
|
|
907
|
+
- **Accept**: application/json
|
|
908
|
+
|
|
909
|
+
|
|
910
|
+
## facebook_list_locations
|
|
911
|
+
|
|
912
|
+
> Object facebook_list_locations
|
|
913
|
+
|
|
914
|
+
List locations
|
|
915
|
+
|
|
916
|
+
List common Marketplace location slugs (free).
|
|
917
|
+
|
|
918
|
+
### Examples
|
|
919
|
+
|
|
920
|
+
```ruby
|
|
921
|
+
require 'time'
|
|
922
|
+
require 'scrapebadger'
|
|
923
|
+
# setup authorization
|
|
924
|
+
ScrapeBadger.configure do |config|
|
|
925
|
+
# Configure API key authorization: ApiKeyAuth
|
|
926
|
+
config.api_key['X-API-Key'] = 'YOUR API KEY'
|
|
927
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
928
|
+
# config.api_key_prefix['X-API-Key'] = 'Bearer'
|
|
929
|
+
end
|
|
930
|
+
|
|
931
|
+
api_instance = ScrapeBadger::FacebookApi.new
|
|
932
|
+
|
|
933
|
+
begin
|
|
934
|
+
# List locations
|
|
935
|
+
result = api_instance.facebook_list_locations
|
|
936
|
+
p result
|
|
937
|
+
rescue ScrapeBadger::ApiError => e
|
|
938
|
+
puts "Error when calling FacebookApi->facebook_list_locations: #{e}"
|
|
939
|
+
end
|
|
940
|
+
```
|
|
941
|
+
|
|
942
|
+
#### Using the facebook_list_locations_with_http_info variant
|
|
943
|
+
|
|
944
|
+
This returns an Array which contains the response data, status code and headers.
|
|
945
|
+
|
|
946
|
+
> <Array(Object, Integer, Hash)> facebook_list_locations_with_http_info
|
|
947
|
+
|
|
948
|
+
```ruby
|
|
949
|
+
begin
|
|
950
|
+
# List locations
|
|
951
|
+
data, status_code, headers = api_instance.facebook_list_locations_with_http_info
|
|
952
|
+
p status_code # => 2xx
|
|
953
|
+
p headers # => { ... }
|
|
954
|
+
p data # => Object
|
|
955
|
+
rescue ScrapeBadger::ApiError => e
|
|
956
|
+
puts "Error when calling FacebookApi->facebook_list_locations_with_http_info: #{e}"
|
|
957
|
+
end
|
|
958
|
+
```
|
|
959
|
+
|
|
960
|
+
### Parameters
|
|
961
|
+
|
|
962
|
+
This endpoint does not need any parameter.
|
|
963
|
+
|
|
964
|
+
### Return type
|
|
965
|
+
|
|
966
|
+
**Object**
|
|
967
|
+
|
|
968
|
+
### Authorization
|
|
969
|
+
|
|
970
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
971
|
+
|
|
972
|
+
### HTTP request headers
|
|
973
|
+
|
|
974
|
+
- **Content-Type**: Not defined
|
|
975
|
+
- **Accept**: application/json
|
|
976
|
+
|
|
977
|
+
|
|
978
|
+
## facebook_search_events
|
|
979
|
+
|
|
980
|
+
> Object facebook_search_events(q, opts)
|
|
981
|
+
|
|
982
|
+
Search events
|
|
983
|
+
|
|
984
|
+
Search Facebook events.
|
|
985
|
+
|
|
986
|
+
### Examples
|
|
987
|
+
|
|
988
|
+
```ruby
|
|
989
|
+
require 'time'
|
|
990
|
+
require 'scrapebadger'
|
|
991
|
+
# setup authorization
|
|
992
|
+
ScrapeBadger.configure do |config|
|
|
993
|
+
# Configure API key authorization: ApiKeyAuth
|
|
994
|
+
config.api_key['X-API-Key'] = 'YOUR API KEY'
|
|
995
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
996
|
+
# config.api_key_prefix['X-API-Key'] = 'Bearer'
|
|
997
|
+
end
|
|
998
|
+
|
|
999
|
+
api_instance = ScrapeBadger::FacebookApi.new
|
|
1000
|
+
q = 'q_example' # String |
|
|
1001
|
+
opts = {
|
|
1002
|
+
after: 'after_example' # String |
|
|
1003
|
+
}
|
|
1004
|
+
|
|
1005
|
+
begin
|
|
1006
|
+
# Search events
|
|
1007
|
+
result = api_instance.facebook_search_events(q, opts)
|
|
1008
|
+
p result
|
|
1009
|
+
rescue ScrapeBadger::ApiError => e
|
|
1010
|
+
puts "Error when calling FacebookApi->facebook_search_events: #{e}"
|
|
1011
|
+
end
|
|
1012
|
+
```
|
|
1013
|
+
|
|
1014
|
+
#### Using the facebook_search_events_with_http_info variant
|
|
1015
|
+
|
|
1016
|
+
This returns an Array which contains the response data, status code and headers.
|
|
1017
|
+
|
|
1018
|
+
> <Array(Object, Integer, Hash)> facebook_search_events_with_http_info(q, opts)
|
|
1019
|
+
|
|
1020
|
+
```ruby
|
|
1021
|
+
begin
|
|
1022
|
+
# Search events
|
|
1023
|
+
data, status_code, headers = api_instance.facebook_search_events_with_http_info(q, opts)
|
|
1024
|
+
p status_code # => 2xx
|
|
1025
|
+
p headers # => { ... }
|
|
1026
|
+
p data # => Object
|
|
1027
|
+
rescue ScrapeBadger::ApiError => e
|
|
1028
|
+
puts "Error when calling FacebookApi->facebook_search_events_with_http_info: #{e}"
|
|
1029
|
+
end
|
|
1030
|
+
```
|
|
1031
|
+
|
|
1032
|
+
### Parameters
|
|
1033
|
+
|
|
1034
|
+
| Name | Type | Description | Notes |
|
|
1035
|
+
| ---- | ---- | ----------- | ----- |
|
|
1036
|
+
| **q** | **String** | | |
|
|
1037
|
+
| **after** | **String** | | [optional] |
|
|
1038
|
+
|
|
1039
|
+
### Return type
|
|
1040
|
+
|
|
1041
|
+
**Object**
|
|
1042
|
+
|
|
1043
|
+
### Authorization
|
|
1044
|
+
|
|
1045
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
1046
|
+
|
|
1047
|
+
### HTTP request headers
|
|
1048
|
+
|
|
1049
|
+
- **Content-Type**: Not defined
|
|
1050
|
+
- **Accept**: application/json
|
|
1051
|
+
|
|
1052
|
+
|
|
1053
|
+
## facebook_search_everything
|
|
1054
|
+
|
|
1055
|
+
> Object facebook_search_everything(q, opts)
|
|
1056
|
+
|
|
1057
|
+
Search everything
|
|
1058
|
+
|
|
1059
|
+
Global Facebook search (top results across pages, people, groups, posts).
|
|
1060
|
+
|
|
1061
|
+
### Examples
|
|
1062
|
+
|
|
1063
|
+
```ruby
|
|
1064
|
+
require 'time'
|
|
1065
|
+
require 'scrapebadger'
|
|
1066
|
+
# setup authorization
|
|
1067
|
+
ScrapeBadger.configure do |config|
|
|
1068
|
+
# Configure API key authorization: ApiKeyAuth
|
|
1069
|
+
config.api_key['X-API-Key'] = 'YOUR API KEY'
|
|
1070
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
1071
|
+
# config.api_key_prefix['X-API-Key'] = 'Bearer'
|
|
1072
|
+
end
|
|
1073
|
+
|
|
1074
|
+
api_instance = ScrapeBadger::FacebookApi.new
|
|
1075
|
+
q = 'q_example' # String | Search query
|
|
1076
|
+
opts = {
|
|
1077
|
+
after: 'after_example' # String |
|
|
1078
|
+
}
|
|
1079
|
+
|
|
1080
|
+
begin
|
|
1081
|
+
# Search everything
|
|
1082
|
+
result = api_instance.facebook_search_everything(q, opts)
|
|
1083
|
+
p result
|
|
1084
|
+
rescue ScrapeBadger::ApiError => e
|
|
1085
|
+
puts "Error when calling FacebookApi->facebook_search_everything: #{e}"
|
|
1086
|
+
end
|
|
1087
|
+
```
|
|
1088
|
+
|
|
1089
|
+
#### Using the facebook_search_everything_with_http_info variant
|
|
1090
|
+
|
|
1091
|
+
This returns an Array which contains the response data, status code and headers.
|
|
1092
|
+
|
|
1093
|
+
> <Array(Object, Integer, Hash)> facebook_search_everything_with_http_info(q, opts)
|
|
1094
|
+
|
|
1095
|
+
```ruby
|
|
1096
|
+
begin
|
|
1097
|
+
# Search everything
|
|
1098
|
+
data, status_code, headers = api_instance.facebook_search_everything_with_http_info(q, opts)
|
|
1099
|
+
p status_code # => 2xx
|
|
1100
|
+
p headers # => { ... }
|
|
1101
|
+
p data # => Object
|
|
1102
|
+
rescue ScrapeBadger::ApiError => e
|
|
1103
|
+
puts "Error when calling FacebookApi->facebook_search_everything_with_http_info: #{e}"
|
|
1104
|
+
end
|
|
1105
|
+
```
|
|
1106
|
+
|
|
1107
|
+
### Parameters
|
|
1108
|
+
|
|
1109
|
+
| Name | Type | Description | Notes |
|
|
1110
|
+
| ---- | ---- | ----------- | ----- |
|
|
1111
|
+
| **q** | **String** | Search query | |
|
|
1112
|
+
| **after** | **String** | | [optional] |
|
|
1113
|
+
|
|
1114
|
+
### Return type
|
|
1115
|
+
|
|
1116
|
+
**Object**
|
|
1117
|
+
|
|
1118
|
+
### Authorization
|
|
1119
|
+
|
|
1120
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
1121
|
+
|
|
1122
|
+
### HTTP request headers
|
|
1123
|
+
|
|
1124
|
+
- **Content-Type**: Not defined
|
|
1125
|
+
- **Accept**: application/json
|
|
1126
|
+
|
|
1127
|
+
|
|
1128
|
+
## facebook_search_groups
|
|
1129
|
+
|
|
1130
|
+
> Object facebook_search_groups(q, opts)
|
|
1131
|
+
|
|
1132
|
+
Search groups
|
|
1133
|
+
|
|
1134
|
+
Search Facebook groups.
|
|
1135
|
+
|
|
1136
|
+
### Examples
|
|
1137
|
+
|
|
1138
|
+
```ruby
|
|
1139
|
+
require 'time'
|
|
1140
|
+
require 'scrapebadger'
|
|
1141
|
+
# setup authorization
|
|
1142
|
+
ScrapeBadger.configure do |config|
|
|
1143
|
+
# Configure API key authorization: ApiKeyAuth
|
|
1144
|
+
config.api_key['X-API-Key'] = 'YOUR API KEY'
|
|
1145
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
1146
|
+
# config.api_key_prefix['X-API-Key'] = 'Bearer'
|
|
1147
|
+
end
|
|
1148
|
+
|
|
1149
|
+
api_instance = ScrapeBadger::FacebookApi.new
|
|
1150
|
+
q = 'q_example' # String |
|
|
1151
|
+
opts = {
|
|
1152
|
+
after: 'after_example' # String |
|
|
1153
|
+
}
|
|
1154
|
+
|
|
1155
|
+
begin
|
|
1156
|
+
# Search groups
|
|
1157
|
+
result = api_instance.facebook_search_groups(q, opts)
|
|
1158
|
+
p result
|
|
1159
|
+
rescue ScrapeBadger::ApiError => e
|
|
1160
|
+
puts "Error when calling FacebookApi->facebook_search_groups: #{e}"
|
|
1161
|
+
end
|
|
1162
|
+
```
|
|
1163
|
+
|
|
1164
|
+
#### Using the facebook_search_groups_with_http_info variant
|
|
1165
|
+
|
|
1166
|
+
This returns an Array which contains the response data, status code and headers.
|
|
1167
|
+
|
|
1168
|
+
> <Array(Object, Integer, Hash)> facebook_search_groups_with_http_info(q, opts)
|
|
1169
|
+
|
|
1170
|
+
```ruby
|
|
1171
|
+
begin
|
|
1172
|
+
# Search groups
|
|
1173
|
+
data, status_code, headers = api_instance.facebook_search_groups_with_http_info(q, opts)
|
|
1174
|
+
p status_code # => 2xx
|
|
1175
|
+
p headers # => { ... }
|
|
1176
|
+
p data # => Object
|
|
1177
|
+
rescue ScrapeBadger::ApiError => e
|
|
1178
|
+
puts "Error when calling FacebookApi->facebook_search_groups_with_http_info: #{e}"
|
|
1179
|
+
end
|
|
1180
|
+
```
|
|
1181
|
+
|
|
1182
|
+
### Parameters
|
|
1183
|
+
|
|
1184
|
+
| Name | Type | Description | Notes |
|
|
1185
|
+
| ---- | ---- | ----------- | ----- |
|
|
1186
|
+
| **q** | **String** | | |
|
|
1187
|
+
| **after** | **String** | | [optional] |
|
|
1188
|
+
|
|
1189
|
+
### Return type
|
|
1190
|
+
|
|
1191
|
+
**Object**
|
|
1192
|
+
|
|
1193
|
+
### Authorization
|
|
1194
|
+
|
|
1195
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
1196
|
+
|
|
1197
|
+
### HTTP request headers
|
|
1198
|
+
|
|
1199
|
+
- **Content-Type**: Not defined
|
|
1200
|
+
- **Accept**: application/json
|
|
1201
|
+
|
|
1202
|
+
|
|
1203
|
+
## facebook_search_marketplace
|
|
1204
|
+
|
|
1205
|
+
> Object facebook_search_marketplace(query, opts)
|
|
1206
|
+
|
|
1207
|
+
Search Marketplace
|
|
1208
|
+
|
|
1209
|
+
Search Facebook Marketplace listings by keyword and location.
|
|
1210
|
+
|
|
1211
|
+
### Examples
|
|
1212
|
+
|
|
1213
|
+
```ruby
|
|
1214
|
+
require 'time'
|
|
1215
|
+
require 'scrapebadger'
|
|
1216
|
+
# setup authorization
|
|
1217
|
+
ScrapeBadger.configure do |config|
|
|
1218
|
+
# Configure API key authorization: ApiKeyAuth
|
|
1219
|
+
config.api_key['X-API-Key'] = 'YOUR API KEY'
|
|
1220
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
1221
|
+
# config.api_key_prefix['X-API-Key'] = 'Bearer'
|
|
1222
|
+
end
|
|
1223
|
+
|
|
1224
|
+
api_instance = ScrapeBadger::FacebookApi.new
|
|
1225
|
+
query = 'query_example' # String | Search keywords
|
|
1226
|
+
opts = {
|
|
1227
|
+
location: 'location_example', # String | Marketplace location slug
|
|
1228
|
+
min_price: 56, # Integer |
|
|
1229
|
+
max_price: 56, # Integer |
|
|
1230
|
+
days_since_listed: 56, # Integer |
|
|
1231
|
+
sort_by: 'sort_by_example', # String |
|
|
1232
|
+
item_condition: 'item_condition_example', # String |
|
|
1233
|
+
delivery_method: 'delivery_method_example', # String |
|
|
1234
|
+
after: 'after_example' # String |
|
|
1235
|
+
}
|
|
1236
|
+
|
|
1237
|
+
begin
|
|
1238
|
+
# Search Marketplace
|
|
1239
|
+
result = api_instance.facebook_search_marketplace(query, opts)
|
|
1240
|
+
p result
|
|
1241
|
+
rescue ScrapeBadger::ApiError => e
|
|
1242
|
+
puts "Error when calling FacebookApi->facebook_search_marketplace: #{e}"
|
|
1243
|
+
end
|
|
1244
|
+
```
|
|
1245
|
+
|
|
1246
|
+
#### Using the facebook_search_marketplace_with_http_info variant
|
|
1247
|
+
|
|
1248
|
+
This returns an Array which contains the response data, status code and headers.
|
|
1249
|
+
|
|
1250
|
+
> <Array(Object, Integer, Hash)> facebook_search_marketplace_with_http_info(query, opts)
|
|
1251
|
+
|
|
1252
|
+
```ruby
|
|
1253
|
+
begin
|
|
1254
|
+
# Search Marketplace
|
|
1255
|
+
data, status_code, headers = api_instance.facebook_search_marketplace_with_http_info(query, opts)
|
|
1256
|
+
p status_code # => 2xx
|
|
1257
|
+
p headers # => { ... }
|
|
1258
|
+
p data # => Object
|
|
1259
|
+
rescue ScrapeBadger::ApiError => e
|
|
1260
|
+
puts "Error when calling FacebookApi->facebook_search_marketplace_with_http_info: #{e}"
|
|
1261
|
+
end
|
|
1262
|
+
```
|
|
1263
|
+
|
|
1264
|
+
### Parameters
|
|
1265
|
+
|
|
1266
|
+
| Name | Type | Description | Notes |
|
|
1267
|
+
| ---- | ---- | ----------- | ----- |
|
|
1268
|
+
| **query** | **String** | Search keywords | |
|
|
1269
|
+
| **location** | **String** | Marketplace location slug | [optional][default to 'nyc'] |
|
|
1270
|
+
| **min_price** | **Integer** | | [optional] |
|
|
1271
|
+
| **max_price** | **Integer** | | [optional] |
|
|
1272
|
+
| **days_since_listed** | **Integer** | | [optional] |
|
|
1273
|
+
| **sort_by** | **String** | | [optional] |
|
|
1274
|
+
| **item_condition** | **String** | | [optional] |
|
|
1275
|
+
| **delivery_method** | **String** | | [optional] |
|
|
1276
|
+
| **after** | **String** | | [optional] |
|
|
1277
|
+
|
|
1278
|
+
### Return type
|
|
1279
|
+
|
|
1280
|
+
**Object**
|
|
1281
|
+
|
|
1282
|
+
### Authorization
|
|
1283
|
+
|
|
1284
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
1285
|
+
|
|
1286
|
+
### HTTP request headers
|
|
1287
|
+
|
|
1288
|
+
- **Content-Type**: Not defined
|
|
1289
|
+
- **Accept**: application/json
|
|
1290
|
+
|
|
1291
|
+
|
|
1292
|
+
## facebook_search_pages
|
|
1293
|
+
|
|
1294
|
+
> Object facebook_search_pages(q, opts)
|
|
1295
|
+
|
|
1296
|
+
Search Pages
|
|
1297
|
+
|
|
1298
|
+
Search Facebook Pages.
|
|
1299
|
+
|
|
1300
|
+
### Examples
|
|
1301
|
+
|
|
1302
|
+
```ruby
|
|
1303
|
+
require 'time'
|
|
1304
|
+
require 'scrapebadger'
|
|
1305
|
+
# setup authorization
|
|
1306
|
+
ScrapeBadger.configure do |config|
|
|
1307
|
+
# Configure API key authorization: ApiKeyAuth
|
|
1308
|
+
config.api_key['X-API-Key'] = 'YOUR API KEY'
|
|
1309
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
1310
|
+
# config.api_key_prefix['X-API-Key'] = 'Bearer'
|
|
1311
|
+
end
|
|
1312
|
+
|
|
1313
|
+
api_instance = ScrapeBadger::FacebookApi.new
|
|
1314
|
+
q = 'q_example' # String |
|
|
1315
|
+
opts = {
|
|
1316
|
+
after: 'after_example' # String |
|
|
1317
|
+
}
|
|
1318
|
+
|
|
1319
|
+
begin
|
|
1320
|
+
# Search Pages
|
|
1321
|
+
result = api_instance.facebook_search_pages(q, opts)
|
|
1322
|
+
p result
|
|
1323
|
+
rescue ScrapeBadger::ApiError => e
|
|
1324
|
+
puts "Error when calling FacebookApi->facebook_search_pages: #{e}"
|
|
1325
|
+
end
|
|
1326
|
+
```
|
|
1327
|
+
|
|
1328
|
+
#### Using the facebook_search_pages_with_http_info variant
|
|
1329
|
+
|
|
1330
|
+
This returns an Array which contains the response data, status code and headers.
|
|
1331
|
+
|
|
1332
|
+
> <Array(Object, Integer, Hash)> facebook_search_pages_with_http_info(q, opts)
|
|
1333
|
+
|
|
1334
|
+
```ruby
|
|
1335
|
+
begin
|
|
1336
|
+
# Search Pages
|
|
1337
|
+
data, status_code, headers = api_instance.facebook_search_pages_with_http_info(q, opts)
|
|
1338
|
+
p status_code # => 2xx
|
|
1339
|
+
p headers # => { ... }
|
|
1340
|
+
p data # => Object
|
|
1341
|
+
rescue ScrapeBadger::ApiError => e
|
|
1342
|
+
puts "Error when calling FacebookApi->facebook_search_pages_with_http_info: #{e}"
|
|
1343
|
+
end
|
|
1344
|
+
```
|
|
1345
|
+
|
|
1346
|
+
### Parameters
|
|
1347
|
+
|
|
1348
|
+
| Name | Type | Description | Notes |
|
|
1349
|
+
| ---- | ---- | ----------- | ----- |
|
|
1350
|
+
| **q** | **String** | | |
|
|
1351
|
+
| **after** | **String** | | [optional] |
|
|
1352
|
+
|
|
1353
|
+
### Return type
|
|
1354
|
+
|
|
1355
|
+
**Object**
|
|
1356
|
+
|
|
1357
|
+
### Authorization
|
|
1358
|
+
|
|
1359
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
1360
|
+
|
|
1361
|
+
### HTTP request headers
|
|
1362
|
+
|
|
1363
|
+
- **Content-Type**: Not defined
|
|
1364
|
+
- **Accept**: application/json
|
|
1365
|
+
|
|
1366
|
+
|
|
1367
|
+
## facebook_search_people
|
|
1368
|
+
|
|
1369
|
+
> Object facebook_search_people(q, opts)
|
|
1370
|
+
|
|
1371
|
+
Search people
|
|
1372
|
+
|
|
1373
|
+
Search Facebook profiles.
|
|
1374
|
+
|
|
1375
|
+
### Examples
|
|
1376
|
+
|
|
1377
|
+
```ruby
|
|
1378
|
+
require 'time'
|
|
1379
|
+
require 'scrapebadger'
|
|
1380
|
+
# setup authorization
|
|
1381
|
+
ScrapeBadger.configure do |config|
|
|
1382
|
+
# Configure API key authorization: ApiKeyAuth
|
|
1383
|
+
config.api_key['X-API-Key'] = 'YOUR API KEY'
|
|
1384
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
1385
|
+
# config.api_key_prefix['X-API-Key'] = 'Bearer'
|
|
1386
|
+
end
|
|
1387
|
+
|
|
1388
|
+
api_instance = ScrapeBadger::FacebookApi.new
|
|
1389
|
+
q = 'q_example' # String |
|
|
1390
|
+
opts = {
|
|
1391
|
+
after: 'after_example' # String |
|
|
1392
|
+
}
|
|
1393
|
+
|
|
1394
|
+
begin
|
|
1395
|
+
# Search people
|
|
1396
|
+
result = api_instance.facebook_search_people(q, opts)
|
|
1397
|
+
p result
|
|
1398
|
+
rescue ScrapeBadger::ApiError => e
|
|
1399
|
+
puts "Error when calling FacebookApi->facebook_search_people: #{e}"
|
|
1400
|
+
end
|
|
1401
|
+
```
|
|
1402
|
+
|
|
1403
|
+
#### Using the facebook_search_people_with_http_info variant
|
|
1404
|
+
|
|
1405
|
+
This returns an Array which contains the response data, status code and headers.
|
|
1406
|
+
|
|
1407
|
+
> <Array(Object, Integer, Hash)> facebook_search_people_with_http_info(q, opts)
|
|
1408
|
+
|
|
1409
|
+
```ruby
|
|
1410
|
+
begin
|
|
1411
|
+
# Search people
|
|
1412
|
+
data, status_code, headers = api_instance.facebook_search_people_with_http_info(q, opts)
|
|
1413
|
+
p status_code # => 2xx
|
|
1414
|
+
p headers # => { ... }
|
|
1415
|
+
p data # => Object
|
|
1416
|
+
rescue ScrapeBadger::ApiError => e
|
|
1417
|
+
puts "Error when calling FacebookApi->facebook_search_people_with_http_info: #{e}"
|
|
1418
|
+
end
|
|
1419
|
+
```
|
|
1420
|
+
|
|
1421
|
+
### Parameters
|
|
1422
|
+
|
|
1423
|
+
| Name | Type | Description | Notes |
|
|
1424
|
+
| ---- | ---- | ----------- | ----- |
|
|
1425
|
+
| **q** | **String** | | |
|
|
1426
|
+
| **after** | **String** | | [optional] |
|
|
1427
|
+
|
|
1428
|
+
### Return type
|
|
1429
|
+
|
|
1430
|
+
**Object**
|
|
1431
|
+
|
|
1432
|
+
### Authorization
|
|
1433
|
+
|
|
1434
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
1435
|
+
|
|
1436
|
+
### HTTP request headers
|
|
1437
|
+
|
|
1438
|
+
- **Content-Type**: Not defined
|
|
1439
|
+
- **Accept**: application/json
|
|
1440
|
+
|
|
1441
|
+
|
|
1442
|
+
## facebook_search_places
|
|
1443
|
+
|
|
1444
|
+
> Object facebook_search_places(q, opts)
|
|
1445
|
+
|
|
1446
|
+
Search places
|
|
1447
|
+
|
|
1448
|
+
Search Facebook places.
|
|
1449
|
+
|
|
1450
|
+
### Examples
|
|
1451
|
+
|
|
1452
|
+
```ruby
|
|
1453
|
+
require 'time'
|
|
1454
|
+
require 'scrapebadger'
|
|
1455
|
+
# setup authorization
|
|
1456
|
+
ScrapeBadger.configure do |config|
|
|
1457
|
+
# Configure API key authorization: ApiKeyAuth
|
|
1458
|
+
config.api_key['X-API-Key'] = 'YOUR API KEY'
|
|
1459
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
1460
|
+
# config.api_key_prefix['X-API-Key'] = 'Bearer'
|
|
1461
|
+
end
|
|
1462
|
+
|
|
1463
|
+
api_instance = ScrapeBadger::FacebookApi.new
|
|
1464
|
+
q = 'q_example' # String |
|
|
1465
|
+
opts = {
|
|
1466
|
+
after: 'after_example' # String |
|
|
1467
|
+
}
|
|
1468
|
+
|
|
1469
|
+
begin
|
|
1470
|
+
# Search places
|
|
1471
|
+
result = api_instance.facebook_search_places(q, opts)
|
|
1472
|
+
p result
|
|
1473
|
+
rescue ScrapeBadger::ApiError => e
|
|
1474
|
+
puts "Error when calling FacebookApi->facebook_search_places: #{e}"
|
|
1475
|
+
end
|
|
1476
|
+
```
|
|
1477
|
+
|
|
1478
|
+
#### Using the facebook_search_places_with_http_info variant
|
|
1479
|
+
|
|
1480
|
+
This returns an Array which contains the response data, status code and headers.
|
|
1481
|
+
|
|
1482
|
+
> <Array(Object, Integer, Hash)> facebook_search_places_with_http_info(q, opts)
|
|
1483
|
+
|
|
1484
|
+
```ruby
|
|
1485
|
+
begin
|
|
1486
|
+
# Search places
|
|
1487
|
+
data, status_code, headers = api_instance.facebook_search_places_with_http_info(q, opts)
|
|
1488
|
+
p status_code # => 2xx
|
|
1489
|
+
p headers # => { ... }
|
|
1490
|
+
p data # => Object
|
|
1491
|
+
rescue ScrapeBadger::ApiError => e
|
|
1492
|
+
puts "Error when calling FacebookApi->facebook_search_places_with_http_info: #{e}"
|
|
1493
|
+
end
|
|
1494
|
+
```
|
|
1495
|
+
|
|
1496
|
+
### Parameters
|
|
1497
|
+
|
|
1498
|
+
| Name | Type | Description | Notes |
|
|
1499
|
+
| ---- | ---- | ----------- | ----- |
|
|
1500
|
+
| **q** | **String** | | |
|
|
1501
|
+
| **after** | **String** | | [optional] |
|
|
1502
|
+
|
|
1503
|
+
### Return type
|
|
1504
|
+
|
|
1505
|
+
**Object**
|
|
1506
|
+
|
|
1507
|
+
### Authorization
|
|
1508
|
+
|
|
1509
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
1510
|
+
|
|
1511
|
+
### HTTP request headers
|
|
1512
|
+
|
|
1513
|
+
- **Content-Type**: Not defined
|
|
1514
|
+
- **Accept**: application/json
|
|
1515
|
+
|
|
1516
|
+
|
|
1517
|
+
## facebook_search_posts
|
|
1518
|
+
|
|
1519
|
+
> Object facebook_search_posts(q, opts)
|
|
1520
|
+
|
|
1521
|
+
Search posts
|
|
1522
|
+
|
|
1523
|
+
Search public Facebook posts.
|
|
1524
|
+
|
|
1525
|
+
### Examples
|
|
1526
|
+
|
|
1527
|
+
```ruby
|
|
1528
|
+
require 'time'
|
|
1529
|
+
require 'scrapebadger'
|
|
1530
|
+
# setup authorization
|
|
1531
|
+
ScrapeBadger.configure do |config|
|
|
1532
|
+
# Configure API key authorization: ApiKeyAuth
|
|
1533
|
+
config.api_key['X-API-Key'] = 'YOUR API KEY'
|
|
1534
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
1535
|
+
# config.api_key_prefix['X-API-Key'] = 'Bearer'
|
|
1536
|
+
end
|
|
1537
|
+
|
|
1538
|
+
api_instance = ScrapeBadger::FacebookApi.new
|
|
1539
|
+
q = 'q_example' # String |
|
|
1540
|
+
opts = {
|
|
1541
|
+
after: 'after_example' # String |
|
|
1542
|
+
}
|
|
1543
|
+
|
|
1544
|
+
begin
|
|
1545
|
+
# Search posts
|
|
1546
|
+
result = api_instance.facebook_search_posts(q, opts)
|
|
1547
|
+
p result
|
|
1548
|
+
rescue ScrapeBadger::ApiError => e
|
|
1549
|
+
puts "Error when calling FacebookApi->facebook_search_posts: #{e}"
|
|
1550
|
+
end
|
|
1551
|
+
```
|
|
1552
|
+
|
|
1553
|
+
#### Using the facebook_search_posts_with_http_info variant
|
|
1554
|
+
|
|
1555
|
+
This returns an Array which contains the response data, status code and headers.
|
|
1556
|
+
|
|
1557
|
+
> <Array(Object, Integer, Hash)> facebook_search_posts_with_http_info(q, opts)
|
|
1558
|
+
|
|
1559
|
+
```ruby
|
|
1560
|
+
begin
|
|
1561
|
+
# Search posts
|
|
1562
|
+
data, status_code, headers = api_instance.facebook_search_posts_with_http_info(q, opts)
|
|
1563
|
+
p status_code # => 2xx
|
|
1564
|
+
p headers # => { ... }
|
|
1565
|
+
p data # => Object
|
|
1566
|
+
rescue ScrapeBadger::ApiError => e
|
|
1567
|
+
puts "Error when calling FacebookApi->facebook_search_posts_with_http_info: #{e}"
|
|
1568
|
+
end
|
|
1569
|
+
```
|
|
1570
|
+
|
|
1571
|
+
### Parameters
|
|
1572
|
+
|
|
1573
|
+
| Name | Type | Description | Notes |
|
|
1574
|
+
| ---- | ---- | ----------- | ----- |
|
|
1575
|
+
| **q** | **String** | | |
|
|
1576
|
+
| **after** | **String** | | [optional] |
|
|
1577
|
+
|
|
1578
|
+
### Return type
|
|
1579
|
+
|
|
1580
|
+
**Object**
|
|
1581
|
+
|
|
1582
|
+
### Authorization
|
|
1583
|
+
|
|
1584
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
1585
|
+
|
|
1586
|
+
### HTTP request headers
|
|
1587
|
+
|
|
1588
|
+
- **Content-Type**: Not defined
|
|
1589
|
+
- **Accept**: application/json
|
|
1590
|
+
|
|
1591
|
+
|
|
1592
|
+
## facebook_search_the_ad_library
|
|
1593
|
+
|
|
1594
|
+
> Object facebook_search_the_ad_library(query, opts)
|
|
1595
|
+
|
|
1596
|
+
Search the Ad Library
|
|
1597
|
+
|
|
1598
|
+
Search the Facebook Ad Library.
|
|
1599
|
+
|
|
1600
|
+
### Examples
|
|
1601
|
+
|
|
1602
|
+
```ruby
|
|
1603
|
+
require 'time'
|
|
1604
|
+
require 'scrapebadger'
|
|
1605
|
+
# setup authorization
|
|
1606
|
+
ScrapeBadger.configure do |config|
|
|
1607
|
+
# Configure API key authorization: ApiKeyAuth
|
|
1608
|
+
config.api_key['X-API-Key'] = 'YOUR API KEY'
|
|
1609
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
1610
|
+
# config.api_key_prefix['X-API-Key'] = 'Bearer'
|
|
1611
|
+
end
|
|
1612
|
+
|
|
1613
|
+
api_instance = ScrapeBadger::FacebookApi.new
|
|
1614
|
+
query = 'query_example' # String | Advertiser or keyword
|
|
1615
|
+
opts = {
|
|
1616
|
+
country: 'country_example', # String |
|
|
1617
|
+
ad_type: 'ad_type_example', # String |
|
|
1618
|
+
active_status: 'active_status_example', # String |
|
|
1619
|
+
after: 'after_example' # String |
|
|
1620
|
+
}
|
|
1621
|
+
|
|
1622
|
+
begin
|
|
1623
|
+
# Search the Ad Library
|
|
1624
|
+
result = api_instance.facebook_search_the_ad_library(query, opts)
|
|
1625
|
+
p result
|
|
1626
|
+
rescue ScrapeBadger::ApiError => e
|
|
1627
|
+
puts "Error when calling FacebookApi->facebook_search_the_ad_library: #{e}"
|
|
1628
|
+
end
|
|
1629
|
+
```
|
|
1630
|
+
|
|
1631
|
+
#### Using the facebook_search_the_ad_library_with_http_info variant
|
|
1632
|
+
|
|
1633
|
+
This returns an Array which contains the response data, status code and headers.
|
|
1634
|
+
|
|
1635
|
+
> <Array(Object, Integer, Hash)> facebook_search_the_ad_library_with_http_info(query, opts)
|
|
1636
|
+
|
|
1637
|
+
```ruby
|
|
1638
|
+
begin
|
|
1639
|
+
# Search the Ad Library
|
|
1640
|
+
data, status_code, headers = api_instance.facebook_search_the_ad_library_with_http_info(query, opts)
|
|
1641
|
+
p status_code # => 2xx
|
|
1642
|
+
p headers # => { ... }
|
|
1643
|
+
p data # => Object
|
|
1644
|
+
rescue ScrapeBadger::ApiError => e
|
|
1645
|
+
puts "Error when calling FacebookApi->facebook_search_the_ad_library_with_http_info: #{e}"
|
|
1646
|
+
end
|
|
1647
|
+
```
|
|
1648
|
+
|
|
1649
|
+
### Parameters
|
|
1650
|
+
|
|
1651
|
+
| Name | Type | Description | Notes |
|
|
1652
|
+
| ---- | ---- | ----------- | ----- |
|
|
1653
|
+
| **query** | **String** | Advertiser or keyword | |
|
|
1654
|
+
| **country** | **String** | | [optional][default to 'US'] |
|
|
1655
|
+
| **ad_type** | **String** | | [optional][default to 'all'] |
|
|
1656
|
+
| **active_status** | **String** | | [optional][default to 'active'] |
|
|
1657
|
+
| **after** | **String** | | [optional] |
|
|
1658
|
+
|
|
1659
|
+
### Return type
|
|
1660
|
+
|
|
1661
|
+
**Object**
|
|
1662
|
+
|
|
1663
|
+
### Authorization
|
|
1664
|
+
|
|
1665
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
1666
|
+
|
|
1667
|
+
### HTTP request headers
|
|
1668
|
+
|
|
1669
|
+
- **Content-Type**: Not defined
|
|
1670
|
+
- **Accept**: application/json
|
|
1671
|
+
|