Class AsyncCollectionsClient


  • public class AsyncCollectionsClient
    extends java.lang.Object
    • Constructor Detail

      • AsyncCollectionsClient

        public AsyncCollectionsClient​(ClientOptions clientOptions)
    • Method Detail

      • list

        public java.util.concurrent.CompletableFuture<SyncPagingIterable<Collection>> list()
        You can fetch a list of all collections by making a GET request to https://api.intercom.io/help_center/collections.

        Collections will be returned in descending order on the updated_at attribute. This means if you need to iterate through results then we'll show the most recently updated collections first.

      • list

        public java.util.concurrent.CompletableFuture<SyncPagingIterable<Collection>> list​(ListCollectionsRequest request)
        You can fetch a list of all collections by making a GET request to https://api.intercom.io/help_center/collections.

        Collections will be returned in descending order on the updated_at attribute. This means if you need to iterate through results then we'll show the most recently updated collections first.

      • list

        public java.util.concurrent.CompletableFuture<SyncPagingIterable<Collection>> list​(ListCollectionsRequest request,
                                                                                           RequestOptions requestOptions)
        You can fetch a list of all collections by making a GET request to https://api.intercom.io/help_center/collections.

        Collections will be returned in descending order on the updated_at attribute. This means if you need to iterate through results then we'll show the most recently updated collections first.

      • create

        public java.util.concurrent.CompletableFuture<Collection> create​(CreateCollectionRequest request)
        You can create a new collection by making a POST request to https://api.intercom.io/help_center/collections.
      • create

        public java.util.concurrent.CompletableFuture<Collection> create​(CreateCollectionRequest request,
                                                                         RequestOptions requestOptions)
        You can create a new collection by making a POST request to https://api.intercom.io/help_center/collections.
      • find

        public java.util.concurrent.CompletableFuture<Collection> find​(FindCollectionRequest request)
        You can fetch the details of a single collection by making a GET request to https://api.intercom.io/help_center/collections/<id>.
      • find

        public java.util.concurrent.CompletableFuture<Collection> find​(FindCollectionRequest request,
                                                                       RequestOptions requestOptions)
        You can fetch the details of a single collection by making a GET request to https://api.intercom.io/help_center/collections/<id>.
      • update

        public java.util.concurrent.CompletableFuture<Collection> update​(UpdateCollectionRequest request)
        You can update the details of a single collection by making a PUT request to https://api.intercom.io/collections/<id>.
      • update

        public java.util.concurrent.CompletableFuture<Collection> update​(UpdateCollectionRequest request,
                                                                         RequestOptions requestOptions)
        You can update the details of a single collection by making a PUT request to https://api.intercom.io/collections/<id>.
      • delete

        public java.util.concurrent.CompletableFuture<DeletedCollectionObject> delete​(DeleteCollectionRequest request)
        You can delete a single collection by making a DELETE request to https://api.intercom.io/collections/<id>.