function SignIn(recipientId){
	let messageData = {
		recipient: {
			id: recipientId
		},
		message:{
			attachment:{
				type:"template",
				payload:{
					template_type:"button",
					text:"Please sign in with slack to link your Facebook and Slack accounts.",
					buttons:
					[
						{
							type:"web_url",
							url:"https://slack.com/oauth/authorize?scope=channels:history,channels:read,chat:write:user,groups:history,groups:read,team:read,users:read&client_id=" + process.env.SLACK_CLIENT_ID + "&state=" + recipientId,
							title:"Sign In"
						}
					]
				}
			}
		}
	};
	callSendAPI(messageData);
}
//Postconditions: the user will be sent a link to sign into Slack
the user will be sent a link to sign into Slack
the user will be sent a link to sign into Slack
function SignIn(recipientId){
	let messageData = {
		recipient: {
			id: recipientId
		},
		message:{
			attachment:{
				type:"template",
				payload:{
					template_type:"button",
					text:"Please sign in with slack to link your Facebook and Slack accounts.",
					buttons:
					[
						{
							type:"web_url",
							url:"https://slack.com/oauth/authorize?scope=channels:history,channels:read,chat:write:user,groups:history,groups:read,team:read,users:read&client_id=" + process.env.SLACK_CLIENT_ID + "&state=" + recipientId,
							title:"Sign In"
						}
					]
				}
			}
		}
	};
	callSendAPI(messageData);
}
function SignIn ( recipientId ) { let messageData = { recipient : { id : recipientId } , message : { attachment : { type : "template" , payload : { template_type : "button" , text : "Please sign in with slack to link your Facebook and Slack accounts." , buttons : [ { type : "web_url" , url : "https://slack.com/oauth/authorize?scope=channels:history,channels:read,chat:write:user,groups:history,groups:read,team:read,users:read&client_id=" + process . env . SLACK_CLIENT_ID + "&state=" + recipientId , title : "Sign In" } ] } } } } ; callSendAPI ( messageData ) ; }
Postconditions: the user will be sent a link to sign into Slack
Postconditions : the user will be sent a link to sign into Slack