sendFile
About 1 min
sendFile
Description: Send a file to a user.
Request example:
{
"method" : "sendFile",
"requestId" : "1",
"fileId" : 260618251,
"callId" : "820_1@some.server"
}Response example:
{
"method": "sendFile",
"requestId": "1",
"sentFileRequestId": "88e75ca1-b758-4466-a2fe-d0e80b5cd6bd",
"result": true
}Parameter description:
fileId- a unique file identifier on the built-in HTTP server, which has been previously uploaded and needs to be sent.callId- a unique identifier of the user (TrueConf ID) to whom the file needs to be sent. Applicability:PeerId is supported. Within the application, it is automatically converted to CallId, and the command is executed with it.
CallId - is supported. The command is executed for the specified identifier.
InstanceId - not supported
sentFileRequestId— the identifier of a file request (available only if the command has been successfully executed)requestId- a unique request identifier. You can find more details about it here.
See also:
- Built-in HTTP server
- getFileRequestInfo
- getFileList
- getFileTransferAvailability
- sendFileToConference
- getOutgoingFilesRequests
- getIncomingFilesRequests
- getFileTransferHistory
- clearFileTransferHistory
- deleteFileTransferFile
- acceptIncomingFileRequest
- rejectIncomingFileRequest
- incomingFileRequestRejected
- incomingFileRequestAccepted
- fileRequestStatusChanged
- fileTransferAvailabilityChanged
- receivedFileRequest
- fileTransferHistoryCleared
- fileDeletedFromFileTransferHistory
- outgoingFileRequestSent
- outgoingFileRequestSentToConference
- incomingFileRequestDownloadingProgress
- outgoingFileRequestUploadingProgress