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