app.js
/*
 * Send a video using the Send API.
 * example fileName: fileName"/assets/test.txt"
 */
Send a video using the Send API.
Send a video using the Send API .
function sendFileMessage(recipientId, fileName) {
	var messageData = {
		recipient: {
			id: recipientId
		},
		message: {
			attachment: {
				type: "file",
				payload: {
					url: config.SERVER_URL + fileName
				}
			}
		}
	};
	callSendAPI(messageData);
}
function sendFileMessage ( recipientId , fileName ) { var messageData = { recipient : { id : recipientId } , message : { attachment : { type : "file" , payload : { url : config . SERVER_URL + fileName } } } } ; callSendAPI ( messageData ) ; }
Send a video using the Send API.
Send a video using the Send API .