public class OrganizationWebhooksApi extends CrowdinApi
clientConfig, graphqlUrl, httpClient, url
Constructor and Description |
---|
OrganizationWebhooksApi(Credentials credentials) |
OrganizationWebhooksApi(Credentials credentials,
ClientConfig clientConfig) |
Modifier and Type | Method and Description |
---|---|
ResponseObject<OrganizationWebhook> |
addWebhook(AddOrganizationWebhookRequest request) |
void |
deleteWebhook(java.lang.Long organizationWebhookId) |
ResponseObject<OrganizationWebhook> |
editWebhook(java.lang.Long organizationWebhookId,
java.util.List<PatchRequest> request) |
ResponseObject<OrganizationWebhook> |
getWebhook(java.lang.Long organizationWebhookId) |
ResponseList<OrganizationWebhook> |
listWebhooks(java.lang.Integer limit,
java.lang.Integer offset) |
graphql, graphql
public OrganizationWebhooksApi(Credentials credentials)
public OrganizationWebhooksApi(Credentials credentials, ClientConfig clientConfig)
public ResponseList<OrganizationWebhook> listWebhooks(java.lang.Integer limit, java.lang.Integer offset) throws HttpException, HttpBadRequestException
limit
- maximum number of items to retrieve (default 25)offset
- starting offset in the collection (default 0)HttpException
HttpBadRequestException
public ResponseObject<OrganizationWebhook> addWebhook(AddOrganizationWebhookRequest request) throws HttpException, HttpBadRequestException
request
- request objectHttpException
HttpBadRequestException
public ResponseObject<OrganizationWebhook> getWebhook(java.lang.Long organizationWebhookId) throws HttpException, HttpBadRequestException
organizationWebhookId
- organization webhook identifierHttpException
HttpBadRequestException
public void deleteWebhook(java.lang.Long organizationWebhookId) throws HttpException, HttpBadRequestException
organizationWebhookId
- organization webhook identifierHttpException
HttpBadRequestException
public ResponseObject<OrganizationWebhook> editWebhook(java.lang.Long organizationWebhookId, java.util.List<PatchRequest> request) throws HttpException, HttpBadRequestException
organizationWebhookId
- organization webhook identifierrequest
- request objectHttpException
HttpBadRequestException