ORDER PIZZA ROB – GONZEE.TV. HI I’M ROB! (yet again)

Slides:



Advertisements
Similar presentations
VOIC ROB – GONZEE.TV. HI IM ROB! (yet again)
Advertisements

TECHNICAL RESOURCES ROB – GONZEE.TV. HI IM ROB!
Web Database Programming Input Validation. User Input on the Web Web browser built-in mechanisms –HTML Forms HTTP POST method –Hyperlinks HTTP GET method.
Mark Dixon, SoCCE SOFT 131Page 1 20 – Web applications: HTML and Client-side code.
HTML Form Processing Learning Web Design – Chapter 9, pp Squirrel Book – Chapter 11, pp
Mark Dixon, SoCCE SOFT 131Page 1 16 – Web applications: HTML and Client-side code.
Dark Nebula: Using the Cloud to build a RESTful Web Service John Fisher, Robert Fisher, and Peter Bui Department of Computer Science With the emerging.
Online real-time tweets extraction, mapping and dissemination Xiannian Chen and Gregory Elmes West Virginia University Chen & West Virginia University2014.
1 More JavaScript, HTML Forms, CGI Scripts Tom Horton Alfred C. Weaver CS453 Electronic Commerce.
Agenda What is AJAX? What is jQuery? Demonstration/Tutorial Resources Q&A.
Making AJAX Easy with jQuery Chris Renner Health Systems Analyst Programmer & Informatics Manager VUMC Office of Grants & Contracts Management October.
Lecture 3 – Data Storage with XML+AJAX and MySQL+socket.io
CodeIgniter - [Overview]
TELEPHONE ENGLISH.
Homework for October 2011 Nikolay Kostov Telerik Corporation
CSC 2720 Building Web Applications Getting and Setting HTTP Headers (With PHP Examples)
REST.  REST is an acronym standing for Representational State Transfer  A software architecture style for building scalable web services  Typically,
PHP and MySQL for Client-Server Database Interaction Chapter 10.
Libsecondlife: Bots Hyungwook Park. LSL vs. libsecondlife Linden Script Language (LSL)  Programming language used by residents of Second Life  Controls.
Voyager Web Services and Web Applications Birong Ho Systems Librarian Western Michigan University March, 2011, Developer Meets Developer -
Dialtone api Gordon Guthrie Twilio. Twiml - XMHell Hello World.
Leveraging ArcGIS Online Elevation and Hydrology Services
Creating Dynamic Web Pages Using PHP and MySQL CS 320.
Lecture 8 – Cookies & Sessions SFDV3011 – Advanced Web Development 1.
Web Scripting [PHP] CIS166AE Wednesdays 6:00pm – 9:50pm Rob Loy.
Phone: Mega AS Consulting Ltd © 2007  CAT – the problem & the solution  Using the CAT - Administrator  Mega.
Yet more on XSLT. Regular expression handling in EXSLT We saw that the EXSLT extensions are divided into a group of modules, each of which has its own.
Cookies & Session Web Technology
Training & Support for End Users of Cisco Unified Communications Agenda:  Flash Demo  VoIPT on the Phone  Modules / Pricing  Installation Process.
Introduction to Module Development John Fiala and Ezra Barnett Gildesgame.
HTML, PHP, and MySQL: Putting It All Together. Making a Form Input tags Types: “text” “radio” “checkboxes” “submit”
CSC 2720 Building Web Applications Server-side Scripting with PHP.
Just a Little PHP Programming PHP on the Server. Common Programming Language Features Comments Data Types Variable Declarations Expressions Flow of Control.
Web Design: Basic to Advanced Techniques Fall 2010 Mondays 7-9pm 200 Sutardja-Dai Hall Introduction to PHP.
VENUE FINDER. This application provide up to date information of locations where particular music events are taking place on an specific date. The application.
Module 2.1 GU Library Catalog Intro to the Basic Search interface Keyword (boolean) searching Placing a hold or recalling an item Printing or saving search.
Facebook API Kelly Orser. Client Libraries Client libraries will simplify the calls to the platform by reducing the amount of code you have to write.
Sessions and Cookies State Management, Cookies, Sessions, Hidden Fields SoftUni Team Technical Trainers Software University
School of Computing and Information Systems CS 371 Web Application Programming AJAX.
NMD202 Web Scripting Week5. What we will cover today PHP & MySQL Displaying Dynamic Pages Exercises Modifying Data PHP Exercises Assignment 1.
WORKING WITH THE “CALL HTTP WEB SERVICE” WORKFLOW ACTIVITY Derek Nishino Nishino Consulting
 Previous lessons have focused on client-side scripts  Programs embedded in the page’s HTML code  Can also execute scripts on the server  Server-side.
