Class AttachmentsApi

java.lang.Object
com.symphony.bdk.gen.api.AttachmentsApi

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2023-06-21T12:31:55.143247962Z[Etc/UTC]") public class AttachmentsApi extends Object
  • Constructor Details

    • AttachmentsApi

      public AttachmentsApi(com.symphony.bdk.http.api.ApiClient apiClient)
  • Method Details

    • getApiClient

      public com.symphony.bdk.http.api.ApiClient getApiClient()
      Get the API cilent
      Returns:
      API client
    • setApiClient

      public void setApiClient(com.symphony.bdk.http.api.ApiClient apiClient)
      Set the API cilent
      Parameters:
      apiClient - an instance of API client
    • v1StreamSidAttachmentCreatePost

      @Deprecated public AttachmentInfo v1StreamSidAttachmentCreatePost(String sid, String sessionToken, String keyManagerToken, File _file) throws com.symphony.bdk.http.api.ApiException
      Deprecated.
      Upload an attachment. Upload an attachment to the given stream. The stream can be a chatroom, an IM or a multiparty IM. Once uploaded, you can use this attachment on a message you send in that stream. If the attachment is uploaded then 200 is returned.
      Parameters:
      sid - Stream ID (required)
      sessionToken - Session authentication token. (required)
      keyManagerToken - Key Manager authentication token. (required)
      _file - The attachment body. (required)
      Returns:
      AttachmentInfo
      Throws:
      com.symphony.bdk.http.api.ApiException - if fails to make API call
    • v1StreamSidAttachmentCreatePostWithHttpInfo

      @Deprecated public com.symphony.bdk.http.api.ApiResponse<AttachmentInfo> v1StreamSidAttachmentCreatePostWithHttpInfo(String sid, String sessionToken, String keyManagerToken, File _file) throws com.symphony.bdk.http.api.ApiException
      Deprecated.
      Upload an attachment. Upload an attachment to the given stream. The stream can be a chatroom, an IM or a multiparty IM. Once uploaded, you can use this attachment on a message you send in that stream. If the attachment is uploaded then 200 is returned.
      Parameters:
      sid - Stream ID (required)
      sessionToken - Session authentication token. (required)
      keyManagerToken - Key Manager authentication token. (required)
      _file - The attachment body. (required)
      Returns:
      ApiResponse<AttachmentInfo>
      Throws:
      com.symphony.bdk.http.api.ApiException - if fails to make API call
    • v1StreamSidAttachmentGet

      public byte[] v1StreamSidAttachmentGet(String sid, String fileId, String messageId, String sessionToken, String keyManagerToken) throws com.symphony.bdk.http.api.ApiException
      Download an attachment. Downloads the attachment body by the attachment ID, stream ID, and message ID.
      Parameters:
      sid - Stream ID (required)
      fileId - The attachment ID (Base64-encoded) (required)
      messageId - The ID of the message containing the attachment (required)
      sessionToken - Session authentication token. (required)
      keyManagerToken - Key Manager authentication token. (required)
      Returns:
      byte[]
      Throws:
      com.symphony.bdk.http.api.ApiException - if fails to make API call
    • v1StreamSidAttachmentGetWithHttpInfo

      public com.symphony.bdk.http.api.ApiResponse<byte[]> v1StreamSidAttachmentGetWithHttpInfo(String sid, String fileId, String messageId, String sessionToken, String keyManagerToken) throws com.symphony.bdk.http.api.ApiException
      Download an attachment. Downloads the attachment body by the attachment ID, stream ID, and message ID.
      Parameters:
      sid - Stream ID (required)
      fileId - The attachment ID (Base64-encoded) (required)
      messageId - The ID of the message containing the attachment (required)
      sessionToken - Session authentication token. (required)
      keyManagerToken - Key Manager authentication token. (required)
      Returns:
      ApiResponse<byte[]>
      Throws:
      com.symphony.bdk.http.api.ApiException - if fails to make API call
    • v3StreamSidAttachmentCreatePost

      @Deprecated public AttachmentInfo v3StreamSidAttachmentCreatePost(String sid, String sessionToken, File _file, String keyManagerToken) throws com.symphony.bdk.http.api.ApiException
      Deprecated.
      PROVISIONAL - Upload an attachment. Upload an attachment to the given stream. The stream can be a chatroom, an IM or a multiparty IM. Once uploaded, you can use this attachment on a message you send in that stream. If the attachment is uploaded then 200 is returned.
      Parameters:
      sid - Stream ID (required)
      sessionToken - Session authentication token. (required)
      _file - The attachment body. (required)
      keyManagerToken - Key Manager authentication token. (optional)
      Returns:
      AttachmentInfo
      Throws:
      com.symphony.bdk.http.api.ApiException - if fails to make API call
    • v3StreamSidAttachmentCreatePostWithHttpInfo

      @Deprecated public com.symphony.bdk.http.api.ApiResponse<AttachmentInfo> v3StreamSidAttachmentCreatePostWithHttpInfo(String sid, String sessionToken, File _file, String keyManagerToken) throws com.symphony.bdk.http.api.ApiException
      Deprecated.
      PROVISIONAL - Upload an attachment. Upload an attachment to the given stream. The stream can be a chatroom, an IM or a multiparty IM. Once uploaded, you can use this attachment on a message you send in that stream. If the attachment is uploaded then 200 is returned.
      Parameters:
      sid - Stream ID (required)
      sessionToken - Session authentication token. (required)
      _file - The attachment body. (required)
      keyManagerToken - Key Manager authentication token. (optional)
      Returns:
      ApiResponse<AttachmentInfo>
      Throws:
      com.symphony.bdk.http.api.ApiException - if fails to make API call