app.js
/*
 * Send a message with the account linking call-to-action
 *
 */
Send a message with the account linking call-to-action
Send a message with the account linking call - to - action
function sendAccountLinking(recipientId) {
	var messageData = {
		recipient: {
			id: recipientId
		},
		message: {
			attachment: {
				type: "template",
				payload: {
					template_type: "button",
					text: "Welcome. Link your account.",
					buttons: [{
						type: "account_link",
						url: config.SERVER_URL + "/authorize"
          }]
				}
			}
		}
	};
	callSendAPI(messageData);
}
function sendAccountLinking ( recipientId ) { var messageData = { recipient : { id : recipientId } , message : { attachment : { type : "template" , payload : { template_type : "button" , text : "Welcome. Link your account." , buttons : [ { type : "account_link" , url : config . SERVER_URL + "/authorize" } ] } } } } ; callSendAPI ( messageData ) ; }
Send a message with the account linking call-to-action
Send a message with the account linking call - to - action