All URIs are relative to https://cloud.memsource.com/web
Method | HTTP request | Description |
---|---|---|
add_target_lang_to_trans_memory | POST /api2/v1/transMemories/{transMemoryUid}/targetLanguages | Add target language to translation memory |
clear_trans_memory | DELETE /api2/v1/transMemories/{transMemoryUid}/segments | Delete all segments |
clear_trans_memory_v2 | DELETE /api2/v2/transMemories/{transMemoryUid}/segments | Delete all segments. |
create_trans_memory | POST /api2/v1/transMemories | Create translation memory |
delete_source_and_translations | DELETE /api2/v1/transMemories/{transMemoryUid}/segments/{segmentId} | Delete both source and translation |
delete_trans_memory | DELETE /api2/v1/transMemories/{transMemoryUid} | Delete translation memory |
delete_translation | DELETE /api2/v1/transMemories/{transMemoryUid}/segments/{segmentId}/lang/{lang} | Delete segment of given language |
download_cleaned_tm | GET /api2/v1/transMemories/downloadCleaned/{asyncRequestId} | Download cleaned TM |
download_search_result | GET /api2/v1/transMemories/downloadExport/{asyncRequestId} | Download export |
edit_trans_memory | PUT /api2/v1/transMemories/{transMemoryUid} | Edit translation memory |
export_by_query_async | POST /api2/v1/transMemories/{transMemoryUid}/exportByQueryAsync | Search translation memory |
export_cleaned_tms | POST /api2/v1/transMemories/extractCleaned | Extract cleaned translation memory |
export_v2 | POST /api2/v2/transMemories/{transMemoryUid}/export | Export translation memory |
get_background_tasks1 | GET /api2/v1/transMemories/{transMemoryUid}/lastBackgroundTask | Get last task information |
get_metadata | GET /api2/v1/transMemories/{transMemoryUid}/metadata | Get translation memory metadata |
get_project_template_trans_memories2 | GET /api2/v3/projectTemplates/{projectTemplateUid}/transMemories | Get translation memories |
get_related_projects | GET /api2/v1/transMemories/{transMemoryUid}/relatedProjects | List related projects |
get_trans_memory | GET /api2/v1/transMemories/{transMemoryUid} | Get translation memory |
get_translation_resources | GET /api2/v1/projects/{projectUid}/jobs/{jobUid}/translationResources | Get translation resources |
import_trans_memory_v2 | POST /api2/v2/transMemories/{transMemoryUid}/import | Import TMX |
insert_to_trans_memory | POST /api2/v1/transMemories/{transMemoryUid}/segments | Insert segment |
list_trans_memories | GET /api2/v1/transMemories | List translation memories |
relevant_trans_memories | GET /api2/v1/projectTemplates/{projectTemplateUid}/transMemories/relevant | List project template relevant translation memories |
relevant_trans_memories1 | GET /api2/v1/projects/{projectUid}/transMemories/relevant | List project relevant translation memories |
search | POST /api2/v1/transMemories/{transMemoryUid}/search | Search translation memory (sync) |
search_by_job3 | POST /api2/v3/projects/{projectUid}/jobs/{jobUid}/transMemories/search | Search job's translation memories |
search_segment1 | POST /api2/v1/projects/{projectUid}/transMemories/searchSegmentInProject | Search translation memory for segment in the project |
search_segment_by_job | POST /api2/v1/projects/{projectUid}/jobs/{jobUid}/transMemories/searchSegment | Search translation memory for segment by job |
update_translation | PUT /api2/v1/transMemories/{transMemoryUid}/segments/{segmentId} | Edit segment |
wild_card_search_by_job3 | POST /api2/v3/projects/{projectUid}/jobs/{jobUid}/transMemories/wildCardSearch | Wildcard search job's translation memories |
wildcard_search | POST /api2/v1/transMemories/{transMemoryUid}/wildCardSearch | Wildcard search |
TransMemoryDto add_target_lang_to_trans_memory(trans_memory_uid, body=body)
Add target language to translation memory
import time
import os
import phrasetms_client
from phrasetms_client.models.target_language_dto import TargetLanguageDto
from phrasetms_client.models.trans_memory_dto import TransMemoryDto
from phrasetms_client.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://cloud.memsource.com/web
# See configuration.py for a list of all supported configuration parameters.
configuration = phrasetms_client.Configuration(
host = "https://cloud.memsource.com/web"
)
# Enter a context with an instance of the API client
with phrasetms_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = phrasetms_client.TranslationMemoryApi(api_client)
trans_memory_uid = 'trans_memory_uid_example' # str |
body = phrasetms_client.TargetLanguageDto() # TargetLanguageDto | (optional)
try:
# Add target language to translation memory
api_response = api_instance.add_target_lang_to_trans_memory(trans_memory_uid, body=body)
print("The response of TranslationMemoryApi->add_target_lang_to_trans_memory:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling TranslationMemoryApi->add_target_lang_to_trans_memory: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
trans_memory_uid | str | ||
body | TargetLanguageDto | [optional] |
No authorization required
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
201 | Created | - |
400 | Bad request | - |
401 | Not authorized | - |
403 | Forbidden | - |
404 | Resource not found | - |
405 | Method not allowed | - |
408 | Timeout | - |
410 | Gone | - |
415 | Unsupported media type | - |
429 | Too many requests | - |
500 | Internal server error | - |
501 | Not implemented | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
clear_trans_memory(trans_memory_uid)
Delete all segments
import time
import os
import phrasetms_client
from phrasetms_client.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://cloud.memsource.com/web
# See configuration.py for a list of all supported configuration parameters.
configuration = phrasetms_client.Configuration(
host = "https://cloud.memsource.com/web"
)
# Enter a context with an instance of the API client
with phrasetms_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = phrasetms_client.TranslationMemoryApi(api_client)
trans_memory_uid = 'trans_memory_uid_example' # str |
try:
# Delete all segments
api_instance.clear_trans_memory(trans_memory_uid)
except Exception as e:
print("Exception when calling TranslationMemoryApi->clear_trans_memory: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
trans_memory_uid | str |
void (empty response body)
No authorization required
- Content-Type: Not defined
- Accept: Not defined
Status code | Description | Response headers |
---|---|---|
204 | No Content | - |
400 | Bad request | - |
401 | Not authorized | - |
403 | Forbidden | - |
404 | Resource not found | - |
405 | Method not allowed | - |
408 | Timeout | - |
410 | Gone | - |
415 | Unsupported media type | - |
429 | Too many requests | - |
500 | Internal server error | - |
501 | Not implemented | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
clear_trans_memory_v2(trans_memory_uid)
Delete all segments.
This call is asynchronous, use this API to check the result
import time
import os
import phrasetms_client
from phrasetms_client.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://cloud.memsource.com/web
# See configuration.py for a list of all supported configuration parameters.
configuration = phrasetms_client.Configuration(
host = "https://cloud.memsource.com/web"
)
# Enter a context with an instance of the API client
with phrasetms_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = phrasetms_client.TranslationMemoryApi(api_client)
trans_memory_uid = 'trans_memory_uid_example' # str |
try:
# Delete all segments.
api_instance.clear_trans_memory_v2(trans_memory_uid)
except Exception as e:
print("Exception when calling TranslationMemoryApi->clear_trans_memory_v2: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
trans_memory_uid | str |
void (empty response body)
No authorization required
- Content-Type: Not defined
- Accept: Not defined
Status code | Description | Response headers |
---|---|---|
202 | Accepted | - |
400 | Bad request | - |
401 | Not authorized | - |
403 | Forbidden | - |
404 | Resource not found | - |
405 | Method not allowed | - |
408 | Timeout | - |
410 | Gone | - |
415 | Unsupported media type | - |
429 | Too many requests | - |
500 | Internal server error | - |
501 | Not implemented | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
TransMemoryDto create_trans_memory(body=body)
Create translation memory
import time
import os
import phrasetms_client
from phrasetms_client.models.trans_memory_create_dto import TransMemoryCreateDto
from phrasetms_client.models.trans_memory_dto import TransMemoryDto
from phrasetms_client.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://cloud.memsource.com/web
# See configuration.py for a list of all supported configuration parameters.
configuration = phrasetms_client.Configuration(
host = "https://cloud.memsource.com/web"
)
# Enter a context with an instance of the API client
with phrasetms_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = phrasetms_client.TranslationMemoryApi(api_client)
body = phrasetms_client.TransMemoryCreateDto() # TransMemoryCreateDto | (optional)
try:
# Create translation memory
api_response = api_instance.create_trans_memory(body=body)
print("The response of TranslationMemoryApi->create_trans_memory:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling TranslationMemoryApi->create_trans_memory: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
body | TransMemoryCreateDto | [optional] |
No authorization required
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
201 | Created | - |
400 | Bad request | - |
401 | Not authorized | - |
403 | Forbidden | - |
404 | Resource not found | - |
405 | Method not allowed | - |
408 | Timeout | - |
410 | Gone | - |
415 | Unsupported media type | - |
429 | Too many requests | - |
500 | Internal server error | - |
501 | Not implemented | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
delete_source_and_translations(trans_memory_uid, segment_id)
Delete both source and translation
Not recommended for bulk removal of segments
import time
import os
import phrasetms_client
from phrasetms_client.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://cloud.memsource.com/web
# See configuration.py for a list of all supported configuration parameters.
configuration = phrasetms_client.Configuration(
host = "https://cloud.memsource.com/web"
)
# Enter a context with an instance of the API client
with phrasetms_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = phrasetms_client.TranslationMemoryApi(api_client)
trans_memory_uid = 'trans_memory_uid_example' # str |
segment_id = 'segment_id_example' # str |
try:
# Delete both source and translation
api_instance.delete_source_and_translations(trans_memory_uid, segment_id)
except Exception as e:
print("Exception when calling TranslationMemoryApi->delete_source_and_translations: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
trans_memory_uid | str | ||
segment_id | str |
void (empty response body)
No authorization required
- Content-Type: Not defined
- Accept: Not defined
Status code | Description | Response headers |
---|---|---|
204 | No Content | - |
400 | Bad request | - |
401 | Not authorized | - |
403 | Forbidden | - |
404 | Resource not found | - |
405 | Method not allowed | - |
408 | Timeout | - |
410 | Gone | - |
415 | Unsupported media type | - |
429 | Too many requests | - |
500 | Internal server error | - |
501 | Not implemented | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
delete_trans_memory(trans_memory_uid, purge=purge)
Delete translation memory
import time
import os
import phrasetms_client
from phrasetms_client.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://cloud.memsource.com/web
# See configuration.py for a list of all supported configuration parameters.
configuration = phrasetms_client.Configuration(
host = "https://cloud.memsource.com/web"
)
# Enter a context with an instance of the API client
with phrasetms_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = phrasetms_client.TranslationMemoryApi(api_client)
trans_memory_uid = 'trans_memory_uid_example' # str |
purge = False # bool | (optional) (default to False)
try:
# Delete translation memory
api_instance.delete_trans_memory(trans_memory_uid, purge=purge)
except Exception as e:
print("Exception when calling TranslationMemoryApi->delete_trans_memory: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
trans_memory_uid | str | ||
purge | bool | [optional] [default to False] |
void (empty response body)
No authorization required
- Content-Type: Not defined
- Accept: Not defined
Status code | Description | Response headers |
---|---|---|
204 | No Content | - |
400 | Bad request | - |
401 | Not authorized | - |
403 | Forbidden | - |
404 | Resource not found | - |
405 | Method not allowed | - |
408 | Timeout | - |
410 | Gone | - |
415 | Unsupported media type | - |
429 | Too many requests | - |
500 | Internal server error | - |
501 | Not implemented | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
delete_translation(trans_memory_uid, segment_id, lang)
Delete segment of given language
Not recommended for bulk removal of segments
import time
import os
import phrasetms_client
from phrasetms_client.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://cloud.memsource.com/web
# See configuration.py for a list of all supported configuration parameters.
configuration = phrasetms_client.Configuration(
host = "https://cloud.memsource.com/web"
)
# Enter a context with an instance of the API client
with phrasetms_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = phrasetms_client.TranslationMemoryApi(api_client)
trans_memory_uid = 'trans_memory_uid_example' # str |
segment_id = 'segment_id_example' # str |
lang = 'lang_example' # str |
try:
# Delete segment of given language
api_instance.delete_translation(trans_memory_uid, segment_id, lang)
except Exception as e:
print("Exception when calling TranslationMemoryApi->delete_translation: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
trans_memory_uid | str | ||
segment_id | str | ||
lang | str |
void (empty response body)
No authorization required
- Content-Type: Not defined
- Accept: Not defined
Status code | Description | Response headers |
---|---|---|
204 | No Content | - |
400 | Bad request | - |
401 | Not authorized | - |
403 | Forbidden | - |
404 | Resource not found | - |
405 | Method not allowed | - |
408 | Timeout | - |
410 | Gone | - |
415 | Unsupported media type | - |
429 | Too many requests | - |
500 | Internal server error | - |
501 | Not implemented | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
download_cleaned_tm(async_request_id)
Download cleaned TM
import time
import os
import phrasetms_client
from phrasetms_client.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://cloud.memsource.com/web
# See configuration.py for a list of all supported configuration parameters.
configuration = phrasetms_client.Configuration(
host = "https://cloud.memsource.com/web"
)
# Enter a context with an instance of the API client
with phrasetms_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = phrasetms_client.TranslationMemoryApi(api_client)
async_request_id = 'async_request_id_example' # str | Request ID
try:
# Download cleaned TM
api_instance.download_cleaned_tm(async_request_id)
except Exception as e:
print("Exception when calling TranslationMemoryApi->download_cleaned_tm: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
async_request_id | str | Request ID |
void (empty response body)
No authorization required
- Content-Type: Not defined
- Accept: Not defined
Status code | Description | Response headers |
---|---|---|
200 | application/octet-stream | - |
400 | Bad request | - |
401 | Not authorized | - |
403 | Forbidden | - |
404 | Resource not found | - |
405 | Method not allowed | - |
408 | Timeout | - |
410 | Gone | - |
415 | Unsupported media type | - |
429 | Too many requests | - |
500 | Internal server error | - |
501 | Not implemented | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
download_search_result(async_request_id, format=format, fields=fields)
Download export
import time
import os
import phrasetms_client
from phrasetms_client.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://cloud.memsource.com/web
# See configuration.py for a list of all supported configuration parameters.
configuration = phrasetms_client.Configuration(
host = "https://cloud.memsource.com/web"
)
# Enter a context with an instance of the API client
with phrasetms_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = phrasetms_client.TranslationMemoryApi(api_client)
async_request_id = 'async_request_id_example' # str | Request ID
format = 'TMX' # str | (optional) (default to 'TMX')
fields = ['fields_example'] # List[str] | Fields to include in exported XLSX (optional)
try:
# Download export
api_instance.download_search_result(async_request_id, format=format, fields=fields)
except Exception as e:
print("Exception when calling TranslationMemoryApi->download_search_result: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
async_request_id | str | Request ID | |
format | str | [optional] [default to 'TMX'] | |
fields | List[str] | Fields to include in exported XLSX | [optional] |
void (empty response body)
No authorization required
- Content-Type: Not defined
- Accept: Not defined
Status code | Description | Response headers |
---|---|---|
200 | application/octet-stream | - |
400 | Bad request | - |
401 | Not authorized | - |
403 | Forbidden | - |
404 | Resource not found | - |
405 | Method not allowed | - |
408 | Timeout | - |
410 | Gone | - |
415 | Unsupported media type | - |
429 | Too many requests | - |
500 | Internal server error | - |
501 | Not implemented | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
TransMemoryDto edit_trans_memory(trans_memory_uid, body=body)
Edit translation memory
import time
import os
import phrasetms_client
from phrasetms_client.models.trans_memory_dto import TransMemoryDto
from phrasetms_client.models.trans_memory_edit_dto import TransMemoryEditDto
from phrasetms_client.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://cloud.memsource.com/web
# See configuration.py for a list of all supported configuration parameters.
configuration = phrasetms_client.Configuration(
host = "https://cloud.memsource.com/web"
)
# Enter a context with an instance of the API client
with phrasetms_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = phrasetms_client.TranslationMemoryApi(api_client)
trans_memory_uid = 'trans_memory_uid_example' # str |
body = phrasetms_client.TransMemoryEditDto() # TransMemoryEditDto | (optional)
try:
# Edit translation memory
api_response = api_instance.edit_trans_memory(trans_memory_uid, body=body)
print("The response of TranslationMemoryApi->edit_trans_memory:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling TranslationMemoryApi->edit_trans_memory: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
trans_memory_uid | str | ||
body | TransMemoryEditDto | [optional] |
No authorization required
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | successful operation | - |
400 | Bad request | - |
401 | Not authorized | - |
403 | Forbidden | - |
404 | Resource not found | - |
405 | Method not allowed | - |
408 | Timeout | - |
410 | Gone | - |
415 | Unsupported media type | - |
429 | Too many requests | - |
500 | Internal server error | - |
501 | Not implemented | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AsyncExportTMByQueryResponseDto export_by_query_async(trans_memory_uid, body=body)
Search translation memory
Use this API to download result
import time
import os
import phrasetms_client
from phrasetms_client.models.async_export_tmby_query_response_dto import AsyncExportTMByQueryResponseDto
from phrasetms_client.models.export_by_query_dto import ExportByQueryDto
from phrasetms_client.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://cloud.memsource.com/web
# See configuration.py for a list of all supported configuration parameters.
configuration = phrasetms_client.Configuration(
host = "https://cloud.memsource.com/web"
)
# Enter a context with an instance of the API client
with phrasetms_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = phrasetms_client.TranslationMemoryApi(api_client)
trans_memory_uid = 'trans_memory_uid_example' # str |
body = phrasetms_client.ExportByQueryDto() # ExportByQueryDto | (optional)
try:
# Search translation memory
api_response = api_instance.export_by_query_async(trans_memory_uid, body=body)
print("The response of TranslationMemoryApi->export_by_query_async:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling TranslationMemoryApi->export_by_query_async: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
trans_memory_uid | str | ||
body | ExportByQueryDto | [optional] |
AsyncExportTMByQueryResponseDto
No authorization required
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | successful operation | - |
400 | Bad request | - |
401 | Not authorized | - |
403 | Forbidden | - |
404 | Resource not found | - |
405 | Method not allowed | - |
408 | Timeout | - |
410 | Gone | - |
415 | Unsupported media type | - |
429 | Too many requests | - |
500 | Internal server error | - |
501 | Not implemented | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AsyncRequestWrapperDto export_cleaned_tms(body=body)
Extract cleaned translation memory
Returns a ZIP file containing the cleaned translation memories in the specified outputFormat.
import time
import os
import phrasetms_client
from phrasetms_client.models.async_request_wrapper_dto import AsyncRequestWrapperDto
from phrasetms_client.models.cleaned_trans_memories_dto import CleanedTransMemoriesDto
from phrasetms_client.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://cloud.memsource.com/web
# See configuration.py for a list of all supported configuration parameters.
configuration = phrasetms_client.Configuration(
host = "https://cloud.memsource.com/web"
)
# Enter a context with an instance of the API client
with phrasetms_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = phrasetms_client.TranslationMemoryApi(api_client)
body = phrasetms_client.CleanedTransMemoriesDto() # CleanedTransMemoriesDto | (optional)
try:
# Extract cleaned translation memory
api_response = api_instance.export_cleaned_tms(body=body)
print("The response of TranslationMemoryApi->export_cleaned_tms:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling TranslationMemoryApi->export_cleaned_tms: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
body | CleanedTransMemoriesDto | [optional] |
No authorization required
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
202 | successful operation | - |
400 | Bad request | - |
401 | Not authorized | - |
403 | Forbidden | - |
404 | Resource not found | - |
405 | Method not allowed | - |
408 | Timeout | - |
410 | Gone | - |
415 | Unsupported media type | - |
429 | Too many requests | - |
500 | Internal server error | - |
501 | Not implemented | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AsyncExportTMResponseDto export_v2(trans_memory_uid, body=body)
Export translation memory
Use this API to download result
import time
import os
import phrasetms_client
from phrasetms_client.models.async_export_tm_response_dto import AsyncExportTMResponseDto
from phrasetms_client.models.export_tm_dto import ExportTMDto
from phrasetms_client.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://cloud.memsource.com/web
# See configuration.py for a list of all supported configuration parameters.
configuration = phrasetms_client.Configuration(
host = "https://cloud.memsource.com/web"
)
# Enter a context with an instance of the API client
with phrasetms_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = phrasetms_client.TranslationMemoryApi(api_client)
trans_memory_uid = 'trans_memory_uid_example' # str |
body = phrasetms_client.ExportTMDto() # ExportTMDto | (optional)
try:
# Export translation memory
api_response = api_instance.export_v2(trans_memory_uid, body=body)
print("The response of TranslationMemoryApi->export_v2:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling TranslationMemoryApi->export_v2: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
trans_memory_uid | str | ||
body | ExportTMDto | [optional] |
No authorization required
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | successful operation | - |
400 | Bad request | - |
401 | Not authorized | - |
403 | Forbidden | - |
404 | Resource not found | - |
405 | Method not allowed | - |
408 | Timeout | - |
410 | Gone | - |
415 | Unsupported media type | - |
429 | Too many requests | - |
500 | Internal server error | - |
501 | Not implemented | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
BackgroundTasksTmDto get_background_tasks1(trans_memory_uid)
Get last task information
import time
import os
import phrasetms_client
from phrasetms_client.models.background_tasks_tm_dto import BackgroundTasksTmDto
from phrasetms_client.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://cloud.memsource.com/web
# See configuration.py for a list of all supported configuration parameters.
configuration = phrasetms_client.Configuration(
host = "https://cloud.memsource.com/web"
)
# Enter a context with an instance of the API client
with phrasetms_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = phrasetms_client.TranslationMemoryApi(api_client)
trans_memory_uid = 'trans_memory_uid_example' # str |
try:
# Get last task information
api_response = api_instance.get_background_tasks1(trans_memory_uid)
print("The response of TranslationMemoryApi->get_background_tasks1:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling TranslationMemoryApi->get_background_tasks1: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
trans_memory_uid | str |
No authorization required
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | successful operation | - |
400 | Bad request | - |
401 | Not authorized | - |
403 | Forbidden | - |
404 | Resource not found | - |
405 | Method not allowed | - |
408 | Timeout | - |
410 | Gone | - |
415 | Unsupported media type | - |
429 | Too many requests | - |
500 | Internal server error | - |
501 | Not implemented | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
MetadataResponse get_metadata(trans_memory_uid, by_language=by_language)
Get translation memory metadata
import time
import os
import phrasetms_client
from phrasetms_client.models.metadata_response import MetadataResponse
from phrasetms_client.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://cloud.memsource.com/web
# See configuration.py for a list of all supported configuration parameters.
configuration = phrasetms_client.Configuration(
host = "https://cloud.memsource.com/web"
)
# Enter a context with an instance of the API client
with phrasetms_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = phrasetms_client.TranslationMemoryApi(api_client)
trans_memory_uid = 'trans_memory_uid_example' # str |
by_language = False # bool | (optional) (default to False)
try:
# Get translation memory metadata
api_response = api_instance.get_metadata(trans_memory_uid, by_language=by_language)
print("The response of TranslationMemoryApi->get_metadata:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling TranslationMemoryApi->get_metadata: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
trans_memory_uid | str | ||
by_language | bool | [optional] [default to False] |
No authorization required
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | successful operation | - |
400 | Bad request | - |
401 | Not authorized | - |
403 | Forbidden | - |
404 | Resource not found | - |
405 | Method not allowed | - |
408 | Timeout | - |
410 | Gone | - |
415 | Unsupported media type | - |
429 | Too many requests | - |
500 | Internal server error | - |
501 | Not implemented | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ProjectTemplateTransMemoryListDtoV3 get_project_template_trans_memories2(project_template_uid, target_lang=target_lang, wf_step_uid=wf_step_uid)
Get translation memories
import time
import os
import phrasetms_client
from phrasetms_client.models.project_template_trans_memory_list_dto_v3 import ProjectTemplateTransMemoryListDtoV3
from phrasetms_client.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://cloud.memsource.com/web
# See configuration.py for a list of all supported configuration parameters.
configuration = phrasetms_client.Configuration(
host = "https://cloud.memsource.com/web"
)
# Enter a context with an instance of the API client
with phrasetms_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = phrasetms_client.TranslationMemoryApi(api_client)
project_template_uid = 'project_template_uid_example' # str |
target_lang = 'target_lang_example' # str | Filter project translation memories by target language (optional)
wf_step_uid = 'wf_step_uid_example' # str | Filter project translation memories by workflow step (optional)
try:
# Get translation memories
api_response = api_instance.get_project_template_trans_memories2(project_template_uid, target_lang=target_lang, wf_step_uid=wf_step_uid)
print("The response of TranslationMemoryApi->get_project_template_trans_memories2:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling TranslationMemoryApi->get_project_template_trans_memories2: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
project_template_uid | str | ||
target_lang | str | Filter project translation memories by target language | [optional] |
wf_step_uid | str | Filter project translation memories by workflow step | [optional] |
ProjectTemplateTransMemoryListDtoV3
No authorization required
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | successful operation | - |
400 | Bad request | - |
401 | Not authorized | - |
403 | Forbidden | - |
404 | Resource not found | - |
405 | Method not allowed | - |
408 | Timeout | - |
410 | Gone | - |
415 | Unsupported media type | - |
429 | Too many requests | - |
500 | Internal server error | - |
501 | Not implemented | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
PageDtoAbstractProjectDto get_related_projects(trans_memory_uid, page_number=page_number, page_size=page_size)
List related projects
import time
import os
import phrasetms_client
from phrasetms_client.models.page_dto_abstract_project_dto import PageDtoAbstractProjectDto
from phrasetms_client.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://cloud.memsource.com/web
# See configuration.py for a list of all supported configuration parameters.
configuration = phrasetms_client.Configuration(
host = "https://cloud.memsource.com/web"
)
# Enter a context with an instance of the API client
with phrasetms_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = phrasetms_client.TranslationMemoryApi(api_client)
trans_memory_uid = 'trans_memory_uid_example' # str |
page_number = 0 # int | Page number, starting with 0, default 0 (optional) (default to 0)
page_size = 50 # int | Page size, accepts values between 1 and 50, default 50 (optional) (default to 50)
try:
# List related projects
api_response = api_instance.get_related_projects(trans_memory_uid, page_number=page_number, page_size=page_size)
print("The response of TranslationMemoryApi->get_related_projects:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling TranslationMemoryApi->get_related_projects: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
trans_memory_uid | str | ||
page_number | int | Page number, starting with 0, default 0 | [optional] [default to 0] |
page_size | int | Page size, accepts values between 1 and 50, default 50 | [optional] [default to 50] |
No authorization required
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | successful operation | - |
400 | Bad request | - |
401 | Not authorized | - |
403 | Forbidden | - |
404 | Resource not found | - |
405 | Method not allowed | - |
408 | Timeout | - |
410 | Gone | - |
415 | Unsupported media type | - |
429 | Too many requests | - |
500 | Internal server error | - |
501 | Not implemented | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
TransMemoryDto get_trans_memory(trans_memory_uid)
Get translation memory
import time
import os
import phrasetms_client
from phrasetms_client.models.trans_memory_dto import TransMemoryDto
from phrasetms_client.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://cloud.memsource.com/web
# See configuration.py for a list of all supported configuration parameters.
configuration = phrasetms_client.Configuration(
host = "https://cloud.memsource.com/web"
)
# Enter a context with an instance of the API client
with phrasetms_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = phrasetms_client.TranslationMemoryApi(api_client)
trans_memory_uid = 'trans_memory_uid_example' # str |
try:
# Get translation memory
api_response = api_instance.get_trans_memory(trans_memory_uid)
print("The response of TranslationMemoryApi->get_trans_memory:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling TranslationMemoryApi->get_trans_memory: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
trans_memory_uid | str |
No authorization required
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | successful operation | - |
400 | Bad request | - |
401 | Not authorized | - |
403 | Forbidden | - |
404 | Resource not found | - |
405 | Method not allowed | - |
408 | Timeout | - |
410 | Gone | - |
415 | Unsupported media type | - |
429 | Too many requests | - |
500 | Internal server error | - |
501 | Not implemented | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
TranslationResourcesDto get_translation_resources(project_uid, job_uid)
Get translation resources
import time
import os
import phrasetms_client
from phrasetms_client.models.translation_resources_dto import TranslationResourcesDto
from phrasetms_client.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://cloud.memsource.com/web
# See configuration.py for a list of all supported configuration parameters.
configuration = phrasetms_client.Configuration(
host = "https://cloud.memsource.com/web"
)
# Enter a context with an instance of the API client
with phrasetms_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = phrasetms_client.TranslationMemoryApi(api_client)
project_uid = 'project_uid_example' # str |
job_uid = 'job_uid_example' # str |
try:
# Get translation resources
api_response = api_instance.get_translation_resources(project_uid, job_uid)
print("The response of TranslationMemoryApi->get_translation_resources:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling TranslationMemoryApi->get_translation_resources: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
project_uid | str | ||
job_uid | str |
No authorization required
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | successful operation | - |
400 | Bad request | - |
401 | Not authorized | - |
403 | Forbidden | - |
404 | Resource not found | - |
405 | Method not allowed | - |
408 | Timeout | - |
410 | Gone | - |
415 | Unsupported media type | - |
429 | Too many requests | - |
500 | Internal server error | - |
501 | Not implemented | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AsyncRequestWrapperV2Dto import_trans_memory_v2(trans_memory_uid, content_disposition, content_length=content_length, strict_lang_matching=strict_lang_matching, strip_native_codes=strip_native_codes, body=body)
Import TMX
import time
import os
import phrasetms_client
from phrasetms_client.models.async_request_wrapper_v2_dto import AsyncRequestWrapperV2Dto
from phrasetms_client.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://cloud.memsource.com/web
# See configuration.py for a list of all supported configuration parameters.
configuration = phrasetms_client.Configuration(
host = "https://cloud.memsource.com/web"
)
# Enter a context with an instance of the API client
with phrasetms_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = phrasetms_client.TranslationMemoryApi(api_client)
trans_memory_uid = 'trans_memory_uid_example' # str |
content_disposition = 'content_disposition_example' # str | must match pattern `((inline|attachment); )?filename\\*=UTF-8''(.+)`
content_length = 56 # int | (optional)
strict_lang_matching = False # bool | (optional) (default to False)
strip_native_codes = True # bool | (optional) (default to True)
body = None # object | (optional)
try:
# Import TMX
api_response = api_instance.import_trans_memory_v2(trans_memory_uid, content_disposition, content_length=content_length, strict_lang_matching=strict_lang_matching, strip_native_codes=strip_native_codes, body=body)
print("The response of TranslationMemoryApi->import_trans_memory_v2:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling TranslationMemoryApi->import_trans_memory_v2: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
trans_memory_uid | str | ||
content_disposition | str | must match pattern `((inline | attachment); )?filename\*=UTF-8''(.+)` |
content_length | int | [optional] | |
strict_lang_matching | bool | [optional] [default to False] | |
strip_native_codes | bool | [optional] [default to True] | |
body | object | [optional] |
No authorization required
- Content-Type: application/octet-stream, multipart/form-data
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
202 | successful operation | - |
400 | Bad request | - |
401 | Not authorized | - |
403 | Forbidden | - |
404 | Resource not found | - |
405 | Method not allowed | - |
408 | Timeout | - |
410 | Gone | - |
415 | Unsupported media type | - |
429 | Too many requests | - |
500 | Internal server error | - |
501 | Not implemented | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
insert_to_trans_memory(trans_memory_uid, body=body)
Insert segment
import time
import os
import phrasetms_client
from phrasetms_client.models.segment_dto import SegmentDto
from phrasetms_client.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://cloud.memsource.com/web
# See configuration.py for a list of all supported configuration parameters.
configuration = phrasetms_client.Configuration(
host = "https://cloud.memsource.com/web"
)
# Enter a context with an instance of the API client
with phrasetms_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = phrasetms_client.TranslationMemoryApi(api_client)
trans_memory_uid = 'trans_memory_uid_example' # str |
body = phrasetms_client.SegmentDto() # SegmentDto | (optional)
try:
# Insert segment
api_instance.insert_to_trans_memory(trans_memory_uid, body=body)
except Exception as e:
print("Exception when calling TranslationMemoryApi->insert_to_trans_memory: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
trans_memory_uid | str | ||
body | SegmentDto | [optional] |
void (empty response body)
No authorization required
- Content-Type: application/json
- Accept: Not defined
Status code | Description | Response headers |
---|---|---|
204 | No Content | - |
400 | Bad request | - |
401 | Not authorized | - |
403 | Forbidden | - |
404 | Resource not found | - |
405 | Method not allowed | - |
408 | Timeout | - |
410 | Gone | - |
415 | Unsupported media type | - |
429 | Too many requests | - |
500 | Internal server error | - |
501 | Not implemented | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
PageDtoTransMemoryDto list_trans_memories(name=name, source_lang=source_lang, target_lang=target_lang, client_id=client_id, domain_id=domain_id, sub_domain_id=sub_domain_id, business_unit_id=business_unit_id, page_number=page_number, page_size=page_size)
List translation memories
import time
import os
import phrasetms_client
from phrasetms_client.models.page_dto_trans_memory_dto import PageDtoTransMemoryDto
from phrasetms_client.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://cloud.memsource.com/web
# See configuration.py for a list of all supported configuration parameters.
configuration = phrasetms_client.Configuration(
host = "https://cloud.memsource.com/web"
)
# Enter a context with an instance of the API client
with phrasetms_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = phrasetms_client.TranslationMemoryApi(api_client)
name = 'name_example' # str | (optional)
source_lang = 'source_lang_example' # str | (optional)
target_lang = 'target_lang_example' # str | (optional)
client_id = 'client_id_example' # str | (optional)
domain_id = 'domain_id_example' # str | (optional)
sub_domain_id = 'sub_domain_id_example' # str | (optional)
business_unit_id = 'business_unit_id_example' # str | (optional)
page_number = 0 # int | Page number, starting with 0, default 0 (optional) (default to 0)
page_size = 50 # int | Page size, accepts values between 1 and 50, default 50 (optional) (default to 50)
try:
# List translation memories
api_response = api_instance.list_trans_memories(name=name, source_lang=source_lang, target_lang=target_lang, client_id=client_id, domain_id=domain_id, sub_domain_id=sub_domain_id, business_unit_id=business_unit_id, page_number=page_number, page_size=page_size)
print("The response of TranslationMemoryApi->list_trans_memories:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling TranslationMemoryApi->list_trans_memories: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
name | str | [optional] | |
source_lang | str | [optional] | |
target_lang | str | [optional] | |
client_id | str | [optional] | |
domain_id | str | [optional] | |
sub_domain_id | str | [optional] | |
business_unit_id | str | [optional] | |
page_number | int | Page number, starting with 0, default 0 | [optional] [default to 0] |
page_size | int | Page size, accepts values between 1 and 50, default 50 | [optional] [default to 50] |
No authorization required
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | successful operation | - |
400 | Bad request | - |
401 | Not authorized | - |
403 | Forbidden | - |
404 | Resource not found | - |
405 | Method not allowed | - |
408 | Timeout | - |
410 | Gone | - |
415 | Unsupported media type | - |
429 | Too many requests | - |
500 | Internal server error | - |
501 | Not implemented | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
PageDtoTransMemoryDto relevant_trans_memories(project_template_uid, name=name, domain_name=domain_name, client_name=client_name, sub_domain_name=sub_domain_name, target_langs=target_langs, strict_lang_matching=strict_lang_matching, page_number=page_number, page_size=page_size)
List project template relevant translation memories
import time
import os
import phrasetms_client
from phrasetms_client.models.page_dto_trans_memory_dto import PageDtoTransMemoryDto
from phrasetms_client.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://cloud.memsource.com/web
# See configuration.py for a list of all supported configuration parameters.
configuration = phrasetms_client.Configuration(
host = "https://cloud.memsource.com/web"
)
# Enter a context with an instance of the API client
with phrasetms_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = phrasetms_client.TranslationMemoryApi(api_client)
project_template_uid = 'project_template_uid_example' # str |
name = 'name_example' # str | (optional)
domain_name = 'domain_name_example' # str | (optional)
client_name = 'client_name_example' # str | (optional)
sub_domain_name = 'sub_domain_name_example' # str | (optional)
target_langs = ['target_langs_example'] # List[str] | (optional)
strict_lang_matching = False # bool | (optional) (default to False)
page_number = 0 # int | Page number, starting with 0, default 0 (optional) (default to 0)
page_size = 50 # int | Page size, accepts values between 1 and 50, default 50 (optional) (default to 50)
try:
# List project template relevant translation memories
api_response = api_instance.relevant_trans_memories(project_template_uid, name=name, domain_name=domain_name, client_name=client_name, sub_domain_name=sub_domain_name, target_langs=target_langs, strict_lang_matching=strict_lang_matching, page_number=page_number, page_size=page_size)
print("The response of TranslationMemoryApi->relevant_trans_memories:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling TranslationMemoryApi->relevant_trans_memories: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
project_template_uid | str | ||
name | str | [optional] | |
domain_name | str | [optional] | |
client_name | str | [optional] | |
sub_domain_name | str | [optional] | |
target_langs | List[str] | [optional] | |
strict_lang_matching | bool | [optional] [default to False] | |
page_number | int | Page number, starting with 0, default 0 | [optional] [default to 0] |
page_size | int | Page size, accepts values between 1 and 50, default 50 | [optional] [default to 50] |
No authorization required
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | successful operation | - |
400 | Bad request | - |
401 | Not authorized | - |
403 | Forbidden | - |
404 | Resource not found | - |
405 | Method not allowed | - |
408 | Timeout | - |
410 | Gone | - |
415 | Unsupported media type | - |
429 | Too many requests | - |
500 | Internal server error | - |
501 | Not implemented | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
PageDtoTransMemoryDto relevant_trans_memories1(project_uid, name=name, domain_name=domain_name, client_name=client_name, sub_domain_name=sub_domain_name, target_langs=target_langs, strict_lang_matching=strict_lang_matching, page_number=page_number, page_size=page_size)
List project relevant translation memories
import time
import os
import phrasetms_client
from phrasetms_client.models.page_dto_trans_memory_dto import PageDtoTransMemoryDto
from phrasetms_client.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://cloud.memsource.com/web
# See configuration.py for a list of all supported configuration parameters.
configuration = phrasetms_client.Configuration(
host = "https://cloud.memsource.com/web"
)
# Enter a context with an instance of the API client
with phrasetms_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = phrasetms_client.TranslationMemoryApi(api_client)
project_uid = 'project_uid_example' # str |
name = 'name_example' # str | (optional)
domain_name = 'domain_name_example' # str | (optional)
client_name = 'client_name_example' # str | (optional)
sub_domain_name = 'sub_domain_name_example' # str | (optional)
target_langs = ['target_langs_example'] # List[str] | (optional)
strict_lang_matching = False # bool | (optional) (default to False)
page_number = 0 # int | Page number, starting with 0, default 0 (optional) (default to 0)
page_size = 50 # int | Page size, accepts values between 1 and 50, default 50 (optional) (default to 50)
try:
# List project relevant translation memories
api_response = api_instance.relevant_trans_memories1(project_uid, name=name, domain_name=domain_name, client_name=client_name, sub_domain_name=sub_domain_name, target_langs=target_langs, strict_lang_matching=strict_lang_matching, page_number=page_number, page_size=page_size)
print("The response of TranslationMemoryApi->relevant_trans_memories1:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling TranslationMemoryApi->relevant_trans_memories1: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
project_uid | str | ||
name | str | [optional] | |
domain_name | str | [optional] | |
client_name | str | [optional] | |
sub_domain_name | str | [optional] | |
target_langs | List[str] | [optional] | |
strict_lang_matching | bool | [optional] [default to False] | |
page_number | int | Page number, starting with 0, default 0 | [optional] [default to 0] |
page_size | int | Page size, accepts values between 1 and 50, default 50 | [optional] [default to 50] |
No authorization required
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | successful operation | - |
400 | Bad request | - |
401 | Not authorized | - |
403 | Forbidden | - |
404 | Resource not found | - |
405 | Method not allowed | - |
408 | Timeout | - |
410 | Gone | - |
415 | Unsupported media type | - |
429 | Too many requests | - |
500 | Internal server error | - |
501 | Not implemented | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
SearchResponseListTmDto search(trans_memory_uid, body=body)
Search translation memory (sync)
import time
import os
import phrasetms_client
from phrasetms_client.models.search_request_dto import SearchRequestDto
from phrasetms_client.models.search_response_list_tm_dto import SearchResponseListTmDto
from phrasetms_client.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://cloud.memsource.com/web
# See configuration.py for a list of all supported configuration parameters.
configuration = phrasetms_client.Configuration(
host = "https://cloud.memsource.com/web"
)
# Enter a context with an instance of the API client
with phrasetms_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = phrasetms_client.TranslationMemoryApi(api_client)
trans_memory_uid = 'trans_memory_uid_example' # str |
body = phrasetms_client.SearchRequestDto() # SearchRequestDto | (optional)
try:
# Search translation memory (sync)
api_response = api_instance.search(trans_memory_uid, body=body)
print("The response of TranslationMemoryApi->search:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling TranslationMemoryApi->search: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
trans_memory_uid | str | ||
body | SearchRequestDto | [optional] |
No authorization required
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | successful operation | - |
400 | Bad request | - |
401 | Not authorized | - |
403 | Forbidden | - |
404 | Resource not found | - |
405 | Method not allowed | - |
408 | Timeout | - |
410 | Gone | - |
415 | Unsupported media type | - |
429 | Too many requests | - |
500 | Internal server error | - |
501 | Not implemented | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
SearchResponseListTmDtoV3 search_by_job3(project_uid, job_uid, body=body)
Search job's translation memories
import time
import os
import phrasetms_client
from phrasetms_client.models.search_response_list_tm_dto_v3 import SearchResponseListTmDtoV3
from phrasetms_client.models.search_tmby_job_request_dto_v3 import SearchTMByJobRequestDtoV3
from phrasetms_client.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://cloud.memsource.com/web
# See configuration.py for a list of all supported configuration parameters.
configuration = phrasetms_client.Configuration(
host = "https://cloud.memsource.com/web"
)
# Enter a context with an instance of the API client
with phrasetms_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = phrasetms_client.TranslationMemoryApi(api_client)
project_uid = 'project_uid_example' # str |
job_uid = 'job_uid_example' # str |
body = phrasetms_client.SearchTMByJobRequestDtoV3() # SearchTMByJobRequestDtoV3 | (optional)
try:
# Search job's translation memories
api_response = api_instance.search_by_job3(project_uid, job_uid, body=body)
print("The response of TranslationMemoryApi->search_by_job3:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling TranslationMemoryApi->search_by_job3: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
project_uid | str | ||
job_uid | str | ||
body | SearchTMByJobRequestDtoV3 | [optional] |
No authorization required
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | successful operation | - |
400 | Bad request | - |
401 | Not authorized | - |
403 | Forbidden | - |
404 | Resource not found | - |
405 | Method not allowed | - |
408 | Timeout | - |
410 | Gone | - |
415 | Unsupported media type | - |
429 | Too many requests | - |
500 | Internal server error | - |
501 | Not implemented | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
SearchResponseListTmDto search_segment1(project_uid, body=body)
Search translation memory for segment in the project
Returns at most maxSegments records with score >= scoreThreshold and at most maxSubsegments records which are subsegment, i.e. the source text is substring of the query text.
import time
import os
import phrasetms_client
from phrasetms_client.models.search_response_list_tm_dto import SearchResponseListTmDto
from phrasetms_client.models.search_tm_request_dto import SearchTMRequestDto
from phrasetms_client.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://cloud.memsource.com/web
# See configuration.py for a list of all supported configuration parameters.
configuration = phrasetms_client.Configuration(
host = "https://cloud.memsource.com/web"
)
# Enter a context with an instance of the API client
with phrasetms_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = phrasetms_client.TranslationMemoryApi(api_client)
project_uid = 'project_uid_example' # str |
body = phrasetms_client.SearchTMRequestDto() # SearchTMRequestDto | (optional)
try:
# Search translation memory for segment in the project
api_response = api_instance.search_segment1(project_uid, body=body)
print("The response of TranslationMemoryApi->search_segment1:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling TranslationMemoryApi->search_segment1: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
project_uid | str | ||
body | SearchTMRequestDto | [optional] |
No authorization required
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | successful operation | - |
400 | Bad request | - |
401 | Not authorized | - |
403 | Forbidden | - |
404 | Resource not found | - |
405 | Method not allowed | - |
408 | Timeout | - |
410 | Gone | - |
415 | Unsupported media type | - |
429 | Too many requests | - |
500 | Internal server error | - |
501 | Not implemented | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
SearchResponseListTmDto search_segment_by_job(project_uid, job_uid, body=body)
Search translation memory for segment by job
Returns at most maxSegments records with score >= scoreThreshold and at most maxSubsegments records which are subsegment, i.e. the source text is substring of the query text.
import time
import os
import phrasetms_client
from phrasetms_client.models.search_response_list_tm_dto import SearchResponseListTmDto
from phrasetms_client.models.search_tmby_job_request_dto import SearchTMByJobRequestDto
from phrasetms_client.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://cloud.memsource.com/web
# See configuration.py for a list of all supported configuration parameters.
configuration = phrasetms_client.Configuration(
host = "https://cloud.memsource.com/web"
)
# Enter a context with an instance of the API client
with phrasetms_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = phrasetms_client.TranslationMemoryApi(api_client)
project_uid = 'project_uid_example' # str |
job_uid = 'job_uid_example' # str |
body = phrasetms_client.SearchTMByJobRequestDto() # SearchTMByJobRequestDto | (optional)
try:
# Search translation memory for segment by job
api_response = api_instance.search_segment_by_job(project_uid, job_uid, body=body)
print("The response of TranslationMemoryApi->search_segment_by_job:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling TranslationMemoryApi->search_segment_by_job: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
project_uid | str | ||
job_uid | str | ||
body | SearchTMByJobRequestDto | [optional] |
No authorization required
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | successful operation | - |
400 | Bad request | - |
401 | Not authorized | - |
403 | Forbidden | - |
404 | Resource not found | - |
405 | Method not allowed | - |
408 | Timeout | - |
410 | Gone | - |
415 | Unsupported media type | - |
429 | Too many requests | - |
500 | Internal server error | - |
501 | Not implemented | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
update_translation(trans_memory_uid, segment_id, body=body)
Edit segment
import time
import os
import phrasetms_client
from phrasetms_client.models.translation_dto import TranslationDto
from phrasetms_client.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://cloud.memsource.com/web
# See configuration.py for a list of all supported configuration parameters.
configuration = phrasetms_client.Configuration(
host = "https://cloud.memsource.com/web"
)
# Enter a context with an instance of the API client
with phrasetms_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = phrasetms_client.TranslationMemoryApi(api_client)
trans_memory_uid = 'trans_memory_uid_example' # str |
segment_id = 'segment_id_example' # str |
body = phrasetms_client.TranslationDto() # TranslationDto | (optional)
try:
# Edit segment
api_instance.update_translation(trans_memory_uid, segment_id, body=body)
except Exception as e:
print("Exception when calling TranslationMemoryApi->update_translation: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
trans_memory_uid | str | ||
segment_id | str | ||
body | TranslationDto | [optional] |
void (empty response body)
No authorization required
- Content-Type: application/json
- Accept: Not defined
Status code | Description | Response headers |
---|---|---|
204 | No Content | - |
400 | Bad request | - |
401 | Not authorized | - |
403 | Forbidden | - |
404 | Resource not found | - |
405 | Method not allowed | - |
408 | Timeout | - |
410 | Gone | - |
415 | Unsupported media type | - |
429 | Too many requests | - |
500 | Internal server error | - |
501 | Not implemented | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
SearchResponseListTmDtoV3 wild_card_search_by_job3(project_uid, job_uid, body=body)
Wildcard search job's translation memories
import time
import os
import phrasetms_client
from phrasetms_client.models.search_response_list_tm_dto_v3 import SearchResponseListTmDtoV3
from phrasetms_client.models.wild_card_search_by_job_request_dto_v3 import WildCardSearchByJobRequestDtoV3
from phrasetms_client.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://cloud.memsource.com/web
# See configuration.py for a list of all supported configuration parameters.
configuration = phrasetms_client.Configuration(
host = "https://cloud.memsource.com/web"
)
# Enter a context with an instance of the API client
with phrasetms_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = phrasetms_client.TranslationMemoryApi(api_client)
project_uid = 'project_uid_example' # str |
job_uid = 'job_uid_example' # str |
body = phrasetms_client.WildCardSearchByJobRequestDtoV3() # WildCardSearchByJobRequestDtoV3 | (optional)
try:
# Wildcard search job's translation memories
api_response = api_instance.wild_card_search_by_job3(project_uid, job_uid, body=body)
print("The response of TranslationMemoryApi->wild_card_search_by_job3:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling TranslationMemoryApi->wild_card_search_by_job3: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
project_uid | str | ||
job_uid | str | ||
body | WildCardSearchByJobRequestDtoV3 | [optional] |
No authorization required
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | successful operation | - |
400 | Bad request | - |
401 | Not authorized | - |
403 | Forbidden | - |
404 | Resource not found | - |
405 | Method not allowed | - |
408 | Timeout | - |
410 | Gone | - |
415 | Unsupported media type | - |
429 | Too many requests | - |
500 | Internal server error | - |
501 | Not implemented | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
SearchResponseListTmDto wildcard_search(trans_memory_uid, body=body)
Wildcard search
import time
import os
import phrasetms_client
from phrasetms_client.models.search_response_list_tm_dto import SearchResponseListTmDto
from phrasetms_client.models.wild_card_search_request_dto import WildCardSearchRequestDto
from phrasetms_client.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://cloud.memsource.com/web
# See configuration.py for a list of all supported configuration parameters.
configuration = phrasetms_client.Configuration(
host = "https://cloud.memsource.com/web"
)
# Enter a context with an instance of the API client
with phrasetms_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = phrasetms_client.TranslationMemoryApi(api_client)
trans_memory_uid = 'trans_memory_uid_example' # str |
body = phrasetms_client.WildCardSearchRequestDto() # WildCardSearchRequestDto | (optional)
try:
# Wildcard search
api_response = api_instance.wildcard_search(trans_memory_uid, body=body)
print("The response of TranslationMemoryApi->wildcard_search:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling TranslationMemoryApi->wildcard_search: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
trans_memory_uid | str | ||
body | WildCardSearchRequestDto | [optional] |
No authorization required
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | successful operation | - |
400 | Bad request | - |
401 | Not authorized | - |
403 | Forbidden | - |
404 | Resource not found | - |
405 | Method not allowed | - |
408 | Timeout | - |
410 | Gone | - |
415 | Unsupported media type | - |
429 | Too many requests | - |
500 | Internal server error | - |
501 | Not implemented | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]