All URIs are relative to https://api.wordlift.io
| Method | HTTP request | Description |
|---|---|---|
| create_sync | POST /merchants/{merchantId}/syncs | Start |
| get_merchant_sync | GET /merchants/{merchantId}/syncs/{id} | Get by id |
| list_merchant_syncs | GET /merchants/{merchantId}/syncs | List |
MerchantSync create_sync(merchant_id)
Start
- OAuth Authentication (OAuth2):
import wordlift_client
from wordlift_client.models.merchant_sync import MerchantSync
from wordlift_client.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://api.wordlift.io
# See configuration.py for a list of all supported configuration parameters.
configuration = wordlift_client.Configuration(
host = "https://api.wordlift.io"
)
# 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.
configuration.access_token = os.environ["ACCESS_TOKEN"]
# Enter a context with an instance of the API client
async with wordlift_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = wordlift_client.MerchantSyncsApi(api_client)
merchant_id = 56 # int | The Merchant's `id`
try:
# Start
api_response = await api_instance.create_sync(merchant_id)
print("The response of MerchantSyncsApi->create_sync:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling MerchantSyncsApi->create_sync: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| merchant_id | int | The Merchant's `id` |
- Content-Type: Not defined
- Accept: /, application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Found. | - |
| 400 | Another merchant sync is in already in progress. There can only be one sync running at a time. | - |
| 401 | Authentication Failure | - |
| 403 | Authorization Failure | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
MerchantSync get_merchant_sync(merchant_id, id)
Get by id
- OAuth Authentication (OAuth2):
import wordlift_client
from wordlift_client.models.merchant_sync import MerchantSync
from wordlift_client.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://api.wordlift.io
# See configuration.py for a list of all supported configuration parameters.
configuration = wordlift_client.Configuration(
host = "https://api.wordlift.io"
)
# 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.
configuration.access_token = os.environ["ACCESS_TOKEN"]
# Enter a context with an instance of the API client
async with wordlift_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = wordlift_client.MerchantSyncsApi(api_client)
merchant_id = 56 # int | The Merchant's `id`
id = 56 # int | The Merchant Sync `id`.
try:
# Get by id
api_response = await api_instance.get_merchant_sync(merchant_id, id)
print("The response of MerchantSyncsApi->get_merchant_sync:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling MerchantSyncsApi->get_merchant_sync: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| merchant_id | int | The Merchant's `id` | |
| id | int | The Merchant Sync `id`. |
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Found. | - |
| 401 | Authentication Failure | - |
| 404 | Not Found | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
PageMerchantSync list_merchant_syncs(merchant_id, cursor=cursor, limit=limit, sort=sort)
List
List the Merchants Syncs
- OAuth Authentication (OAuth2):
import wordlift_client
from wordlift_client.models.page_merchant_sync import PageMerchantSync
from wordlift_client.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://api.wordlift.io
# See configuration.py for a list of all supported configuration parameters.
configuration = wordlift_client.Configuration(
host = "https://api.wordlift.io"
)
# 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.
configuration.access_token = os.environ["ACCESS_TOKEN"]
# Enter a context with an instance of the API client
async with wordlift_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = wordlift_client.MerchantSyncsApi(api_client)
merchant_id = 56 # int | The Merchant's `id`
cursor = 'cursor_example' # str | The cursor (optional)
limit = 10 # int | The maximum number of results (optional) (default to 10)
sort = '+id' # str | The sorting, `+id` or `-id` (optional) (default to '+id')
try:
# List
api_response = await api_instance.list_merchant_syncs(merchant_id, cursor=cursor, limit=limit, sort=sort)
print("The response of MerchantSyncsApi->list_merchant_syncs:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling MerchantSyncsApi->list_merchant_syncs: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| merchant_id | int | The Merchant's `id` | |
| cursor | str | The cursor | [optional] |
| limit | int | The maximum number of results | [optional] [default to 10] |
| sort | str | The sorting, `+id` or `-id` | [optional] [default to '+id'] |
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Found | - |
| 401 | Authentication Failure | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]