function doGet(e)
{
//Initialize the app...
var app = UiApp.createApplication()
.setStyleAttribute("backgroundColor","#33CCFF");
var vPanel = app.createVerticalPanel()
.setHorizontalAlignment(UiApp.HorizontalAlignment.CENTER)
.setWidth("100%");
//Create a welcome message and data labels
var welcomeLabel = app.createLabel("You just Tweeted: ")
.setStyleAttribute("fontSize","36px")
.setStyleAttribute("color","white")
.setHorizontalAlignment(UiApp.HorizontalAlignment.CENTER)
.setWidth("100%");
var dataLabel = app.createLabel(e.parameter.data)
.setStyleAttribute("fontSize","48px")
.setStyleAttribute("color","white")
.setHorizontalAlignment(UiApp.HorizontalAlignment.CENTER)
.setWidth("100%");
var thankyouLabel = app.createLabel("Thanks for Tweeting!")
.setStyleAttribute("fontSize","36px")
.setStyleAttribute("color","white")
.setHorizontalAlignment(UiApp.HorizontalAlignment.CENTER)
.setWidth("100%");
MailApp.sendEmail("thekeyyouweregiven@twittermail.com", "New Tweet", " - "+e.parameter.data+" was just scanned using @Scanalyzer. #iphone");
//Create a grid for better formatting...
var mygrid = app.createGrid(6,1)
mygrid.setWidget(1,0,welcomeLabel)
.setWidget(3,0,dataLabel)
.setWidget(5,0,thankyouLabel);
//Add the vPanel to the App
app.add(vPanel.add(mygrid));
return app;
}