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<WorkflowTemplate> |
listWorkflowTemplates(java.lang.Long groupId,
java.lang.Integer limit,
java.lang.Integer offset) |
graphql, graphql
public WorkflowsApi(Credentials credentials)
public WorkflowsApi(Credentials credentials, ClientConfig clientConfig)
public ResponseList<WorkflowStep> listWorkflowSteps(java.lang.Long projectId) throws HttpException, HttpBadRequestException
projectId
- project identifierHttpException
HttpBadRequestException
public ResponseObject<WorkflowStep> getWorkflowStep(java.lang.Long projectId, java.lang.Long stepId) throws HttpException, HttpBadRequestException
projectId
- project identifierstepId
- workflow step identifierHttpException
HttpBadRequestException
public 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)HttpException
HttpBadRequestException
public ResponseObject<WorkflowTemplate> getWorkflowTemplate(java.lang.Long templateId) throws HttpException, HttpBadRequestException
templateId
- workflow template identifierHttpException
HttpBadRequestException