public class WorkflowsApi extends CrowdinApi
clientConfig, graphqlUrl, httpClient, url| Constructor and Description |
|---|
WorkflowsApi(Credentials credentials) |
WorkflowsApi(Credentials credentials,
ClientConfig clientConfig) |
| Modifier and Type | Method and Description |
|---|---|
ResponseObject<WorkflowStep> |
getWorkflowStep(java.lang.Long projectId,
java.lang.Long stepId) |
ResponseObject<WorkflowTemplate> |
getWorkflowTemplate(java.lang.Long templateId) |
ResponseList<WorkflowStep> |
listWorkflowSteps(java.lang.Long projectId) |
ResponseList<SourceString> |
listWorkflowStepStrings(java.lang.Long projectId,
java.lang.Long stepId,
java.lang.String languageIds,
java.util.List<OrderByField> orderBy,
java.lang.String status,
java.lang.Integer limit,
java.lang.Integer offset) |
ResponseList<WorkflowTemplate> |
listWorkflowTemplates(java.lang.Long groupId,
java.lang.Integer limit,
java.lang.Integer offset) |
graphql, graphqlpublic WorkflowsApi(Credentials credentials)
public WorkflowsApi(Credentials credentials, ClientConfig clientConfig)
public ResponseList<WorkflowStep> listWorkflowSteps(java.lang.Long projectId) throws HttpException, HttpBadRequestException
projectId - project identifierHttpExceptionHttpBadRequestExceptionpublic ResponseObject<WorkflowStep> getWorkflowStep(java.lang.Long projectId, java.lang.Long stepId) throws HttpException, HttpBadRequestException
projectId - project identifierstepId - workflow step identifierHttpExceptionHttpBadRequestExceptionpublic ResponseList<SourceString> listWorkflowStepStrings(java.lang.Long projectId, java.lang.Long stepId, java.lang.String languageIds, java.util.List<OrderByField> orderBy, java.lang.String status, java.lang.Integer limit, java.lang.Integer offset) throws HttpException, HttpBadRequestException
projectId - project identifierstepId - workflow step identifierlanguageIds - filter progress by language identifiersorderBy - ["id", "text", "identifier", "context", "createdAt", "updatedAt"]. List of OrderByField (default "id asc")status - ["todo", "done", "pending", "incomplete", "need_review"]. String status on the workflow steplimit - maximum number of items to retrieve (default 25)offset - starting offset in the collection (default 0)HttpExceptionHttpBadRequestExceptionpublic ResponseList<WorkflowTemplate> listWorkflowTemplates(java.lang.Long groupId, java.lang.Integer limit, java.lang.Integer offset) throws HttpException, HttpBadRequestException
groupId - group identifierlimit - maximum number of items to retrieve (default 25)offset - starting offset in the collection (default 0)HttpExceptionHttpBadRequestExceptionpublic ResponseObject<WorkflowTemplate> getWorkflowTemplate(java.lang.Long templateId) throws HttpException, HttpBadRequestException
templateId - workflow template identifierHttpExceptionHttpBadRequestException