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, graphql
public 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 identifierHttpException
HttpBadRequestException
public ResponseObject<UploadStringsProgress> uploadStrings(java.lang.Long projectId, UploadStringsRequest request) throws HttpException, HttpBadRequestException
HttpException
HttpBadRequestException
@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)HttpException
HttpBadRequestException
public ResponseList<SourceString> listSourceStrings(java.lang.Long projectId, ListSourceStringsParams params) throws HttpException, HttpBadRequestException
HttpException
HttpBadRequestException
public ResponseObject<SourceString> addSourceString(java.lang.Long projectId, AddSourceStringRequest request) throws HttpException, HttpBadRequestException
projectId
- project identifierrequest
- request objectHttpException
HttpBadRequestException
public ResponseObject<SourceString> addSourcePluralString(java.lang.Long projectId, AddSourcePluralStringRequest request) throws HttpException, HttpBadRequestException
HttpException
HttpBadRequestException
public ResponseObject<SourceString> addSourceStringStringsBased(java.lang.Long projectId, AddSourceStringStringsBasedRequest request) throws HttpException, HttpBadRequestException
HttpException
HttpBadRequestException
public ResponseObject<SourceString> addSourcePluralStringStringsBased(java.lang.Long projectId, AddSourcePluralStringStringsBasedRequest request) throws HttpException, HttpBadRequestException
HttpException
HttpBadRequestException
public ResponseObject<SourceString> getSourceString(java.lang.Long projectId, java.lang.Long stringId) throws HttpException, HttpBadRequestException
projectId
- project identifierstringId
- string identifierHttpException
HttpBadRequestException
public void deleteSourceString(java.lang.Long projectId, java.lang.Long stringId) throws HttpException, HttpBadRequestException
projectId
- project identifierstringId
- string identifierHttpException
HttpBadRequestException
public 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 objectHttpException
HttpBadRequestException
public ResponseList<SourceString> stringBatchOperations(java.lang.Long projectId, java.util.List<PatchRequest> request) throws HttpException, HttpBadRequestException
projectId
- project identifierrequest
- request objectHttpException
HttpBadRequestException