Constructor
new Document(document, isItAnID, captionopt, filenameopt)
- Source:
Properties:
Name | Type | Attributes | Description |
---|---|---|---|
caption |
String |
<optional> |
The file's caption |
filename |
String |
<optional> |
The file's filename |
Create a Document object for the API
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
document |
String | The document file's link or id | ||
isItAnID |
Boolean |
false
|
Whether document is an id (true) or a link (false) | |
caption |
String |
<optional> |
Describes the specified document media | |
filename |
String |
<optional> |
Describes the filename for the specific document |