public class SourceStringsApi extends CrowdinApi
clientConfig, graphqlUrl, httpClient, url| Constructor and Description |
|---|
SourceStringsApi(Credentials credentials) |
SourceStringsApi(Credentials credentials,
ClientConfig clientConfig) |
| Modifier and Type | Method and Description |
|---|---|
ResponseObject<SourceString> |
addSourcePluralString(java.lang.Long projectId,
AddSourcePluralStringRequest request) |
ResponseObject<SourceString> |
addSourcePluralStringStringsBased(java.lang.Long projectId,
AddSourcePluralStringStringsBasedRequest request) |
ResponseObject<SourceString> |
addSourceString(java.lang.Long projectId,
AddSourceStringRequest request) |
ResponseObject<SourceString> |
addSourceStringStringsBased(java.lang.Long projectId,
AddSourceStringStringsBasedRequest request) |
void |
deleteSourceString(java.lang.Long projectId,
java.lang.Long stringId) |
ResponseObject<SourceString> |
editSourceString(java.lang.Long projectId,
java.lang.Long stringId,
java.util.List<PatchRequest> request) |
ResponseObject<SourceString> |
getSourceString(java.lang.Long projectId,
java.lang.Long stringId) |
ResponseList<SourceString> |
listSourceStrings(java.lang.Long projectId,
ListSourceStringsParams params) |
ResponseList<SourceString> |
listSourceStrings(java.lang.Long projectId,
java.lang.Long fileId,
java.lang.Integer denormalizePlaceholders,
java.lang.Long branchId,
java.lang.String labelIds,
java.lang.String croql,
java.lang.String filter,
java.lang.String scope,
java.lang.Integer limit,
java.lang.Integer offset)
Deprecated.
|
ResponseList<SourceString> |
stringBatchOperations(java.lang.Long projectId,
java.util.List<PatchRequest> request) |
ResponseObject<UploadStringsProgress> |
uploadStrings(java.lang.Long projectId,
UploadStringsRequest request) |
ResponseObject<UploadStringsProgress> |
uploadStringsStatus(java.lang.Long projectId,
java.lang.String uploadId) |
graphql, graphqlpublic SourceStringsApi(Credentials credentials)
public SourceStringsApi(Credentials credentials, ClientConfig clientConfig)
public ResponseObject<UploadStringsProgress> uploadStringsStatus(java.lang.Long projectId, java.lang.String uploadId) throws HttpException, HttpBadRequestException
projectId - project identifieruploadId - upload identifierHttpExceptionHttpBadRequestExceptionpublic ResponseObject<UploadStringsProgress> uploadStrings(java.lang.Long projectId, UploadStringsRequest request) throws HttpException, HttpBadRequestException
HttpExceptionHttpBadRequestException@Deprecated public ResponseList<SourceString> listSourceStrings(java.lang.Long projectId, java.lang.Long fileId, java.lang.Integer denormalizePlaceholders, java.lang.Long branchId, java.lang.String labelIds, java.lang.String croql, java.lang.String filter, java.lang.String scope, java.lang.Integer limit, java.lang.Integer offset) throws HttpException, HttpBadRequestException
projectId - project identifierfileId - file identifierdenormalizePlaceholders - [0, 1]. Enable denormalize placeholdersbranchId - project identifierlabelIds - filter strings by labelscroql - filter strings by croqlfilter - Filter stringsscope - ["identifier", "text", "context"]. Specify field to be the target of filtering. It can be one scope or a list of comma-separated scopeslimit - maximum number of items to retrieve (default 25)offset - starting offset in the collection (default 0)HttpExceptionHttpBadRequestExceptionpublic ResponseList<SourceString> listSourceStrings(java.lang.Long projectId, ListSourceStringsParams params) throws HttpException, HttpBadRequestException
projectId - project identifierparams - Query paramsHttpExceptionHttpBadRequestExceptionpublic ResponseObject<SourceString> addSourceString(java.lang.Long projectId, AddSourceStringRequest request) throws HttpException, HttpBadRequestException
projectId - project identifierrequest - request objectHttpExceptionHttpBadRequestExceptionpublic ResponseObject<SourceString> addSourcePluralString(java.lang.Long projectId, AddSourcePluralStringRequest request) throws HttpException, HttpBadRequestException
HttpExceptionHttpBadRequestExceptionpublic ResponseObject<SourceString> addSourceStringStringsBased(java.lang.Long projectId, AddSourceStringStringsBasedRequest request) throws HttpException, HttpBadRequestException
HttpExceptionHttpBadRequestExceptionpublic ResponseObject<SourceString> addSourcePluralStringStringsBased(java.lang.Long projectId, AddSourcePluralStringStringsBasedRequest request) throws HttpException, HttpBadRequestException
HttpExceptionHttpBadRequestExceptionpublic ResponseObject<SourceString> getSourceString(java.lang.Long projectId, java.lang.Long stringId) throws HttpException, HttpBadRequestException
projectId - project identifierstringId - string identifierHttpExceptionHttpBadRequestExceptionpublic void deleteSourceString(java.lang.Long projectId,
java.lang.Long stringId)
throws HttpException,
HttpBadRequestException
projectId - project identifierstringId - string identifierHttpExceptionHttpBadRequestExceptionpublic ResponseObject<SourceString> editSourceString(java.lang.Long projectId, java.lang.Long stringId, java.util.List<PatchRequest> request) throws HttpException, HttpBadRequestException
projectId - project identifierstringId - string identifierrequest - request objectHttpExceptionHttpBadRequestExceptionpublic ResponseList<SourceString> stringBatchOperations(java.lang.Long projectId, java.util.List<PatchRequest> request) throws HttpException, HttpBadRequestException
projectId - project identifierrequest - request objectHttpExceptionHttpBadRequestException