public class TranslationsApi extends CrowdinApi
clientConfig, graphqlUrl, httpClient, url| Constructor and Description |
|---|
TranslationsApi(Credentials credentials) |
TranslationsApi(Credentials credentials,
ClientConfig clientConfig) |
graphql, graphqlpublic TranslationsApi(Credentials credentials)
public TranslationsApi(Credentials credentials, ClientConfig clientConfig)
public ResponseObject<PreTranslationStatus> applyPreTranslation(java.lang.Long projectId, ApplyPreTranslationRequest request) throws HttpException, HttpBadRequestException
projectId - project identifierrequest - request bodyHttpExceptionHttpBadRequestExceptionpublic ResponseObject<PreTranslationStatus> applyPreTranslationStringsBased(java.lang.Long projectId, ApplyPreTranslationStringsBasedRequest request) throws HttpException, HttpBadRequestException
HttpExceptionHttpBadRequestExceptionpublic ResponseObject<PreTranslationStatus> preTranslationStatus(java.lang.Long projectId, java.lang.String preTranslationId) throws HttpException, HttpBadRequestException
projectId - project identifierpreTranslationId - pre-translation identifierHttpExceptionHttpBadRequestExceptionpublic ResponseObject<DownloadLink> buildProjectDirectoryTranslation(java.lang.Long projectId, java.lang.Long directoryId, BuildProjectDirectoryTranslationRequest request) throws HttpException, HttpBadRequestException
projectId - project identifierdirectoryId - directory identifierrequest - request bodyHttpExceptionHttpBadRequestExceptionpublic ResponseObject<DownloadLink> buildProjectFileTranslation(java.lang.Long projectId, java.lang.Long fileId, java.lang.String etag, BuildProjectFileTranslationRequest request) throws HttpException, HttpBadRequestException
projectId - project identifierfileId - file identifieretag - Etag identifierrequest - request bodyHttpExceptionHttpBadRequestExceptionpublic ResponseList<ProjectBuild> listProjectBuilds(java.lang.Long projectId, java.lang.Long branchId, java.lang.Integer limit, java.lang.Integer offset) throws HttpException, HttpBadRequestException
projectId - project identifierbranchId - filter by branchIdlimit - maximum number of items to retrieve (default 25)offset - starting offset in the collection (default 0)HttpExceptionHttpBadRequestExceptionpublic ResponseObject<ProjectBuild> buildProjectTranslation(java.lang.Long projectId, BuildProjectTranslationRequest request) throws HttpException, HttpBadRequestException
projectId - project identifierrequest - request bodyHttpExceptionHttpBadRequestExceptionpublic ResponseObject<UploadTranslationsResponse> uploadTranslations(java.lang.Long projectId, java.lang.String languageId, UploadTranslationsRequest request) throws HttpException, HttpBadRequestException
projectId - project identifierlanguageId - language identifierrequest - request bodyHttpExceptionHttpBadRequestExceptionpublic ResponseObject<UploadTranslationsStringsResponse> uploadTranslationStringsBased(java.lang.Long projectId, java.lang.String languageId, UploadTranslationsStringsRequest request) throws HttpException, HttpBadRequestException
HttpExceptionHttpBadRequestExceptionpublic ResponseObject<DownloadLink> downloadProjectTranslations(java.lang.Long projectId, java.lang.Long buildId) throws HttpException, HttpBadRequestException
projectId - project identifierbuildId - build identifierHttpExceptionHttpBadRequestExceptionpublic ResponseObject<ProjectBuild> checkBuildStatus(java.lang.Long projectId, java.lang.Long buildId) throws HttpException, HttpBadRequestException
projectId - project identifierbuildId - build identifierHttpExceptionHttpBadRequestExceptionpublic void cancelBuild(java.lang.Long projectId,
java.lang.Long buildId)
throws HttpException,
HttpBadRequestException
projectId - project identifierbuildId - build identifierHttpExceptionHttpBadRequestExceptionpublic ResponseObject<DownloadLink> exportProjectTranslation(java.lang.Long projectId, ExportProjectTranslationRequest request) throws HttpException, HttpBadRequestException
projectId - project identifierrequest - request bodyHttpExceptionHttpBadRequestExceptionpublic ResponseList<PreTranslation> listPreTranslations(java.lang.Long projectId, java.lang.Integer limit, java.lang.Integer offset) throws HttpException, HttpBadRequestException
projectId - project identifierlimit - maximum number of items to retrieve (default 25)offset - starting offset in the collection (default 0)HttpExceptionHttpBadRequestExceptionpublic ResponseList<PreTranslation> listPreTranslations(java.lang.Long projectId, Pagination options) throws HttpException, HttpBadRequestException
HttpExceptionHttpBadRequestExceptionpublic ResponseObject<PreTranslation> editPreTranslation(java.lang.Long projectId, java.lang.String preTranslationId, java.util.List<PatchRequest> request) throws HttpException, HttpBadRequestException
projectId - project identifierpreTranslationId - pre-translation identifierHttpExceptionHttpBadRequestExceptionpublic ResponseObject<PreTranslationReportResponse> getPreTranslationReport(java.lang.Long projectId, java.lang.String preTranslationId) throws HttpException, HttpBadRequestException
projectId - project identifierpreTranslationId - pre-translation identifierHttpExceptionHttpBadRequestExceptionpublic ResponseObject<ImportTranslationsStatus> importTranslations(java.lang.Long projectId, ImportTranslationsRequest request) throws HttpException, HttpBadRequestException
projectId - project identifierrequest - request bodyHttpExceptionHttpBadRequestExceptionpublic ResponseObject<ImportTranslationsStringsBasedStatus> importTranslations(java.lang.Long projectId, ImportTranslationsStringsBasedRequest request) throws HttpException, HttpBadRequestException
projectId - project identifierrequest - request bodyHttpExceptionHttpBadRequestExceptionpublic ResponseObject<ImportTranslationsStatus> importTranslationsStatus(java.lang.Long projectId, java.lang.String importId) throws HttpException, HttpBadRequestException
projectId - project identifierimportId - import identifierHttpExceptionHttpBadRequestExceptionpublic ResponseObject<ImportTranslationsStringsBasedStatus> importTranslationsStringsBasedStatus(java.lang.Long projectId, java.lang.String importId) throws HttpException, HttpBadRequestException
projectId - project identifierimportId - import identifierHttpExceptionHttpBadRequestExceptionpublic ResponseObject<ImportTranslationsReportResponse> importTranslationsReport(java.lang.Long projectId, java.lang.String importId) throws HttpException, HttpBadRequestException
projectId - project identifierimportId - import identifierHttpExceptionHttpBadRequestExceptionpublic ResponseObject<ImportTranslationsStringsBasedReportResponse> importTranslationsStringsBasedReport(java.lang.Long projectId, java.lang.String importId) throws HttpException, HttpBadRequestException
projectId - project identifierimportId - import identifierHttpExceptionHttpBadRequestException