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.
Files changed (157) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +9 -0
  3. data/README.md +191 -0
  4. data/Rakefile +10 -0
  5. data/docs/AddCredits200Response.md +22 -0
  6. data/docs/AddCreditsRequest.md +20 -0
  7. data/docs/AutoRechargeSettings.md +22 -0
  8. data/docs/ChangeResult.md +24 -0
  9. data/docs/ContentVerification.md +22 -0
  10. data/docs/ContentVerificationApi.md +81 -0
  11. data/docs/Crawl.md +30 -0
  12. data/docs/CrawlingApi.md +155 -0
  13. data/docs/CreateProjectRequest.md +60 -0
  14. data/docs/CreditBalance.md +30 -0
  15. data/docs/CreditBalanceInfo.md +26 -0
  16. data/docs/CreditsApi.md +161 -0
  17. data/docs/CustomCredentials.md +20 -0
  18. data/docs/DeleteProject200Response.md +20 -0
  19. data/docs/Error.md +24 -0
  20. data/docs/GenerateSuggestions200Response.md +22 -0
  21. data/docs/GenerateSuggestionsRequest.md +18 -0
  22. data/docs/GetImplementation200Response.md +20 -0
  23. data/docs/Implementation.md +36 -0
  24. data/docs/ImplementationInstructions.md +28 -0
  25. data/docs/ImplementationRequest.md +26 -0
  26. data/docs/ImplementationResponse.md +22 -0
  27. data/docs/ImplementationResult.md +24 -0
  28. data/docs/ImplementationSummary.md +24 -0
  29. data/docs/ImplementationsApi.md +313 -0
  30. data/docs/LinkOpportunity.md +28 -0
  31. data/docs/ListImplementations200Response.md +24 -0
  32. data/docs/PageInfo.md +24 -0
  33. data/docs/PageLimitStatus.md +22 -0
  34. data/docs/PeriodCharges.md +22 -0
  35. data/docs/Project.md +70 -0
  36. data/docs/ProjectCount.md +20 -0
  37. data/docs/ProjectsApi.md +292 -0
  38. data/docs/ReportImplementationStatus200Response.md +20 -0
  39. data/docs/ReportImplementationStatusRequest.md +22 -0
  40. data/docs/Rollback.md +24 -0
  41. data/docs/RollbackImplementation200Response.md +22 -0
  42. data/docs/RollbackImplementationRequest.md +20 -0
  43. data/docs/SpendingLimitStatus.md +24 -0
  44. data/docs/StartCrawlRequest.md +18 -0
  45. data/docs/StepByStepInstructions.md +20 -0
  46. data/docs/Suggestion.md +38 -0
  47. data/docs/SuggestionsApi.md +235 -0
  48. data/docs/UpdateSuggestionRequest.md +18 -0
  49. data/docs/UsageHistoryItem.md +26 -0
  50. data/docs/VerifyContent200Response.md +20 -0
  51. data/docs/VerifyContentRequest.md +20 -0
  52. data/docs/WebhooksApi.md +151 -0
  53. data/git_push.sh +57 -0
  54. data/lib/openapi_client/api/content_verification_api.rb +96 -0
  55. data/lib/openapi_client/api/crawling_api.rb +155 -0
  56. data/lib/openapi_client/api/credits_api.rb +168 -0
  57. data/lib/openapi_client/api/implementations_api.rb +332 -0
  58. data/lib/openapi_client/api/projects_api.rb +273 -0
  59. data/lib/openapi_client/api/suggestions_api.rb +242 -0
  60. data/lib/openapi_client/api/webhooks_api.rb +154 -0
  61. data/lib/openapi_client/api_client.rb +393 -0
  62. data/lib/openapi_client/api_error.rb +58 -0
  63. data/lib/openapi_client/configuration.rb +316 -0
  64. data/lib/openapi_client/models/add_credits200_response.rb +238 -0
  65. data/lib/openapi_client/models/add_credits_request.rb +259 -0
  66. data/lib/openapi_client/models/auto_recharge_settings.rb +292 -0
  67. data/lib/openapi_client/models/change_result.rb +328 -0
  68. data/lib/openapi_client/models/content_verification.rb +274 -0
  69. data/lib/openapi_client/models/crawl.rb +373 -0
  70. data/lib/openapi_client/models/create_project_request.rb +541 -0
  71. data/lib/openapi_client/models/credit_balance.rb +379 -0
  72. data/lib/openapi_client/models/credit_balance_info.rb +329 -0
  73. data/lib/openapi_client/models/custom_credentials.rb +265 -0
  74. data/lib/openapi_client/models/delete_project200_response.rb +229 -0
  75. data/lib/openapi_client/models/error.rb +268 -0
  76. data/lib/openapi_client/models/generate_suggestions200_response.rb +261 -0
  77. data/lib/openapi_client/models/generate_suggestions_request.rb +249 -0
  78. data/lib/openapi_client/models/get_implementation200_response.rb +229 -0
  79. data/lib/openapi_client/models/implementation.rb +454 -0
  80. data/lib/openapi_client/models/implementation_instructions.rb +372 -0
  81. data/lib/openapi_client/models/implementation_request.rb +362 -0
  82. data/lib/openapi_client/models/implementation_response.rb +293 -0
  83. data/lib/openapi_client/models/implementation_result.rb +268 -0
  84. data/lib/openapi_client/models/implementation_summary.rb +319 -0
  85. data/lib/openapi_client/models/link_opportunity.rb +355 -0
  86. data/lib/openapi_client/models/list_implementations200_response.rb +251 -0
  87. data/lib/openapi_client/models/page_info.rb +285 -0
  88. data/lib/openapi_client/models/page_limit_status.rb +292 -0
  89. data/lib/openapi_client/models/period_charges.rb +292 -0
  90. data/lib/openapi_client/models/project.rb +634 -0
  91. data/lib/openapi_client/models/project_count.rb +230 -0
  92. data/lib/openapi_client/models/report_implementation_status200_response.rb +229 -0
  93. data/lib/openapi_client/models/report_implementation_status_request.rb +316 -0
  94. data/lib/openapi_client/models/rollback.rb +302 -0
  95. data/lib/openapi_client/models/rollback_implementation200_response.rb +239 -0
  96. data/lib/openapi_client/models/rollback_implementation_request.rb +247 -0
  97. data/lib/openapi_client/models/spending_limit_status.rb +319 -0
  98. data/lib/openapi_client/models/start_crawl_request.rb +249 -0
  99. data/lib/openapi_client/models/step_by_step_instructions.rb +267 -0
  100. data/lib/openapi_client/models/suggestion.rb +497 -0
  101. data/lib/openapi_client/models/update_suggestion_request.rb +262 -0
  102. data/lib/openapi_client/models/usage_history_item.rb +331 -0
  103. data/lib/openapi_client/models/verify_content200_response.rb +229 -0
  104. data/lib/openapi_client/models/verify_content_request.rb +265 -0
  105. data/lib/openapi_client/version.rb +15 -0
  106. data/lib/openapi_client.rb +87 -0
  107. data/openapi_client.gemspec +39 -0
  108. data/spec/api/content_verification_api_spec.rb +48 -0
  109. data/spec/api/crawling_api_spec.rb +60 -0
  110. data/spec/api/credits_api_spec.rb +63 -0
  111. data/spec/api/implementations_api_spec.rb +91 -0
  112. data/spec/api/projects_api_spec.rb +82 -0
  113. data/spec/api/suggestions_api_spec.rb +75 -0
  114. data/spec/api/webhooks_api_spec.rb +59 -0
  115. data/spec/models/add_credits200_response_spec.rb +48 -0
  116. data/spec/models/add_credits_request_spec.rb +42 -0
  117. data/spec/models/auto_recharge_settings_spec.rb +48 -0
  118. data/spec/models/change_result_spec.rb +62 -0
  119. data/spec/models/content_verification_spec.rb +48 -0
  120. data/spec/models/crawl_spec.rb +76 -0
  121. data/spec/models/create_project_request_spec.rb +170 -0
  122. data/spec/models/credit_balance_info_spec.rb +60 -0
  123. data/spec/models/credit_balance_spec.rb +72 -0
  124. data/spec/models/custom_credentials_spec.rb +42 -0
  125. data/spec/models/delete_project200_response_spec.rb +42 -0
  126. data/spec/models/error_spec.rb +54 -0
  127. data/spec/models/generate_suggestions200_response_spec.rb +48 -0
  128. data/spec/models/generate_suggestions_request_spec.rb +36 -0
  129. data/spec/models/get_implementation200_response_spec.rb +42 -0
  130. data/spec/models/implementation_instructions_spec.rb +66 -0
  131. data/spec/models/implementation_request_spec.rb +68 -0
  132. data/spec/models/implementation_response_spec.rb +48 -0
  133. data/spec/models/implementation_result_spec.rb +54 -0
  134. data/spec/models/implementation_spec.rb +102 -0
  135. data/spec/models/implementation_summary_spec.rb +54 -0
  136. data/spec/models/link_opportunity_spec.rb +66 -0
  137. data/spec/models/list_implementations200_response_spec.rb +54 -0
  138. data/spec/models/page_info_spec.rb +54 -0
  139. data/spec/models/page_limit_status_spec.rb +48 -0
  140. data/spec/models/period_charges_spec.rb +48 -0
  141. data/spec/models/project_count_spec.rb +42 -0
  142. data/spec/models/project_spec.rb +200 -0
  143. data/spec/models/report_implementation_status200_response_spec.rb +42 -0
  144. data/spec/models/report_implementation_status_request_spec.rb +52 -0
  145. data/spec/models/rollback_implementation200_response_spec.rb +48 -0
  146. data/spec/models/rollback_implementation_request_spec.rb +42 -0
  147. data/spec/models/rollback_spec.rb +54 -0
  148. data/spec/models/spending_limit_status_spec.rb +54 -0
  149. data/spec/models/start_crawl_request_spec.rb +36 -0
  150. data/spec/models/step_by_step_instructions_spec.rb +42 -0
  151. data/spec/models/suggestion_spec.rb +100 -0
  152. data/spec/models/update_suggestion_request_spec.rb +40 -0
  153. data/spec/models/usage_history_item_spec.rb +60 -0
  154. data/spec/models/verify_content200_response_spec.rb +42 -0
  155. data/spec/models/verify_content_request_spec.rb +42 -0
  156. data/spec/spec_helper.rb +111 -0
  157. metadata +288 -0
