All URIs are relative to https://api.rankvectors.com
| Method | HTTP request | Description |
|---|---|---|
| get_implementation | GET /api/projects/{projectId}/implementations/{implementationId} | Get implementation details |
| implement_links | POST /api/projects/{projectId}/implementations | Implement link suggestions |
| list_implementations | GET /api/projects/{projectId}/implementations | List implementations |
| rollback_implementation | POST /api/projects/{projectId}/implementations/{implementationId}/rollback | Rollback implementation |
GetImplementation200Response get_implementation(project_id, implementation_id)
Get implementation details
Get detailed information about a specific implementation
- Api Key Authentication (ApiKeyAuth):
import rankvectors
from rankvectors.models.get_implementation200_response import GetImplementation200Response
from rankvectors.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://api.rankvectors.com
# See configuration.py for a list of all supported configuration parameters.
configuration = rankvectors.Configuration(
host = "https://api.rankvectors.com"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure API key authorization: ApiKeyAuth
configuration.api_key['ApiKeyAuth'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['ApiKeyAuth'] = 'Bearer'
# Enter a context with an instance of the API client
with rankvectors.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = rankvectors.ImplementationsApi(api_client)
project_id = 'proj-123' # str | Unique identifier for the project
implementation_id = 'impl-123' # str | Unique identifier for the implementation
try:
# Get implementation details
api_response = api_instance.get_implementation(project_id, implementation_id)
print("The response of ImplementationsApi->get_implementation:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling ImplementationsApi->get_implementation: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| project_id | str | Unique identifier for the project | |
| implementation_id | str | Unique identifier for the implementation |
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Implementation details | - |
| 401 | Unauthorized - missing or invalid API key | - |
| 403 | Forbidden - access denied to resource | - |
| 404 | Not found - resource doesn't exist | - |
| 500 | Internal server error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ImplementationResponse implement_links(project_id, implementation_request)
Implement link suggestions
Implement one or more link suggestions
- Api Key Authentication (ApiKeyAuth):
import rankvectors
from rankvectors.models.implementation_request import ImplementationRequest
from rankvectors.models.implementation_response import ImplementationResponse
from rankvectors.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://api.rankvectors.com
# See configuration.py for a list of all supported configuration parameters.
configuration = rankvectors.Configuration(
host = "https://api.rankvectors.com"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure API key authorization: ApiKeyAuth
configuration.api_key['ApiKeyAuth'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['ApiKeyAuth'] = 'Bearer'
# Enter a context with an instance of the API client
with rankvectors.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = rankvectors.ImplementationsApi(api_client)
project_id = 'proj-123' # str | Unique identifier for the project
implementation_request = {"suggestionIds":["sugg-123"],"platform":"custom","credentials":{"webhookUrl":"https://yourapi.com/rankvectors-webhook","apiKey":"your-webhook-secret-key"}} # ImplementationRequest |
try:
# Implement link suggestions
api_response = api_instance.implement_links(project_id, implementation_request)
print("The response of ImplementationsApi->implement_links:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling ImplementationsApi->implement_links: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| project_id | str | Unique identifier for the project | |
| implementation_request | ImplementationRequest |
- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Implementation results | - |
| 400 | Bad request - invalid parameters | - |
| 401 | Unauthorized - missing or invalid API key | - |
| 403 | Forbidden - access denied to resource | - |
| 404 | Not found - resource doesn't exist | - |
| 500 | Internal server error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ListImplementations200Response list_implementations(project_id, status=status, platform=platform, limit=limit, offset=offset)
List implementations
Get implementation history for a project
- Api Key Authentication (ApiKeyAuth):
import rankvectors
from rankvectors.models.list_implementations200_response import ListImplementations200Response
from rankvectors.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://api.rankvectors.com
# See configuration.py for a list of all supported configuration parameters.
configuration = rankvectors.Configuration(
host = "https://api.rankvectors.com"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure API key authorization: ApiKeyAuth
configuration.api_key['ApiKeyAuth'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['ApiKeyAuth'] = 'Bearer'
# Enter a context with an instance of the API client
with rankvectors.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = rankvectors.ImplementationsApi(api_client)
project_id = 'proj-123' # str | Unique identifier for the project
status = 'status_example' # str | Filter by implementation status (optional)
platform = 'platform_example' # str | Filter by platform (optional)
limit = 50 # int | Results per page (optional) (default to 50)
offset = 0 # int | Pagination offset (optional) (default to 0)
try:
# List implementations
api_response = api_instance.list_implementations(project_id, status=status, platform=platform, limit=limit, offset=offset)
print("The response of ImplementationsApi->list_implementations:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling ImplementationsApi->list_implementations: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| project_id | str | Unique identifier for the project | |
| status | str | Filter by implementation status | [optional] |
| platform | str | Filter by platform | [optional] |
| limit | int | Results per page | [optional] [default to 50] |
| offset | int | Pagination offset | [optional] [default to 0] |
ListImplementations200Response
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Implementation history | - |
| 401 | Unauthorized - missing or invalid API key | - |
| 403 | Forbidden - access denied to resource | - |
| 404 | Not found - resource doesn't exist | - |
| 500 | Internal server error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
RollbackImplementation200Response rollback_implementation(project_id, implementation_id, rollback_implementation_request)
Rollback implementation
Undo a link implementation and restore original content.
Rollback is universally available for all platforms:
- WordPress (via custom/webhook)
- Shopify (direct API)
- Vercel (via custom/webhook)
- Webflow (via custom/webhook)
- Contentful (via custom/webhook)
- Custom (via webhook)
The rollback process restores the original content that was stored during implementation.
- Api Key Authentication (ApiKeyAuth):
import rankvectors
from rankvectors.models.rollback_implementation200_response import RollbackImplementation200Response
from rankvectors.models.rollback_implementation_request import RollbackImplementationRequest
from rankvectors.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://api.rankvectors.com
# See configuration.py for a list of all supported configuration parameters.
configuration = rankvectors.Configuration(
host = "https://api.rankvectors.com"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure API key authorization: ApiKeyAuth
configuration.api_key['ApiKeyAuth'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['ApiKeyAuth'] = 'Bearer'
# Enter a context with an instance of the API client
with rankvectors.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = rankvectors.ImplementationsApi(api_client)
project_id = 'proj-123' # str | Unique identifier for the project
implementation_id = 'impl-123' # str | Unique identifier for the implementation
rollback_implementation_request = rankvectors.RollbackImplementationRequest() # RollbackImplementationRequest |
try:
# Rollback implementation
api_response = api_instance.rollback_implementation(project_id, implementation_id, rollback_implementation_request)
print("The response of ImplementationsApi->rollback_implementation:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling ImplementationsApi->rollback_implementation: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| project_id | str | Unique identifier for the project | |
| implementation_id | str | Unique identifier for the implementation | |
| rollback_implementation_request | RollbackImplementationRequest |
RollbackImplementation200Response
- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Rollback successful | - |
| 400 | Bad request - invalid parameters | - |
| 401 | Unauthorized - missing or invalid API key | - |
| 403 | Forbidden - access denied to resource | - |
| 404 | Not found - resource doesn't exist | - |
| 500 | Internal server error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]