Presentation is loading. Please wait.

Presentation is loading. Please wait.

IST256 : Applications Programming for Information Systems

Similar presentations


Presentation on theme: "IST256 : Applications Programming for Information Systems"— Presentation transcript:

1 IST256 : Applications Programming for Information Systems
The HTTP Protocol and Web Services

2 Agenda Connection Activity Teaching: Practice Activities (3)
Attendance Teaching: HTTP Web Services Practice Activities (3) Thursday

3 9901 Connect Activity https://goo.gl/TJOuaW
Sign in with your NetID and Password Enter Today’s PIN 9901

4 HTTP The Protocol of The Web
When you type a URL into your browser you’re making a request. The site processing your request sends a response. Part of the response is the status code. This indicates “what happened” The other part of the response is content (HTML) which is rendered by the browser. HTTP is a text based protocol.

5 Watch Me Code A Non-Python Demo of HTTP
What happens when you request a site? Like syr.edu? Short and sweet demo

6 What is a Web API? An API is short for Application Programming Interface. A Web API uses HTTP Protocol to communicate with your program. Web API’s can return data in many formats. We’ll focus on the JSON (JavaScript Object Notation) format which converts easily to Python lists and dictionaries.

7 Watch Me Code Google’s Geocoding API
Get a GPS coordinate (Latitude and Longitude) for a City or Street Address HTTP GET: Short and sweet demo

8 Web API: Weather Forecasting
Darksky.net / Forecast IO Sign up for an API key 1000 free requests / day

9 Watch Me Code Let’s Continue Our Geocode Example:
Get Current weather for Lat/Lng Refactor as a function Write a program to ask for a location, show current conditions for location! Short and sweet demo

10 Other Web API’s https://itunes.apple.com/search?term - iTunes Search
- Star Wars API - Movie Database API - Pokemon API - Space API on.php - Earthquake API

11 Help me Code Let’s write a program to ask you for a sub-Reddit and then print the titles of the top stories in that sub-Reddit Example API Call: (news) sub-Reddit First we get it to work with this url Then let’s write the full program

12 Your “Ticket Out” Conclusion Activity http://bit.ly/2eBCPM7
The activity will be effort graded.


Download ppt "IST256 : Applications Programming for Information Systems"

Similar presentations


Ads by Google