@@ -0,0 +1,235 @@
1
+ # OpenapiClient::SuggestionsApi
2
+
3
+ All URIs are relative to *https://api.rankvectors.com*
4
+
5
+ | Method | HTTP request | Description |
6
+ | ------ | ------------ | ----------- |
7
+ | [**generate_suggestions**](SuggestionsApi.md#generate_suggestions) | **POST** /api/projects/{projectId}/suggestions | Generate link suggestions |
8
+ | [**get_suggestions**](SuggestionsApi.md#get_suggestions) | **GET** /api/projects/{projectId}/suggestions | Get link suggestions |
9
+ | [**update_suggestion**](SuggestionsApi.md#update_suggestion) | **PATCH** /api/projects/{projectId}/suggestions/{suggestionId} | Update suggestion status |
10
+
11
+
12
+ ## generate_suggestions
13
+
14
+ > <GenerateSuggestions200Response> generate_suggestions(project_id, opts)
15
+
16
+ Generate link suggestions
17
+
18
+ Generate new AI-powered link suggestions for a project
19
+
20
+ ### Examples
21
+
22
+ ```ruby
23
+ require 'time'
24
+ require 'openapi_client'
25
+ # setup authorization
26
+ OpenapiClient.configure do |config|
27
+ # Configure API key authorization: ApiKeyAuth
28
+ config.api_key['Authorization'] = 'YOUR API KEY'
29
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
30
+ # config.api_key_prefix['Authorization'] = 'Bearer'
31
+ end
32
+
33
+ api_instance = OpenapiClient::SuggestionsApi.new
34
+ project_id = 'proj-123' # String | Unique identifier for the project
35
+ opts = {
36
+ generate_suggestions_request: OpenapiClient::GenerateSuggestionsRequest.new # GenerateSuggestionsRequest |
37
+ }
38
+
39
+ begin
40
+ # Generate link suggestions
41
+ result = api_instance.generate_suggestions(project_id, opts)
42
+ p result
43
+ rescue OpenapiClient::ApiError => e
44
+ puts "Error when calling SuggestionsApi->generate_suggestions: #{e}"
45
+ end
46
+ ```
47
+
48
+ #### Using the generate_suggestions_with_http_info variant
49
+
50
+ This returns an Array which contains the response data, status code and headers.
51
+
52
+ > <Array(<GenerateSuggestions200Response>, Integer, Hash)> generate_suggestions_with_http_info(project_id, opts)
53
+
54
+ ```ruby
55
+ begin
56
+ # Generate link suggestions
57
+ data, status_code, headers = api_instance.generate_suggestions_with_http_info(project_id, opts)
58
+ p status_code # => 2xx
59
+ p headers # => { ... }
60
+ p data # => <GenerateSuggestions200Response>
61
+ rescue OpenapiClient::ApiError => e
62
+ puts "Error when calling SuggestionsApi->generate_suggestions_with_http_info: #{e}"
63
+ end
64
+ ```
65
+
66
+ ### Parameters
67
+
68
+ | Name | Type | Description | Notes |
69
+ | ---- | ---- | ----------- | ----- |
70
+ | **project_id** | **String** | Unique identifier for the project | |
71
+ | **generate_suggestions_request** | [**GenerateSuggestionsRequest**](GenerateSuggestionsRequest.md) | | [optional] |
72
+
73
+ ### Return type
74
+
75
+ [**GenerateSuggestions200Response**](GenerateSuggestions200Response.md)
76
+
77
+ ### Authorization
78
+
79
+ [ApiKeyAuth](../README.md#ApiKeyAuth)
80
+
81
+ ### HTTP request headers
82
+
83
+ - **Content-Type**: application/json
84
+ - **Accept**: application/json
85
+
86
+
87
+ ## get_suggestions
88
+
89
+ > <Array<Suggestion>> get_suggestions(project_id, opts)
90
+
91
+ Get link suggestions
92
+
93
+ Get AI-generated link suggestions for a project
94
+
95
+ ### Examples
96
+
97
+ ```ruby
98
+ require 'time'
99
+ require 'openapi_client'
100
+ # setup authorization
101
+ OpenapiClient.configure do |config|
102
+ # Configure API key authorization: ApiKeyAuth
103
+ config.api_key['Authorization'] = 'YOUR API KEY'
104
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
105
+ # config.api_key_prefix['Authorization'] = 'Bearer'
106
+ end
107
+
108
+ api_instance = OpenapiClient::SuggestionsApi.new
109
+ project_id = 'proj-123' # String | Unique identifier for the project
110
+ opts = {
111
+ status: 'pending' # String | Filter suggestions by status
112
+ }
113
+
114
+ begin
115
+ # Get link suggestions
116
+ result = api_instance.get_suggestions(project_id, opts)
117
+ p result
118
+ rescue OpenapiClient::ApiError => e
119
+ puts "Error when calling SuggestionsApi->get_suggestions: #{e}"
120
+ end
121
+ ```
122
+
123
+ #### Using the get_suggestions_with_http_info variant
124
+
125
+ This returns an Array which contains the response data, status code and headers.
126
+
127
+ > <Array(<Array<Suggestion>>, Integer, Hash)> get_suggestions_with_http_info(project_id, opts)
128
+
129
+ ```ruby
130
+ begin
131
+ # Get link suggestions
132
+ data, status_code, headers = api_instance.get_suggestions_with_http_info(project_id, opts)
133
+ p status_code # => 2xx
134
+ p headers # => { ... }
135
+ p data # => <Array<Suggestion>>
136
+ rescue OpenapiClient::ApiError => e
137
+ puts "Error when calling SuggestionsApi->get_suggestions_with_http_info: #{e}"
138
+ end
139
+ ```
140
+
141
+ ### Parameters
142
+
143
+ | Name | Type | Description | Notes |
144
+ | ---- | ---- | ----------- | ----- |
145
+ | **project_id** | **String** | Unique identifier for the project | |
146
+ | **status** | **String** | Filter suggestions by status | [optional] |
147
+
148
+ ### Return type
149
+
150
+ [**Array&lt;Suggestion&gt;**](Suggestion.md)
151
+
152
+ ### Authorization
153
+
154
+ [ApiKeyAuth](../README.md#ApiKeyAuth)
155
+
156
+ ### HTTP request headers
157
+
158
+ - **Content-Type**: Not defined
159
+ - **Accept**: application/json
160
+
161
+
162
+ ## update_suggestion
163
+
164
+ > <Suggestion> update_suggestion(project_id, suggestion_id, update_suggestion_request)
165
+
166
+ Update suggestion status
167
+
168
+ Update the status of a link suggestion
169
+
170
+ ### Examples
171
+
172
+ ```ruby
173
+ require 'time'
174
+ require 'openapi_client'
175
+ # setup authorization
176
+ OpenapiClient.configure do |config|
177
+ # Configure API key authorization: ApiKeyAuth
178
+ config.api_key['Authorization'] = 'YOUR API KEY'
179
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
180
+ # config.api_key_prefix['Authorization'] = 'Bearer'
181
+ end
182
+
183
+ api_instance = OpenapiClient::SuggestionsApi.new
184
+ project_id = 'proj-123' # String | Unique identifier for the project
185
+ suggestion_id = 'sugg-123' # String | Unique identifier for the suggestion
186
+ update_suggestion_request = OpenapiClient::UpdateSuggestionRequest.new({status: 'approved'}) # UpdateSuggestionRequest |
187
+
188
+ begin
189
+ # Update suggestion status
190
+ result = api_instance.update_suggestion(project_id, suggestion_id, update_suggestion_request)
191
+ p result
192
+ rescue OpenapiClient::ApiError => e
193
+ puts "Error when calling SuggestionsApi->update_suggestion: #{e}"
194
+ end
195
+ ```
196
+
197
+ #### Using the update_suggestion_with_http_info variant
198
+
199
+ This returns an Array which contains the response data, status code and headers.
200
+
201
+ > <Array(<Suggestion>, Integer, Hash)> update_suggestion_with_http_info(project_id, suggestion_id, update_suggestion_request)
202
+
203
+ ```ruby
204
+ begin
205
+ # Update suggestion status
206
+ data, status_code, headers = api_instance.update_suggestion_with_http_info(project_id, suggestion_id, update_suggestion_request)
207
+ p status_code # => 2xx
208
+ p headers # => { ... }
209
+ p data # => <Suggestion>
210
+ rescue OpenapiClient::ApiError => e
211
+ puts "Error when calling SuggestionsApi->update_suggestion_with_http_info: #{e}"
212
+ end
213
+ ```
214
+
215
+ ### Parameters
216
+
217
+ | Name | Type | Description | Notes |
218
+ | ---- | ---- | ----------- | ----- |
219
+ | **project_id** | **String** | Unique identifier for the project | |
220
+ | **suggestion_id** | **String** | Unique identifier for the suggestion | |
221
+ | **update_suggestion_request** | [**UpdateSuggestionRequest**](UpdateSuggestionRequest.md) | | |
222
+
223
+ ### Return type
224
+
225
+ [**Suggestion**](Suggestion.md)
226
+
227
+ ### Authorization
228
+
229
+ [ApiKeyAuth](../README.md#ApiKeyAuth)
230
+
231
+ ### HTTP request headers
232
+
233
+ - **Content-Type**: application/json
234
+ - **Accept**: application/json
235
+
@@ -0,0 +1,18 @@
1
+ # OpenapiClient::UpdateSuggestionRequest
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **status** | **String** | New status for the suggestion | |
8
+
9
+ ## Example
10
+
11
+ ```ruby
12
+ require 'openapi_client'
13
+
14
+ instance = OpenapiClient::UpdateSuggestionRequest.new(
15
+ status: approved
16
+ )
17
+ ```
18
+
@@ -0,0 +1,26 @@
1
+ # OpenapiClient::UsageHistoryItem
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **id** | **String** | Usage item identifier | |
8
+ | **action** | **String** | Action performed | |
9
+ | **credits_used** | **Float** | Credits used | |
10
+ | **created_at** | **Time** | Usage timestamp | |
11
+ | **metadata** | **Hash&lt;String, Object&gt;** | Additional metadata | [optional] |
12
+
13
+ ## Example
14
+
15
+ ```ruby
16
+ require 'openapi_client'
17
+
18
+ instance = OpenapiClient::UsageHistoryItem.new(
19
+ id: usage-1,
20
+ action: link_implemented,
21
+ credits_used: 1,
22
+ created_at: 2025-01-15T10:00Z,
23
+ metadata: {&quot;suggestionId&quot;:&quot;sugg-123&quot;,&quot;implementationId&quot;:&quot;impl-123&quot;}
24
+ )
25
+ ```
26
+
@@ -0,0 +1,20 @@
1
+ # OpenapiClient::VerifyContent200Response
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **success** | **Boolean** | | [optional] |
8
+ | **verification** | [**ContentVerification**](ContentVerification.md) | | [optional] |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'openapi_client'
14
+
15
+ instance = OpenapiClient::VerifyContent200Response.new(
16
+ success: true,
17
+ verification: null
18
+ )
19
+ ```
20
+
@@ -0,0 +1,20 @@
1
+ # OpenapiClient::VerifyContentRequest
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **page_url** | **String** | URL of the page to verify | |
8
+ | **suggestion_id** | **String** | ID of the suggestion to verify | |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'openapi_client'
14
+
15
+ instance = OpenapiClient::VerifyContentRequest.new(
16
+ page_url: https://example.com/page,
17
+ suggestion_id: sugg-123
18
+ )
19
+ ```
20
+
@@ -0,0 +1,151 @@
1
+ # OpenapiClient::WebhooksApi
2
+
3
+ All URIs are relative to *https://api.rankvectors.com*
4
+
5
+ | Method | HTTP request | Description |
6
+ | ------ | ------------ | ----------- |
7
+ | [**get_implementation_instructions**](WebhooksApi.md#get_implementation_instructions) | **GET** /api/webhook/implement-link | Get implementation instructions |
8
+ | [**report_implementation_status**](WebhooksApi.md#report_implementation_status) | **POST** /api/webhook/implement-link | Report implementation status |
9
+
10
+
11
+ ## get_implementation_instructions
12
+
13
+ > <ImplementationInstructions> get_implementation_instructions(suggestion_id)
14
+
15
+ Get implementation instructions
16
+
17
+ Get step-by-step instructions for implementing a link
18
+
19
+ ### Examples
20
+
21
+ ```ruby
22
+ require 'time'
23
+ require 'openapi_client'
24
+ # setup authorization
25
+ OpenapiClient.configure do |config|
26
+ # Configure API key authorization: ApiKeyAuth
27
+ config.api_key['Authorization'] = 'YOUR API KEY'
28
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
29
+ # config.api_key_prefix['Authorization'] = 'Bearer'
30
+ end
31
+
32
+ api_instance = OpenapiClient::WebhooksApi.new
33
+ suggestion_id = 'sugg-123' # String | ID of the suggestion to implement
34
+
35
+ begin
36
+ # Get implementation instructions
37
+ result = api_instance.get_implementation_instructions(suggestion_id)
38
+ p result
39
+ rescue OpenapiClient::ApiError => e
40
+ puts "Error when calling WebhooksApi->get_implementation_instructions: #{e}"
41
+ end
42
+ ```
43
+
44
+ #### Using the get_implementation_instructions_with_http_info variant
45
+
46
+ This returns an Array which contains the response data, status code and headers.
47
+
48
+ > <Array(<ImplementationInstructions>, Integer, Hash)> get_implementation_instructions_with_http_info(suggestion_id)
49
+
50
+ ```ruby
51
+ begin
52
+ # Get implementation instructions
53
+ data, status_code, headers = api_instance.get_implementation_instructions_with_http_info(suggestion_id)
54
+ p status_code # => 2xx
55
+ p headers # => { ... }
56
+ p data # => <ImplementationInstructions>
57
+ rescue OpenapiClient::ApiError => e
58
+ puts "Error when calling WebhooksApi->get_implementation_instructions_with_http_info: #{e}"
59
+ end
60
+ ```
61
+
62
+ ### Parameters
63
+
64
+ | Name | Type | Description | Notes |
65
+ | ---- | ---- | ----------- | ----- |
66
+ | **suggestion_id** | **String** | ID of the suggestion to implement | |
67
+
68
+ ### Return type
69
+
70
+ [**ImplementationInstructions**](ImplementationInstructions.md)
71
+
72
+ ### Authorization
73
+
74
+ [ApiKeyAuth](../README.md#ApiKeyAuth)
75
+
76
+ ### HTTP request headers
77
+
78
+ - **Content-Type**: Not defined
79
+ - **Accept**: application/json
80
+
81
+
82
+ ## report_implementation_status
83
+
84
+ > <ReportImplementationStatus200Response> report_implementation_status(report_implementation_status_request)
85
+
86
+ Report implementation status
87
+
88
+ Report the status of a link implementation
89
+
90
+ ### Examples
91
+
92
+ ```ruby
93
+ require 'time'
94
+ require 'openapi_client'
95
+ # setup authorization
96
+ OpenapiClient.configure do |config|
97
+ # Configure API key authorization: ApiKeyAuth
98
+ config.api_key['Authorization'] = 'YOUR API KEY'
99
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
100
+ # config.api_key_prefix['Authorization'] = 'Bearer'
101
+ end
102
+
103
+ api_instance = OpenapiClient::WebhooksApi.new
104
+ report_implementation_status_request = OpenapiClient::ReportImplementationStatusRequest.new({suggestion_id: 'sugg-123', api_key: 'rv_1234567890abcdef', status: 'success'}) # ReportImplementationStatusRequest |
105
+
106
+ begin
107
+ # Report implementation status
108
+ result = api_instance.report_implementation_status(report_implementation_status_request)
109
+ p result
110
+ rescue OpenapiClient::ApiError => e
111
+ puts "Error when calling WebhooksApi->report_implementation_status: #{e}"
112
+ end
113
+ ```
114
+
115
+ #### Using the report_implementation_status_with_http_info variant
116
+
117
+ This returns an Array which contains the response data, status code and headers.
118
+
119
+ > <Array(<ReportImplementationStatus200Response>, Integer, Hash)> report_implementation_status_with_http_info(report_implementation_status_request)
120
+
121
+ ```ruby
122
+ begin
123
+ # Report implementation status
124
+ data, status_code, headers = api_instance.report_implementation_status_with_http_info(report_implementation_status_request)
125
+ p status_code # => 2xx
126
+ p headers # => { ... }
127
+ p data # => <ReportImplementationStatus200Response>
128
+ rescue OpenapiClient::ApiError => e
129
+ puts "Error when calling WebhooksApi->report_implementation_status_with_http_info: #{e}"
130
+ end
131
+ ```
132
+
133
+ ### Parameters
134
+
135
+ | Name | Type | Description | Notes |
136
+ | ---- | ---- | ----------- | ----- |
137
+ | **report_implementation_status_request** | [**ReportImplementationStatusRequest**](ReportImplementationStatusRequest.md) | | |
138
+
139
+ ### Return type
140
+
141
+ [**ReportImplementationStatus200Response**](ReportImplementationStatus200Response.md)
142
+
143
+ ### Authorization
144
+
145
+ [ApiKeyAuth](../README.md#ApiKeyAuth)
146
+
147
+ ### HTTP request headers
148
+
149
+ - **Content-Type**: application/json
150
+ - **Accept**: application/json
151
+
data/git_push.sh ADDED
@@ -0,0 +1,57 @@
1
+ #!/bin/sh
2
+ # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
3
+ #
4
+ # Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com"
5
+
6
+ git_user_id=$1
7
+ git_repo_id=$2
8
+ release_note=$3
9
+ git_host=$4
10
+
11
+ if [ "$git_host" = "" ]; then
12
+ git_host="github.com"
13
+ echo "[INFO] No command line input provided. Set \$git_host to $git_host"
14
+ fi
15
+
16
+ if [ "$git_user_id" = "" ]; then
17
+ git_user_id="rankvectors"
18
+ echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"
19
+ fi
20
+
21
+ if [ "$git_repo_id" = "" ]; then
22
+ git_repo_id="rankvectors-ruby-sdk"
23
+ echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
24
+ fi
25
+
26
+ if [ "$release_note" = "" ]; then
27
+ release_note="Minor update"
28
+ echo "[INFO] No command line input provided. Set \$release_note to $release_note"
29
+ fi
30
+
31
+ # Initialize the local directory as a Git repository
32
+ git init
33
+
34
+ # Adds the files in the local repository and stages them for commit.
35
+ git add .
36
+
37
+ # Commits the tracked changes and prepares them to be pushed to a remote repository.
38
+ git commit -m "$release_note"
39
+
40
+ # Sets the new remote
41
+ git_remote=$(git remote)
42
+ if [ "$git_remote" = "" ]; then # git remote not defined
43
+
44
+ if [ "$GIT_TOKEN" = "" ]; then
45
+ echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment."
46
+ git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git
47
+ else
48
+ git remote add origin https://${git_user_id}:"${GIT_TOKEN}"@${git_host}/${git_user_id}/${git_repo_id}.git
49
+ fi
50
+
51
+ fi
52
+
53
+ git pull origin master
54
+
55
+ # Pushes (Forces) the changes in the local repository up to the remote repository
56
+ echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git"
57
+ git push origin master 2>&1 | grep -v 'To https'
@@ -0,0 +1,96 @@
1
+ =begin
2
+ #RankVectors API
3
+
4
+ #Intelligent internal linking optimization API using AI. RankVectors helps you automatically discover and implement optimal internal links across your website to improve SEO performance and user experience. ## Key Features - **AI-Powered Analysis**: Uses OpenAI embeddings to find optimal linking opportunities - **Smart Crawling**: Automatically crawls and analyzes your website content - **Automated Implementation**: Implement links via webhooks or manual instructions - **Credit-Based System**: Pay-per-use model with transparent pricing - **Multi-Platform Support**: Works with any CMS or platform via REST API ## Getting Started 1. Create a project with your website URL 2. Start a crawl to analyze your content 3. Generate AI-powered link suggestions 4. Implement suggestions via API or webhook 5. Track performance and manage credits ## Authentication All API endpoints require authentication using your RankVectors API key. Include your API key in the `Authorization` header: ``` Authorization: Bearer YOUR_API_KEY ``` Get your API key from your RankVectors dashboard: Settings → API Keys
5
+
6
+ The version of the OpenAPI document: 1.2.0
7
+ Contact: support@rankvectors.com
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.16.0
10
+
11
+ =end
12
+
13
+ require 'cgi'
14
+
15
+ module OpenapiClient
16
+ class ContentVerificationApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # Verify page content
23
+ # Check if page content has changed since last crawl
24
+ # @param project_id [String] Unique identifier for the project
25
+ # @param verify_content_request [VerifyContentRequest]
26
+ # @param [Hash] opts the optional parameters
27
+ # @return [VerifyContent200Response]
28
+ def verify_content(project_id, verify_content_request, opts = {})
29
+ data, _status_code, _headers = verify_content_with_http_info(project_id, verify_content_request, opts)
30
+ data
31
+ end
32
+
33
+ # Verify page content
34
+ # Check if page content has changed since last crawl
35
+ # @param project_id [String] Unique identifier for the project
36
+ # @param verify_content_request [VerifyContentRequest]
37
+ # @param [Hash] opts the optional parameters
38
+ # @return [Array<(VerifyContent200Response, Integer, Hash)>] VerifyContent200Response data, response status code and response headers
39
+ def verify_content_with_http_info(project_id, verify_content_request, opts = {})
40
+ if @api_client.config.debugging
41
+ @api_client.config.logger.debug 'Calling API: ContentVerificationApi.verify_content ...'
42
+ end
43
+ # verify the required parameter 'project_id' is set
44
+ if @api_client.config.client_side_validation && project_id.nil?
45
+ fail ArgumentError, "Missing the required parameter 'project_id' when calling ContentVerificationApi.verify_content"
46
+ end
47
+ # verify the required parameter 'verify_content_request' is set
48
+ if @api_client.config.client_side_validation && verify_content_request.nil?
49
+ fail ArgumentError, "Missing the required parameter 'verify_content_request' when calling ContentVerificationApi.verify_content"
50
+ end
51
+ # resource path
52
+ local_var_path = '/api/projects/{projectId}/verify-content'.sub('{' + 'projectId' + '}', CGI.escape(project_id.to_s))
53
+
54
+ # query parameters
55
+ query_params = opts[:query_params] || {}
56
+
57
+ # header parameters
58
+ header_params = opts[:header_params] || {}
59
+ # HTTP header 'Accept' (if needed)
60
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
61
+ # HTTP header 'Content-Type'
62
+ content_type = @api_client.select_header_content_type(['application/json'])
63
+ if !content_type.nil?
64
+ header_params['Content-Type'] = content_type
65
+ end
66
+
67
+ # form parameters
68
+ form_params = opts[:form_params] || {}
69
+
70
+ # http body (model)
71
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(verify_content_request)
72
+
73
+ # return_type
74
+ return_type = opts[:debug_return_type] || 'VerifyContent200Response'
75
+
76
+ # auth_names
77
+ auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
78
+
79
+ new_options = opts.merge(
80
+ :operation => :"ContentVerificationApi.verify_content",
81
+ :header_params => header_params,
82
+ :query_params => query_params,
83
+ :form_params => form_params,
84
+ :body => post_body,
85
+ :auth_names => auth_names,
86
+ :return_type => return_type
87
+ )
88
+
89
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
90
+ if @api_client.config.debugging
91
+ @api_client.config.logger.debug "API called: ContentVerificationApi#verify_content\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
92
+ end
93
+ return data, status_code, headers
94
+ end
95
+ end
96
+ end