Attachments class
Class representing a Attachments.
Constructors
Attachments(Connector |
Create a Attachments. |
Methods
get |
Get the named view as binary content |
get |
|
get |
|
get |
Get AttachmentInfo structure describing the attachment views |
get |
|
get |
Constructor Details
Attachments(ConnectorClientContext)
Create a Attachments.
new Attachments(client: ConnectorClientContext)
Parameters
- client
- ConnectorClientContext
Reference to the service client.
Method Details
getAttachment(string, string, RequestOptionsBase)
Get the named view as binary content
function getAttachment(attachmentId: string, viewId: string, options?: RequestOptionsBase): Promise<Models.AttachmentsGetAttachmentResponse>
Parameters
- attachmentId
-
string
attachment id
- viewId
-
string
View id from attachmentInfo
- options
-
RequestOptionsBase
Returns
Promise<Models.AttachmentsGetAttachmentResponse>
Promise<Models.AttachmentsGetAttachmentResponse>
getAttachment(string, string, RequestOptionsBase, ServiceCallback<void>)
function getAttachment(attachmentId: string, viewId: string, options: RequestOptionsBase, callback: ServiceCallback<void>)
Parameters
- attachmentId
-
string
attachment id
- viewId
-
string
View id from attachmentInfo
- options
-
RequestOptionsBase
The optional parameters
- callback
-
ServiceCallback<void>
The callback
getAttachment(string, string, ServiceCallback<void>)
function getAttachment(attachmentId: string, viewId: string, callback: ServiceCallback<void>)
Parameters
- attachmentId
-
string
attachment id
- viewId
-
string
View id from attachmentInfo
- callback
-
ServiceCallback<void>
The callback
getAttachmentInfo(string, RequestOptionsBase)
Get AttachmentInfo structure describing the attachment views
function getAttachmentInfo(attachmentId: string, options?: RequestOptionsBase): Promise<Models.AttachmentsGetAttachmentInfoResponse>
Parameters
- attachmentId
-
string
attachment id
- options
-
RequestOptionsBase
Returns
Promise<Models.AttachmentsGetAttachmentInfoResponse>
Promise<Models.AttachmentsGetAttachmentInfoResponse>
getAttachmentInfo(string, RequestOptionsBase, ServiceCallback<AttachmentInfo>)
function getAttachmentInfo(attachmentId: string, options: RequestOptionsBase, callback: ServiceCallback<AttachmentInfo>)
Parameters
- attachmentId
-
string
attachment id
- options
-
RequestOptionsBase
The optional parameters
- callback
-
ServiceCallback<AttachmentInfo>
The callback
getAttachmentInfo(string, ServiceCallback<AttachmentInfo>)
function getAttachmentInfo(attachmentId: string, callback: ServiceCallback<AttachmentInfo>)
Parameters
- attachmentId
-
string
attachment id
- callback
-
ServiceCallback<AttachmentInfo>
The callback