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, graphqlpublic 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)HttpExceptionHttpBadRequestExceptionpublic ResponseObject<OrganizationWebhook> addWebhook(AddOrganizationWebhookRequest request) throws HttpException, HttpBadRequestException
request - request objectHttpExceptionHttpBadRequestExceptionpublic ResponseObject<OrganizationWebhook> getWebhook(java.lang.Long organizationWebhookId) throws HttpException, HttpBadRequestException
organizationWebhookId - organization webhook identifierHttpExceptionHttpBadRequestExceptionpublic void deleteWebhook(java.lang.Long organizationWebhookId)
throws HttpException,
HttpBadRequestException
organizationWebhookId - organization webhook identifierHttpExceptionHttpBadRequestExceptionpublic ResponseObject<OrganizationWebhook> editWebhook(java.lang.Long organizationWebhookId, java.util.List<PatchRequest> request) throws HttpException, HttpBadRequestException
organizationWebhookId - organization webhook identifierrequest - request objectHttpExceptionHttpBadRequestException