1000+ HTTP&TCP services “Make configuration / e2e lifecycle easier” HTTP&TCP services “Make configuration / e2e lifecycle easier” SOAP & REST.
Scripting Languages Client Side and Server Side. Examples of client side/server side Examples of client-side side include: JavaScript Jquery (uses a JavaScript.
Copyright© 2012 Microsoft Corporation Visio Services 2013 Mashup API Chris Hopkins Senior Consultant - Premier Developer Practice Microsoft.
Working with Forms in PHP HTTP GET / POST, Validation, Escaping, Input Types, Submitting Arrays, URL Redirecting, PHP Superglobals Svetlin Nakov Technical.
Introduction to PHP Brendan Knight. What is PHP PHP is a general-purpose scripting language originally designed for web development to produce dynamic.
PHP and Sessions. Session – a general definition The GENERAL definition of a session in the “COMPUTER WORLD” is: The interactions (requests and responses)
AJAX and REST. Slide 2 What is AJAX? It’s an acronym for Asynchronous JavaScript and XML Although requests need not be asynchronous It’s not really a.
® IBM Software Group © 2006 IBM Corporation Rational Asset Manager v7.2 Using Scripting Tutorial for using command line and scripting using Ant Tasks Carlos.
1 PHP HTTP After this lecture, you should be able to know: How to create and process web forms with HTML and PHP. How to create and process web forms with.
AJAX in Ruby-on-Rails. Ruby on Rails and AJAX AJAX can be done with just Javascript Easier if you use libraries –Prototype –SAJAX –jQuery Libraries only.
Unit-6 Handling Sessions and Cookies. Concept of Session Session values are store in server side not in user’s machine. A session is available as long.
Simple Web Services. Internet Basics The Internet is based on a communication protocol named TCP (Transmission Control Protocol) TCP allows programs running.
Web services Web services today are frequently just Application Programming Interfaces (API) or web APIs that can be accessed over a network, such as the.
Introduction to Node.js® Jitendra Kumar Patel Saturday, January 31, 2015.
Real-Time Dashboards on Power BI
Example of how to send SMS message with a VB.Net application In this presentation you can learn the method of sending SMS messages with a Vb.Net application.
Srinivas Balivada USC CSCE548 07/22/2016.  Cookies are generally set server-side using the ‘Set-Cookie’ HTTP header and sent to the client  In PHP to.
ONAP CLI (Command-Line Interface ) Architecture
Open-O CLI (Command-Line Interface ) Architecture
Introduction to gathering and analyzing data via APIs Gus Cavanaugh
Retrieving Web Pages (HTTP), Topic 3, Chapter 6
IST256 : Applications Programming for Information Systems
WEB API.
PHP + Oracle = Data-Driven Websites
API DOCUMENTATION Swetha Mohandas Microsoft Connect 2016
Integrate Drupal 8 with Alexa
PHP Forms and Databases.
Intro to Web Services Consuming the Web.
Presentation transcript:

ORDER PIZZA ROB – GONZEE.TV

HI

I’M ROB! (yet again)

USEFULNESS OF SOFTWARE

PIZZA POWER

/pizza >

WEB STANDARDS FTW! >

I H8 ATT >

:(

ORDER PIZZA (totally demoing theapp)

ORDER PIZZA  Resources  Onclick events  Intro to TwiML  CODE easy buddy

GET MACGUYVER ON IT  Onclick events -  Twilio PHP library  Yelp Python module -

HOW IT WORKS

SUPER SMASH!

YELP CODE results = yelp.ReviewSearchApi(client_key="e482aAygGs2SeCGxlwQg3w", output="json").by_location(zipcode, term="pizza", radius="1") rows = results["businesses"] container = mc.ListItems() for row in rows: newitem = mc.ListItem(mc.ListItem.MEDIA_UNKNOWN) newitem.SetLabel( str(row["name"]) ) newitem.SetThumbnail( str(row["rating_img_url"]) ) newitem.SetProperty("address1", str(row["address1"]) ) newitem.SetProperty("city", str(row["city"]) ) newitem.SetProperty("state", str(row["state"]) ) newitem.SetProperty("avg_rating", str(row["avg_rating"])) business_phone = "(" + str(row["phone"][0:3]) + ")" + str(row["phone"][3:6]) + "-" + str(row["phone"][6:10]) newitem.SetProperty("phone", business_phone) newitem.SetProperty("int_phone", str(row["phone"])) newitem.SetPath(str(row["name"])) if row["is_closed"] == True: newitem.SetProperty("closed", "No") else: newitem.SetProperty("closed", "Yes") container.append(newitem) list = mc.GetWindow(14000).GetList(111).SetItems(container)

EVENT n = mc.GetWindow(14000).GetList(111).GetFocusedItem() listitem = mc.GetWindow(14000).GetList(111).GetItem(n) pizza_number = listitem.GetProperty("int_phone") url = " values = {'called' : telephone, 'outgoing' : pizza_number} data = urllib.urlencode(values) req = urllib2.Request(url, data) response = urllib2.urlopen(req) mc.ShowDialogOk("Calling...", "We are calling this pizza place on your behalf. Expect a call shortly.")

SERVER-SIDE – TWILIO LIBRARY require "twilio.php"; /* Twilio REST API version */ $ApiVersion = " "; /* Set our AccountSid and AuthToken */ $AccountSid = “INSERTACCOUNTSID"; $AuthToken = “INSERTAUTHTOKEN"; /* Outgoing Caller ID you have previously validated with Twilio */ $number = ‘INSERTPHONENUMBER'; /* Outgoing Number you wish to call */ if (!isset($_REQUEST['outgoing'])) { $err = urlencode("Must specify outgoing phone number."); header("Location: index.php?msg=$err"); die; } /* Instantiate a new Twilio Rest Client */ $client = new TwilioRestClient($AccountSid, $AuthToken);

MAKING THE CALL /* make Twilio REST request to initiate outgoing call */ $response = $client- >request("/$ApiVersion/Accounts/$AccountSid/Calls", "POST", array( "Caller" => $number, "Called" => $_REQUEST['called'], "Url" => $url. 'callback.php?number='. $_REQUEST['outgoing'] ));

CONNECTING TO PIZZA <?php header("content-type: text/xml"); echo " \n"; ?> Connecting you to pizza - please hold.

DONE

QUESTIONS?

 Download  Checkout svn checkout hackathon.googlecode.com/svn/trunk/orderpizza/ twilio-boxee-hackathon-read-onlyhttp://twilio-boxee- hackathon.googlecode.com/svn/trunk/orderpizza/

KTHX