Package com.mypurecloud.sdk.v2.api
Class DownloadsApi
java.lang.Object
com.mypurecloud.sdk.v2.api.DownloadsApi
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetDownload(GetDownloadRequest request) Issues a redirect to a signed secure download URL for specified download this method will issue a redirect to the url to the contentgetDownload(ApiRequest<Void> request) Issues a redirect to a signed secure download URL for specified download this method will issue a redirect to the url to the contentgetDownload(String downloadId, String contentDisposition, Boolean issueRedirect, Boolean redirectToAuth) Issues a redirect to a signed secure download URL for specified download this method will issue a redirect to the url to the contentgetDownloadWithHttpInfo(String downloadId, String contentDisposition, Boolean issueRedirect, Boolean redirectToAuth) Issues a redirect to a signed secure download URL for specified download this method will issue a redirect to the url to the content
-
Constructor Details
-
DownloadsApi
public DownloadsApi() -
DownloadsApi
-
-
Method Details
-
getDownload
public UrlResponse getDownload(String downloadId, String contentDisposition, Boolean issueRedirect, Boolean redirectToAuth) throws IOException, ApiException Issues a redirect to a signed secure download URL for specified download this method will issue a redirect to the url to the content- Parameters:
downloadId- Download ID (required)contentDisposition- (optional)issueRedirect- (optional, default to true)redirectToAuth- (optional, default to true)- Returns:
- UrlResponse
- Throws:
ApiException- if the request fails on the serverIOException- if the request fails to be processed
-
getDownloadWithHttpInfo
public ApiResponse<UrlResponse> getDownloadWithHttpInfo(String downloadId, String contentDisposition, Boolean issueRedirect, Boolean redirectToAuth) throws IOException Issues a redirect to a signed secure download URL for specified download this method will issue a redirect to the url to the content- Parameters:
downloadId- Download ID (required)contentDisposition- (optional)issueRedirect- (optional, default to true)redirectToAuth- (optional, default to true)- Returns:
- UrlResponse
- Throws:
IOException- if the request fails to be processed
-
getDownload
Issues a redirect to a signed secure download URL for specified download this method will issue a redirect to the url to the content- Parameters:
request- The request object- Returns:
- UrlResponse
- Throws:
ApiException- if the request fails on the serverIOException- if the request fails to be processed
-
getDownload
Issues a redirect to a signed secure download URL for specified download this method will issue a redirect to the url to the content- Parameters:
request- The request object- Returns:
- the response
- Throws:
IOException- if the request fails to be processed
-