Class AsyncHelpCenterClient
- java.lang.Object
-
- com.intercom.api.resources.unstable.helpcenter.AsyncHelpCenterClient
-
public class AsyncHelpCenterClient extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected ClientOptionsclientOptions
-
Constructor Summary
Constructors Constructor Description AsyncHelpCenterClient(ClientOptions clientOptions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.concurrent.CompletableFuture<Collection>createCollection(CreateCollectionRequest request)You can create a new collection by making a POST request tohttps://api.intercom.io/help_center/collections.java.util.concurrent.CompletableFuture<Collection>createCollection(CreateCollectionRequest request, RequestOptions requestOptions)You can create a new collection by making a POST request tohttps://api.intercom.io/help_center/collections.java.util.concurrent.CompletableFuture<DeletedCollectionObject>deleteCollection(DeleteCollectionRequest request)You can delete a single collection by making a DELETE request tohttps://api.intercom.io/collections/<id>.java.util.concurrent.CompletableFuture<DeletedCollectionObject>deleteCollection(DeleteCollectionRequest request, RequestOptions requestOptions)You can delete a single collection by making a DELETE request tohttps://api.intercom.io/collections/<id>.java.util.concurrent.CompletableFuture<CollectionList>listAllCollections()You can fetch a list of all collections by making a GET request tohttps://api.intercom.io/help_center/collections.java.util.concurrent.CompletableFuture<CollectionList>listAllCollections(RequestOptions requestOptions)You can fetch a list of all collections by making a GET request tohttps://api.intercom.io/help_center/collections.java.util.concurrent.CompletableFuture<HelpCenterList>listHelpCenters()You can list all Help Centers by making a GET request tohttps://api.intercom.io/help_center/help_centers.java.util.concurrent.CompletableFuture<HelpCenterList>listHelpCenters(RequestOptions requestOptions)You can list all Help Centers by making a GET request tohttps://api.intercom.io/help_center/help_centers.java.util.concurrent.CompletableFuture<Collection>retrieveCollection(RetrieveCollectionRequest request)You can fetch the details of a single collection by making a GET request tohttps://api.intercom.io/help_center/collections/<id>.java.util.concurrent.CompletableFuture<Collection>retrieveCollection(RetrieveCollectionRequest request, RequestOptions requestOptions)You can fetch the details of a single collection by making a GET request tohttps://api.intercom.io/help_center/collections/<id>.java.util.concurrent.CompletableFuture<HelpCenter>retrieveHelpCenter(RetrieveHelpCenterRequest request)You can fetch the details of a single Help Center by making a GET request tohttps://api.intercom.io/help_center/help_center/<id>.java.util.concurrent.CompletableFuture<HelpCenter>retrieveHelpCenter(RetrieveHelpCenterRequest request, RequestOptions requestOptions)You can fetch the details of a single Help Center by making a GET request tohttps://api.intercom.io/help_center/help_center/<id>.java.util.concurrent.CompletableFuture<Collection>updateCollection(UpdateCollectionRequest request)You can update the details of a single collection by making a PUT request tohttps://api.intercom.io/collections/<id>.java.util.concurrent.CompletableFuture<Collection>updateCollection(UpdateCollectionRequest request, RequestOptions requestOptions)You can update the details of a single collection by making a PUT request tohttps://api.intercom.io/collections/<id>.AsyncRawHelpCenterClientwithRawResponse()Get responses with HTTP metadata like headers
-
-
-
Field Detail
-
clientOptions
protected final ClientOptions clientOptions
-
-
Constructor Detail
-
AsyncHelpCenterClient
public AsyncHelpCenterClient(ClientOptions clientOptions)
-
-
Method Detail
-
withRawResponse
public AsyncRawHelpCenterClient withRawResponse()
Get responses with HTTP metadata like headers
-
listAllCollections
public java.util.concurrent.CompletableFuture<CollectionList> listAllCollections()
You can fetch a list of all collections by making a GET request tohttps://api.intercom.io/help_center/collections.Collections will be returned in descending order on the
updated_atattribute. This means if you need to iterate through results then we'll show the most recently updated collections first.
-
listAllCollections
public java.util.concurrent.CompletableFuture<CollectionList> listAllCollections(RequestOptions requestOptions)
You can fetch a list of all collections by making a GET request tohttps://api.intercom.io/help_center/collections.Collections will be returned in descending order on the
updated_atattribute. This means if you need to iterate through results then we'll show the most recently updated collections first.
-
createCollection
public java.util.concurrent.CompletableFuture<Collection> createCollection(CreateCollectionRequest request)
You can create a new collection by making a POST request tohttps://api.intercom.io/help_center/collections.
-
createCollection
public java.util.concurrent.CompletableFuture<Collection> createCollection(CreateCollectionRequest request, RequestOptions requestOptions)
You can create a new collection by making a POST request tohttps://api.intercom.io/help_center/collections.
-
retrieveCollection
public java.util.concurrent.CompletableFuture<Collection> retrieveCollection(RetrieveCollectionRequest request)
You can fetch the details of a single collection by making a GET request tohttps://api.intercom.io/help_center/collections/<id>.
-
retrieveCollection
public java.util.concurrent.CompletableFuture<Collection> retrieveCollection(RetrieveCollectionRequest request, RequestOptions requestOptions)
You can fetch the details of a single collection by making a GET request tohttps://api.intercom.io/help_center/collections/<id>.
-
updateCollection
public java.util.concurrent.CompletableFuture<Collection> updateCollection(UpdateCollectionRequest request)
You can update the details of a single collection by making a PUT request tohttps://api.intercom.io/collections/<id>.
-
updateCollection
public java.util.concurrent.CompletableFuture<Collection> updateCollection(UpdateCollectionRequest request, RequestOptions requestOptions)
You can update the details of a single collection by making a PUT request tohttps://api.intercom.io/collections/<id>.
-
deleteCollection
public java.util.concurrent.CompletableFuture<DeletedCollectionObject> deleteCollection(DeleteCollectionRequest request)
You can delete a single collection by making a DELETE request tohttps://api.intercom.io/collections/<id>.
-
deleteCollection
public java.util.concurrent.CompletableFuture<DeletedCollectionObject> deleteCollection(DeleteCollectionRequest request, RequestOptions requestOptions)
You can delete a single collection by making a DELETE request tohttps://api.intercom.io/collections/<id>.
-
retrieveHelpCenter
public java.util.concurrent.CompletableFuture<HelpCenter> retrieveHelpCenter(RetrieveHelpCenterRequest request)
You can fetch the details of a single Help Center by making a GET request tohttps://api.intercom.io/help_center/help_center/<id>.
-
retrieveHelpCenter
public java.util.concurrent.CompletableFuture<HelpCenter> retrieveHelpCenter(RetrieveHelpCenterRequest request, RequestOptions requestOptions)
You can fetch the details of a single Help Center by making a GET request tohttps://api.intercom.io/help_center/help_center/<id>.
-
listHelpCenters
public java.util.concurrent.CompletableFuture<HelpCenterList> listHelpCenters()
You can list all Help Centers by making a GET request tohttps://api.intercom.io/help_center/help_centers.
-
listHelpCenters
public java.util.concurrent.CompletableFuture<HelpCenterList> listHelpCenters(RequestOptions requestOptions)
You can list all Help Centers by making a GET request tohttps://api.intercom.io/help_center/help_centers.
-
-