rankvectors 1.0.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/README.md +191 -0
- data/Rakefile +10 -0
- data/docs/AddCredits200Response.md +22 -0
- data/docs/AddCreditsRequest.md +20 -0
- data/docs/AutoRechargeSettings.md +22 -0
- data/docs/ChangeResult.md +24 -0
- data/docs/ContentVerification.md +22 -0
- data/docs/ContentVerificationApi.md +81 -0
- data/docs/Crawl.md +30 -0
- data/docs/CrawlingApi.md +155 -0
- data/docs/CreateProjectRequest.md +60 -0
- data/docs/CreditBalance.md +30 -0
- data/docs/CreditBalanceInfo.md +26 -0
- data/docs/CreditsApi.md +161 -0
- data/docs/CustomCredentials.md +20 -0
- data/docs/DeleteProject200Response.md +20 -0
- data/docs/Error.md +24 -0
- data/docs/GenerateSuggestions200Response.md +22 -0
- data/docs/GenerateSuggestionsRequest.md +18 -0
- data/docs/GetImplementation200Response.md +20 -0
- data/docs/Implementation.md +36 -0
- data/docs/ImplementationInstructions.md +28 -0
- data/docs/ImplementationRequest.md +26 -0
- data/docs/ImplementationResponse.md +22 -0
- data/docs/ImplementationResult.md +24 -0
- data/docs/ImplementationSummary.md +24 -0
- data/docs/ImplementationsApi.md +313 -0
- data/docs/LinkOpportunity.md +28 -0
- data/docs/ListImplementations200Response.md +24 -0
- data/docs/PageInfo.md +24 -0
- data/docs/PageLimitStatus.md +22 -0
- data/docs/PeriodCharges.md +22 -0
- data/docs/Project.md +70 -0
- data/docs/ProjectCount.md +20 -0
- data/docs/ProjectsApi.md +292 -0
- data/docs/ReportImplementationStatus200Response.md +20 -0
- data/docs/ReportImplementationStatusRequest.md +22 -0
- data/docs/Rollback.md +24 -0
- data/docs/RollbackImplementation200Response.md +22 -0
- data/docs/RollbackImplementationRequest.md +20 -0
- data/docs/SpendingLimitStatus.md +24 -0
- data/docs/StartCrawlRequest.md +18 -0
- data/docs/StepByStepInstructions.md +20 -0
- data/docs/Suggestion.md +38 -0
- data/docs/SuggestionsApi.md +235 -0
- data/docs/UpdateSuggestionRequest.md +18 -0
- data/docs/UsageHistoryItem.md +26 -0
- data/docs/VerifyContent200Response.md +20 -0
- data/docs/VerifyContentRequest.md +20 -0
- data/docs/WebhooksApi.md +151 -0
- data/git_push.sh +57 -0
- data/lib/openapi_client/api/content_verification_api.rb +96 -0
- data/lib/openapi_client/api/crawling_api.rb +155 -0
- data/lib/openapi_client/api/credits_api.rb +168 -0
- data/lib/openapi_client/api/implementations_api.rb +332 -0
- data/lib/openapi_client/api/projects_api.rb +273 -0
- data/lib/openapi_client/api/suggestions_api.rb +242 -0
- data/lib/openapi_client/api/webhooks_api.rb +154 -0
- data/lib/openapi_client/api_client.rb +393 -0
- data/lib/openapi_client/api_error.rb +58 -0
- data/lib/openapi_client/configuration.rb +316 -0
- data/lib/openapi_client/models/add_credits200_response.rb +238 -0
- data/lib/openapi_client/models/add_credits_request.rb +259 -0
- data/lib/openapi_client/models/auto_recharge_settings.rb +292 -0
- data/lib/openapi_client/models/change_result.rb +328 -0
- data/lib/openapi_client/models/content_verification.rb +274 -0
- data/lib/openapi_client/models/crawl.rb +373 -0
- data/lib/openapi_client/models/create_project_request.rb +541 -0
- data/lib/openapi_client/models/credit_balance.rb +379 -0
- data/lib/openapi_client/models/credit_balance_info.rb +329 -0
- data/lib/openapi_client/models/custom_credentials.rb +265 -0
- data/lib/openapi_client/models/delete_project200_response.rb +229 -0
- data/lib/openapi_client/models/error.rb +268 -0
- data/lib/openapi_client/models/generate_suggestions200_response.rb +261 -0
- data/lib/openapi_client/models/generate_suggestions_request.rb +249 -0
- data/lib/openapi_client/models/get_implementation200_response.rb +229 -0
- data/lib/openapi_client/models/implementation.rb +454 -0
- data/lib/openapi_client/models/implementation_instructions.rb +372 -0
- data/lib/openapi_client/models/implementation_request.rb +362 -0
- data/lib/openapi_client/models/implementation_response.rb +293 -0
- data/lib/openapi_client/models/implementation_result.rb +268 -0
- data/lib/openapi_client/models/implementation_summary.rb +319 -0
- data/lib/openapi_client/models/link_opportunity.rb +355 -0
- data/lib/openapi_client/models/list_implementations200_response.rb +251 -0
- data/lib/openapi_client/models/page_info.rb +285 -0
- data/lib/openapi_client/models/page_limit_status.rb +292 -0
- data/lib/openapi_client/models/period_charges.rb +292 -0
- data/lib/openapi_client/models/project.rb +634 -0
- data/lib/openapi_client/models/project_count.rb +230 -0
- data/lib/openapi_client/models/report_implementation_status200_response.rb +229 -0
- data/lib/openapi_client/models/report_implementation_status_request.rb +316 -0
- data/lib/openapi_client/models/rollback.rb +302 -0
- data/lib/openapi_client/models/rollback_implementation200_response.rb +239 -0
- data/lib/openapi_client/models/rollback_implementation_request.rb +247 -0
- data/lib/openapi_client/models/spending_limit_status.rb +319 -0
- data/lib/openapi_client/models/start_crawl_request.rb +249 -0
- data/lib/openapi_client/models/step_by_step_instructions.rb +267 -0
- data/lib/openapi_client/models/suggestion.rb +497 -0
- data/lib/openapi_client/models/update_suggestion_request.rb +262 -0
- data/lib/openapi_client/models/usage_history_item.rb +331 -0
- data/lib/openapi_client/models/verify_content200_response.rb +229 -0
- data/lib/openapi_client/models/verify_content_request.rb +265 -0
- data/lib/openapi_client/version.rb +15 -0
- data/lib/openapi_client.rb +87 -0
- data/openapi_client.gemspec +39 -0
- data/spec/api/content_verification_api_spec.rb +48 -0
- data/spec/api/crawling_api_spec.rb +60 -0
- data/spec/api/credits_api_spec.rb +63 -0
- data/spec/api/implementations_api_spec.rb +91 -0
- data/spec/api/projects_api_spec.rb +82 -0
- data/spec/api/suggestions_api_spec.rb +75 -0
- data/spec/api/webhooks_api_spec.rb +59 -0
- data/spec/models/add_credits200_response_spec.rb +48 -0
- data/spec/models/add_credits_request_spec.rb +42 -0
- data/spec/models/auto_recharge_settings_spec.rb +48 -0
- data/spec/models/change_result_spec.rb +62 -0
- data/spec/models/content_verification_spec.rb +48 -0
- data/spec/models/crawl_spec.rb +76 -0
- data/spec/models/create_project_request_spec.rb +170 -0
- data/spec/models/credit_balance_info_spec.rb +60 -0
- data/spec/models/credit_balance_spec.rb +72 -0
- data/spec/models/custom_credentials_spec.rb +42 -0
- data/spec/models/delete_project200_response_spec.rb +42 -0
- data/spec/models/error_spec.rb +54 -0
- data/spec/models/generate_suggestions200_response_spec.rb +48 -0
- data/spec/models/generate_suggestions_request_spec.rb +36 -0
- data/spec/models/get_implementation200_response_spec.rb +42 -0
- data/spec/models/implementation_instructions_spec.rb +66 -0
- data/spec/models/implementation_request_spec.rb +68 -0
- data/spec/models/implementation_response_spec.rb +48 -0
- data/spec/models/implementation_result_spec.rb +54 -0
- data/spec/models/implementation_spec.rb +102 -0
- data/spec/models/implementation_summary_spec.rb +54 -0
- data/spec/models/link_opportunity_spec.rb +66 -0
- data/spec/models/list_implementations200_response_spec.rb +54 -0
- data/spec/models/page_info_spec.rb +54 -0
- data/spec/models/page_limit_status_spec.rb +48 -0
- data/spec/models/period_charges_spec.rb +48 -0
- data/spec/models/project_count_spec.rb +42 -0
- data/spec/models/project_spec.rb +200 -0
- data/spec/models/report_implementation_status200_response_spec.rb +42 -0
- data/spec/models/report_implementation_status_request_spec.rb +52 -0
- data/spec/models/rollback_implementation200_response_spec.rb +48 -0
- data/spec/models/rollback_implementation_request_spec.rb +42 -0
- data/spec/models/rollback_spec.rb +54 -0
- data/spec/models/spending_limit_status_spec.rb +54 -0
- data/spec/models/start_crawl_request_spec.rb +36 -0
- data/spec/models/step_by_step_instructions_spec.rb +42 -0
- data/spec/models/suggestion_spec.rb +100 -0
- data/spec/models/update_suggestion_request_spec.rb +40 -0
- data/spec/models/usage_history_item_spec.rb +60 -0
- data/spec/models/verify_content200_response_spec.rb +42 -0
- data/spec/models/verify_content_request_spec.rb +42 -0
- data/spec/spec_helper.rb +111 -0
- metadata +288 -0
|
@@ -0,0 +1,313 @@
|
|
|
1
|
+
# OpenapiClient::ImplementationsApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://api.rankvectors.com*
|
|
4
|
+
|
|
5
|
+
| Method | HTTP request | Description |
|
|
6
|
+
| ------ | ------------ | ----------- |
|
|
7
|
+
| [**get_implementation**](ImplementationsApi.md#get_implementation) | **GET** /api/projects/{projectId}/implementations/{implementationId} | Get implementation details |
|
|
8
|
+
| [**implement_links**](ImplementationsApi.md#implement_links) | **POST** /api/projects/{projectId}/implementations | Implement link suggestions |
|
|
9
|
+
| [**list_implementations**](ImplementationsApi.md#list_implementations) | **GET** /api/projects/{projectId}/implementations | List implementations |
|
|
10
|
+
| [**rollback_implementation**](ImplementationsApi.md#rollback_implementation) | **POST** /api/projects/{projectId}/implementations/{implementationId}/rollback | Rollback implementation |
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
## get_implementation
|
|
14
|
+
|
|
15
|
+
> <GetImplementation200Response> get_implementation(project_id, implementation_id)
|
|
16
|
+
|
|
17
|
+
Get implementation details
|
|
18
|
+
|
|
19
|
+
Get detailed information about a specific implementation
|
|
20
|
+
|
|
21
|
+
### Examples
|
|
22
|
+
|
|
23
|
+
```ruby
|
|
24
|
+
require 'time'
|
|
25
|
+
require 'openapi_client'
|
|
26
|
+
# setup authorization
|
|
27
|
+
OpenapiClient.configure do |config|
|
|
28
|
+
# Configure API key authorization: ApiKeyAuth
|
|
29
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
|
30
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
31
|
+
# config.api_key_prefix['Authorization'] = 'Bearer'
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
api_instance = OpenapiClient::ImplementationsApi.new
|
|
35
|
+
project_id = 'proj-123' # String | Unique identifier for the project
|
|
36
|
+
implementation_id = 'impl-123' # String | Unique identifier for the implementation
|
|
37
|
+
|
|
38
|
+
begin
|
|
39
|
+
# Get implementation details
|
|
40
|
+
result = api_instance.get_implementation(project_id, implementation_id)
|
|
41
|
+
p result
|
|
42
|
+
rescue OpenapiClient::ApiError => e
|
|
43
|
+
puts "Error when calling ImplementationsApi->get_implementation: #{e}"
|
|
44
|
+
end
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
#### Using the get_implementation_with_http_info variant
|
|
48
|
+
|
|
49
|
+
This returns an Array which contains the response data, status code and headers.
|
|
50
|
+
|
|
51
|
+
> <Array(<GetImplementation200Response>, Integer, Hash)> get_implementation_with_http_info(project_id, implementation_id)
|
|
52
|
+
|
|
53
|
+
```ruby
|
|
54
|
+
begin
|
|
55
|
+
# Get implementation details
|
|
56
|
+
data, status_code, headers = api_instance.get_implementation_with_http_info(project_id, implementation_id)
|
|
57
|
+
p status_code # => 2xx
|
|
58
|
+
p headers # => { ... }
|
|
59
|
+
p data # => <GetImplementation200Response>
|
|
60
|
+
rescue OpenapiClient::ApiError => e
|
|
61
|
+
puts "Error when calling ImplementationsApi->get_implementation_with_http_info: #{e}"
|
|
62
|
+
end
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
### Parameters
|
|
66
|
+
|
|
67
|
+
| Name | Type | Description | Notes |
|
|
68
|
+
| ---- | ---- | ----------- | ----- |
|
|
69
|
+
| **project_id** | **String** | Unique identifier for the project | |
|
|
70
|
+
| **implementation_id** | **String** | Unique identifier for the implementation | |
|
|
71
|
+
|
|
72
|
+
### Return type
|
|
73
|
+
|
|
74
|
+
[**GetImplementation200Response**](GetImplementation200Response.md)
|
|
75
|
+
|
|
76
|
+
### Authorization
|
|
77
|
+
|
|
78
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
79
|
+
|
|
80
|
+
### HTTP request headers
|
|
81
|
+
|
|
82
|
+
- **Content-Type**: Not defined
|
|
83
|
+
- **Accept**: application/json
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
## implement_links
|
|
87
|
+
|
|
88
|
+
> <ImplementationResponse> implement_links(project_id, implementation_request)
|
|
89
|
+
|
|
90
|
+
Implement link suggestions
|
|
91
|
+
|
|
92
|
+
Implement one or more link suggestions
|
|
93
|
+
|
|
94
|
+
### Examples
|
|
95
|
+
|
|
96
|
+
```ruby
|
|
97
|
+
require 'time'
|
|
98
|
+
require 'openapi_client'
|
|
99
|
+
# setup authorization
|
|
100
|
+
OpenapiClient.configure do |config|
|
|
101
|
+
# Configure API key authorization: ApiKeyAuth
|
|
102
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
|
103
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
104
|
+
# config.api_key_prefix['Authorization'] = 'Bearer'
|
|
105
|
+
end
|
|
106
|
+
|
|
107
|
+
api_instance = OpenapiClient::ImplementationsApi.new
|
|
108
|
+
project_id = 'proj-123' # String | Unique identifier for the project
|
|
109
|
+
implementation_request = OpenapiClient::ImplementationRequest.new({suggestion_ids: ["sugg-1", "sugg-2"], platform: 'custom', credentials: OpenapiClient::CustomCredentials.new({webhook_url: 'https://yourapi.com/rankvectors-webhook', api_key: 'your-webhook-secret-key'})}) # ImplementationRequest |
|
|
110
|
+
|
|
111
|
+
begin
|
|
112
|
+
# Implement link suggestions
|
|
113
|
+
result = api_instance.implement_links(project_id, implementation_request)
|
|
114
|
+
p result
|
|
115
|
+
rescue OpenapiClient::ApiError => e
|
|
116
|
+
puts "Error when calling ImplementationsApi->implement_links: #{e}"
|
|
117
|
+
end
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
#### Using the implement_links_with_http_info variant
|
|
121
|
+
|
|
122
|
+
This returns an Array which contains the response data, status code and headers.
|
|
123
|
+
|
|
124
|
+
> <Array(<ImplementationResponse>, Integer, Hash)> implement_links_with_http_info(project_id, implementation_request)
|
|
125
|
+
|
|
126
|
+
```ruby
|
|
127
|
+
begin
|
|
128
|
+
# Implement link suggestions
|
|
129
|
+
data, status_code, headers = api_instance.implement_links_with_http_info(project_id, implementation_request)
|
|
130
|
+
p status_code # => 2xx
|
|
131
|
+
p headers # => { ... }
|
|
132
|
+
p data # => <ImplementationResponse>
|
|
133
|
+
rescue OpenapiClient::ApiError => e
|
|
134
|
+
puts "Error when calling ImplementationsApi->implement_links_with_http_info: #{e}"
|
|
135
|
+
end
|
|
136
|
+
```
|
|
137
|
+
|
|
138
|
+
### Parameters
|
|
139
|
+
|
|
140
|
+
| Name | Type | Description | Notes |
|
|
141
|
+
| ---- | ---- | ----------- | ----- |
|
|
142
|
+
| **project_id** | **String** | Unique identifier for the project | |
|
|
143
|
+
| **implementation_request** | [**ImplementationRequest**](ImplementationRequest.md) | | |
|
|
144
|
+
|
|
145
|
+
### Return type
|
|
146
|
+
|
|
147
|
+
[**ImplementationResponse**](ImplementationResponse.md)
|
|
148
|
+
|
|
149
|
+
### Authorization
|
|
150
|
+
|
|
151
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
152
|
+
|
|
153
|
+
### HTTP request headers
|
|
154
|
+
|
|
155
|
+
- **Content-Type**: application/json
|
|
156
|
+
- **Accept**: application/json
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
## list_implementations
|
|
160
|
+
|
|
161
|
+
> <ListImplementations200Response> list_implementations(project_id, opts)
|
|
162
|
+
|
|
163
|
+
List implementations
|
|
164
|
+
|
|
165
|
+
Get implementation history for a project
|
|
166
|
+
|
|
167
|
+
### Examples
|
|
168
|
+
|
|
169
|
+
```ruby
|
|
170
|
+
require 'time'
|
|
171
|
+
require 'openapi_client'
|
|
172
|
+
# setup authorization
|
|
173
|
+
OpenapiClient.configure do |config|
|
|
174
|
+
# Configure API key authorization: ApiKeyAuth
|
|
175
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
|
176
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
177
|
+
# config.api_key_prefix['Authorization'] = 'Bearer'
|
|
178
|
+
end
|
|
179
|
+
|
|
180
|
+
api_instance = OpenapiClient::ImplementationsApi.new
|
|
181
|
+
project_id = 'proj-123' # String | Unique identifier for the project
|
|
182
|
+
opts = {
|
|
183
|
+
status: 'pending', # String | Filter by implementation status
|
|
184
|
+
platform: 'custom', # String | Filter by platform
|
|
185
|
+
limit: 56, # Integer | Results per page
|
|
186
|
+
offset: 56 # Integer | Pagination offset
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
begin
|
|
190
|
+
# List implementations
|
|
191
|
+
result = api_instance.list_implementations(project_id, opts)
|
|
192
|
+
p result
|
|
193
|
+
rescue OpenapiClient::ApiError => e
|
|
194
|
+
puts "Error when calling ImplementationsApi->list_implementations: #{e}"
|
|
195
|
+
end
|
|
196
|
+
```
|
|
197
|
+
|
|
198
|
+
#### Using the list_implementations_with_http_info variant
|
|
199
|
+
|
|
200
|
+
This returns an Array which contains the response data, status code and headers.
|
|
201
|
+
|
|
202
|
+
> <Array(<ListImplementations200Response>, Integer, Hash)> list_implementations_with_http_info(project_id, opts)
|
|
203
|
+
|
|
204
|
+
```ruby
|
|
205
|
+
begin
|
|
206
|
+
# List implementations
|
|
207
|
+
data, status_code, headers = api_instance.list_implementations_with_http_info(project_id, opts)
|
|
208
|
+
p status_code # => 2xx
|
|
209
|
+
p headers # => { ... }
|
|
210
|
+
p data # => <ListImplementations200Response>
|
|
211
|
+
rescue OpenapiClient::ApiError => e
|
|
212
|
+
puts "Error when calling ImplementationsApi->list_implementations_with_http_info: #{e}"
|
|
213
|
+
end
|
|
214
|
+
```
|
|
215
|
+
|
|
216
|
+
### Parameters
|
|
217
|
+
|
|
218
|
+
| Name | Type | Description | Notes |
|
|
219
|
+
| ---- | ---- | ----------- | ----- |
|
|
220
|
+
| **project_id** | **String** | Unique identifier for the project | |
|
|
221
|
+
| **status** | **String** | Filter by implementation status | [optional] |
|
|
222
|
+
| **platform** | **String** | Filter by platform | [optional] |
|
|
223
|
+
| **limit** | **Integer** | Results per page | [optional][default to 50] |
|
|
224
|
+
| **offset** | **Integer** | Pagination offset | [optional][default to 0] |
|
|
225
|
+
|
|
226
|
+
### Return type
|
|
227
|
+
|
|
228
|
+
[**ListImplementations200Response**](ListImplementations200Response.md)
|
|
229
|
+
|
|
230
|
+
### Authorization
|
|
231
|
+
|
|
232
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
233
|
+
|
|
234
|
+
### HTTP request headers
|
|
235
|
+
|
|
236
|
+
- **Content-Type**: Not defined
|
|
237
|
+
- **Accept**: application/json
|
|
238
|
+
|
|
239
|
+
|
|
240
|
+
## rollback_implementation
|
|
241
|
+
|
|
242
|
+
> <RollbackImplementation200Response> rollback_implementation(project_id, implementation_id, rollback_implementation_request)
|
|
243
|
+
|
|
244
|
+
Rollback implementation
|
|
245
|
+
|
|
246
|
+
Undo a link implementation and restore original content
|
|
247
|
+
|
|
248
|
+
### Examples
|
|
249
|
+
|
|
250
|
+
```ruby
|
|
251
|
+
require 'time'
|
|
252
|
+
require 'openapi_client'
|
|
253
|
+
# setup authorization
|
|
254
|
+
OpenapiClient.configure do |config|
|
|
255
|
+
# Configure API key authorization: ApiKeyAuth
|
|
256
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
|
257
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
258
|
+
# config.api_key_prefix['Authorization'] = 'Bearer'
|
|
259
|
+
end
|
|
260
|
+
|
|
261
|
+
api_instance = OpenapiClient::ImplementationsApi.new
|
|
262
|
+
project_id = 'proj-123' # String | Unique identifier for the project
|
|
263
|
+
implementation_id = 'impl-123' # String | Unique identifier for the implementation
|
|
264
|
+
rollback_implementation_request = OpenapiClient::RollbackImplementationRequest.new({reason: 'Incorrect link placement'}) # RollbackImplementationRequest |
|
|
265
|
+
|
|
266
|
+
begin
|
|
267
|
+
# Rollback implementation
|
|
268
|
+
result = api_instance.rollback_implementation(project_id, implementation_id, rollback_implementation_request)
|
|
269
|
+
p result
|
|
270
|
+
rescue OpenapiClient::ApiError => e
|
|
271
|
+
puts "Error when calling ImplementationsApi->rollback_implementation: #{e}"
|
|
272
|
+
end
|
|
273
|
+
```
|
|
274
|
+
|
|
275
|
+
#### Using the rollback_implementation_with_http_info variant
|
|
276
|
+
|
|
277
|
+
This returns an Array which contains the response data, status code and headers.
|
|
278
|
+
|
|
279
|
+
> <Array(<RollbackImplementation200Response>, Integer, Hash)> rollback_implementation_with_http_info(project_id, implementation_id, rollback_implementation_request)
|
|
280
|
+
|
|
281
|
+
```ruby
|
|
282
|
+
begin
|
|
283
|
+
# Rollback implementation
|
|
284
|
+
data, status_code, headers = api_instance.rollback_implementation_with_http_info(project_id, implementation_id, rollback_implementation_request)
|
|
285
|
+
p status_code # => 2xx
|
|
286
|
+
p headers # => { ... }
|
|
287
|
+
p data # => <RollbackImplementation200Response>
|
|
288
|
+
rescue OpenapiClient::ApiError => e
|
|
289
|
+
puts "Error when calling ImplementationsApi->rollback_implementation_with_http_info: #{e}"
|
|
290
|
+
end
|
|
291
|
+
```
|
|
292
|
+
|
|
293
|
+
### Parameters
|
|
294
|
+
|
|
295
|
+
| Name | Type | Description | Notes |
|
|
296
|
+
| ---- | ---- | ----------- | ----- |
|
|
297
|
+
| **project_id** | **String** | Unique identifier for the project | |
|
|
298
|
+
| **implementation_id** | **String** | Unique identifier for the implementation | |
|
|
299
|
+
| **rollback_implementation_request** | [**RollbackImplementationRequest**](RollbackImplementationRequest.md) | | |
|
|
300
|
+
|
|
301
|
+
### Return type
|
|
302
|
+
|
|
303
|
+
[**RollbackImplementation200Response**](RollbackImplementation200Response.md)
|
|
304
|
+
|
|
305
|
+
### Authorization
|
|
306
|
+
|
|
307
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
308
|
+
|
|
309
|
+
### HTTP request headers
|
|
310
|
+
|
|
311
|
+
- **Content-Type**: application/json
|
|
312
|
+
- **Accept**: application/json
|
|
313
|
+
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# OpenapiClient::LinkOpportunity
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **relevance_score** | **Float** | AI-calculated relevance score (0-1) | |
|
|
8
|
+
| **anchor_text** | **String** | Suggested anchor text | |
|
|
9
|
+
| **context** | **String** | Context where the link should be placed | [optional] |
|
|
10
|
+
| **source_page** | [**PageInfo**](PageInfo.md) | | |
|
|
11
|
+
| **target_page** | [**PageInfo**](PageInfo.md) | | |
|
|
12
|
+
| **reasoning** | **String** | AI reasoning for the suggestion | [optional] |
|
|
13
|
+
|
|
14
|
+
## Example
|
|
15
|
+
|
|
16
|
+
```ruby
|
|
17
|
+
require 'openapi_client'
|
|
18
|
+
|
|
19
|
+
instance = OpenapiClient::LinkOpportunity.new(
|
|
20
|
+
relevance_score: 0.85,
|
|
21
|
+
anchor_text: internal linking,
|
|
22
|
+
context: Learn more about internal linking strategies.,
|
|
23
|
+
source_page: null,
|
|
24
|
+
target_page: null,
|
|
25
|
+
reasoning: High semantic similarity between source and target content
|
|
26
|
+
)
|
|
27
|
+
```
|
|
28
|
+
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# OpenapiClient::ListImplementations200Response
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **success** | **Boolean** | | [optional] |
|
|
8
|
+
| **implementations** | [**Array<Implementation>**](Implementation.md) | | [optional] |
|
|
9
|
+
| **count** | **Integer** | Number of implementations returned | [optional] |
|
|
10
|
+
| **filters** | **Object** | Applied filters | [optional] |
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```ruby
|
|
15
|
+
require 'openapi_client'
|
|
16
|
+
|
|
17
|
+
instance = OpenapiClient::ListImplementations200Response.new(
|
|
18
|
+
success: true,
|
|
19
|
+
implementations: null,
|
|
20
|
+
count: 25,
|
|
21
|
+
filters: null
|
|
22
|
+
)
|
|
23
|
+
```
|
|
24
|
+
|
data/docs/PageInfo.md
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# OpenapiClient::PageInfo
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **url** | **String** | Page URL | |
|
|
8
|
+
| **title** | **String** | Page title | |
|
|
9
|
+
| **description** | **String** | Page description | [optional] |
|
|
10
|
+
| **word_count** | **Integer** | Page word count | [optional] |
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```ruby
|
|
15
|
+
require 'openapi_client'
|
|
16
|
+
|
|
17
|
+
instance = OpenapiClient::PageInfo.new(
|
|
18
|
+
url: https://example.com/page,
|
|
19
|
+
title: Page Title,
|
|
20
|
+
description: Page description,
|
|
21
|
+
word_count: 500
|
|
22
|
+
)
|
|
23
|
+
```
|
|
24
|
+
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# OpenapiClient::PageLimitStatus
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **limit** | **Integer** | Page limit | |
|
|
8
|
+
| **used** | **Integer** | Pages used | |
|
|
9
|
+
| **remaining** | **Integer** | Pages remaining | |
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```ruby
|
|
14
|
+
require 'openapi_client'
|
|
15
|
+
|
|
16
|
+
instance = OpenapiClient::PageLimitStatus.new(
|
|
17
|
+
limit: 1000,
|
|
18
|
+
used: 150,
|
|
19
|
+
remaining: 850
|
|
20
|
+
)
|
|
21
|
+
```
|
|
22
|
+
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# OpenapiClient::PeriodCharges
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **start_date** | **Time** | Period start date | |
|
|
8
|
+
| **end_date** | **Time** | Period end date | |
|
|
9
|
+
| **total_charges** | **Float** | Total charges for the period | |
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```ruby
|
|
14
|
+
require 'openapi_client'
|
|
15
|
+
|
|
16
|
+
instance = OpenapiClient::PeriodCharges.new(
|
|
17
|
+
start_date: 2025-01-01T00:00Z,
|
|
18
|
+
end_date: 2025-01-31T23:59:59Z,
|
|
19
|
+
total_charges: 25.5
|
|
20
|
+
)
|
|
21
|
+
```
|
|
22
|
+
|
data/docs/Project.md
ADDED
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
# OpenapiClient::Project
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **id** | **String** | Unique project identifier | |
|
|
8
|
+
| **name** | **String** | Project name | |
|
|
9
|
+
| **domain** | **String** | Website domain URL | |
|
|
10
|
+
| **user_id** | **String** | User who owns the project | |
|
|
11
|
+
| **prompt** | **String** | Natural language prompt for crawling | [optional] |
|
|
12
|
+
| **search_query** | **String** | Search query for targeted crawling | [optional] |
|
|
13
|
+
| **sitemap_mode** | **String** | How to handle sitemaps | [optional] |
|
|
14
|
+
| **include_subdomains** | **Boolean** | Whether to include subdomains | [optional] |
|
|
15
|
+
| **ignore_query_params** | **Boolean** | Whether to ignore URL query parameters | [optional] |
|
|
16
|
+
| **max_discovery_depth** | **Integer** | Maximum crawl depth | [optional] |
|
|
17
|
+
| **exclude_paths** | **Array<String>** | Paths to exclude from crawling | [optional] |
|
|
18
|
+
| **include_paths** | **Array<String>** | Specific paths to include | [optional] |
|
|
19
|
+
| **crawl_entire_domain** | **Boolean** | Whether to crawl the entire domain | [optional] |
|
|
20
|
+
| **allow_external_links** | **Boolean** | Whether to allow external links | [optional] |
|
|
21
|
+
| **max_pages** | **Integer** | Maximum number of pages to crawl | [optional] |
|
|
22
|
+
| **crawl_delay** | **Integer** | Delay between crawl requests (ms) | [optional] |
|
|
23
|
+
| **crawl_max_concurrency** | **Integer** | Maximum concurrent crawl requests | [optional] |
|
|
24
|
+
| **only_main_content** | **Boolean** | Whether to extract only main content | [optional] |
|
|
25
|
+
| **custom_headers** | **Hash<String, String>** | Custom headers for crawling | [optional] |
|
|
26
|
+
| **wait_for** | **Integer** | Wait time for page load (ms) | [optional] |
|
|
27
|
+
| **block_ads** | **Boolean** | Whether to block ads | [optional] |
|
|
28
|
+
| **proxy_mode** | **String** | Proxy mode for crawling | [optional] |
|
|
29
|
+
| **use_reranking** | **Boolean** | Whether to use AI reranking | [optional] |
|
|
30
|
+
| **enable_change_tracking** | **Boolean** | Whether to enable change tracking | [optional] |
|
|
31
|
+
| **created_at** | **Time** | Project creation timestamp | |
|
|
32
|
+
| **updated_at** | **Time** | Last update timestamp | |
|
|
33
|
+
| **_count** | [**ProjectCount**](ProjectCount.md) | | [optional] |
|
|
34
|
+
|
|
35
|
+
## Example
|
|
36
|
+
|
|
37
|
+
```ruby
|
|
38
|
+
require 'openapi_client'
|
|
39
|
+
|
|
40
|
+
instance = OpenapiClient::Project.new(
|
|
41
|
+
id: proj-123,
|
|
42
|
+
name: My Website,
|
|
43
|
+
domain: https://example.com,
|
|
44
|
+
user_id: user-456,
|
|
45
|
+
prompt: Only crawl blog posts and documentation,
|
|
46
|
+
search_query: SEO optimization,
|
|
47
|
+
sitemap_mode: include,
|
|
48
|
+
include_subdomains: true,
|
|
49
|
+
ignore_query_params: true,
|
|
50
|
+
max_discovery_depth: 3,
|
|
51
|
+
exclude_paths: ["/admin","/private"],
|
|
52
|
+
include_paths: ["/blog","/docs"],
|
|
53
|
+
crawl_entire_domain: false,
|
|
54
|
+
allow_external_links: false,
|
|
55
|
+
max_pages: 100,
|
|
56
|
+
crawl_delay: 1000,
|
|
57
|
+
crawl_max_concurrency: 5,
|
|
58
|
+
only_main_content: true,
|
|
59
|
+
custom_headers: null,
|
|
60
|
+
wait_for: 0,
|
|
61
|
+
block_ads: true,
|
|
62
|
+
proxy_mode: auto,
|
|
63
|
+
use_reranking: true,
|
|
64
|
+
enable_change_tracking: false,
|
|
65
|
+
created_at: 2025-01-15T10:00Z,
|
|
66
|
+
updated_at: 2025-01-15T10:00Z,
|
|
67
|
+
_count: null
|
|
68
|
+
)
|
|
69
|
+
```
|
|
70
|
+
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# OpenapiClient::ProjectCount
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **pages** | **Integer** | | [optional] |
|
|
8
|
+
| **suggestions** | **Integer** | | [optional] |
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```ruby
|
|
13
|
+
require 'openapi_client'
|
|
14
|
+
|
|
15
|
+
instance = OpenapiClient::ProjectCount.new(
|
|
16
|
+
pages: 150,
|
|
17
|
+
suggestions: 25
|
|
18
|
+
)
|
|
19
|
+
```
|
|
20
|
+
|