download
public Keep.Media.Download download(String name)
throws IOException
Gets an attachment. To download attachment media via REST requires the alt=media query parameter.
Returns a 400 bad request error if attachment media is not available in the requested MIME type.
Create a request for the method "media.download".
This request holds the parameters needed by the keep server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
name
- Required. The name of the attachment.
- Returns:
- the request
- Throws:
IOException