10. Do we need another API? :-) Academic Programs International American Petroleum Institute Australian Property Institute Australian Pharmaceuticals Industries American Press Institute Aerospace Products International Animal Protection Institute Asia Paranormal Investigators Attachment Parenting International American Poster Institute
11. API crash-course API, or Application Programming Interface, is a set of functions that one computer program makes available to other programs so they can talk to it directly.
12. Programs talk to each other all the time ( programmers not so much;-)
14. Program: "I need to draw a line" Windows: "To draw a line, use Function 1” COMMAND: "...if a program asks for Function 1, execute Activity 1”
16. Program: I need to input & edit text OS: “To delete, use Function 1, to start a new line use Function 2” COMMAND: “If program requests Function 1, execute Activity 1; if program requests Function 2, execute Activity 2”
28. Content “ Free for all” area that contains just the words (or numbers) The words could be about: * A story * Instruction * Definitions * Or what have you
31. II. Structure This is the document type and the organization of its elements. For example: * Memo * Contract * Newspaper article * Glossary * Index
36. III. Presentation This is where the information presented to the client is organized and formatted Presentation would control elements such as font types and sizes, etc
53. Cooking Rhubarb Cobbler Evgeny Morozov May,09 2008 Rhubarb Cobbler made with bananas as the main sweetener. It was delicious. Basically it was 2 1/2 cups diced rhubarb 2 tablespoons sugar 2 fairly ripe bananas 1/4 teaspoon cinnamon dash of nutmeg Combine all and use as cobbler, pie, or crisp. Related recipes: Garden Quiche
55. HTML <h1>Cooking Rhubarb Cobbler</h1> <h2>Evgeny Morozov</h2> <h3>May,09 2008</h3> Rhubarb Cobbler made with bananas as the main sweetener. It was delicious. Basically it was <table> <tr><td> 2 1/2 cups <td> diced rhubarb <tr><td> 2 tablespoons <td> sugar <tr><td> 2 <td> fairly ripe bananas <tr><td> 1/4 teaspoon <td> cinnamon <tr><td> dash of <td> nutmeg </table> Combine all and use as cobbler, pie, or crisp. Related recipes: <a href="#GardenQuiche">Garden Quiche</a>
56. XML <recipe id="117" category="dessert"> <title>Rhubarb Cobbler</title> <author>Evgeny Morozov></author> <date>May 09, 2008</date> <description> Rhubarb Cobbler made with bananas as the main sweetener. It was delicious. </description> <ingredients> <item><amount>2 1/2 cups</amount><type>diced rhubarb</type></item> <item><amount>2 tablespoons</amount><type>sugar</type></item> <item><amount>2</amount><type>fairly ripe bananas</type></item> <item><amount>1/4 teaspoon</amount><type>cinnamon</type></item> <item><amount>dash of</amount><type>nutmeg</type></item> </ingredients> <preparation> Combine all and use as cobbler, pie, or crisp. </preparation> <related url="#GardenQuiche">Garden Quiche</related> </recipe>
57. Building an API Super-cool cooking site: “How do I display how many spoons of sugar to use to cook Rhubarb Cobbler?” XML site: “Query for <amount> of the <type> “sugar” HTML site: I beg your pardon? (eventually crashes ;-)
59. YouTube's API Your blog : "I need to display all videos from your site tagged as "FUNNY" YouTube : "Please access videos at youtube.com/tag/word, where "word" should be replaced with "FUNNY" COMMAND: "...to display video tagged with a particular tag, the query should be of the form youtube.com/word/tag/"
60. AMAZON's API: Online retailer: "I need to display price for all Amazon items I am selling” Amazon: "Please ask for parameter PRICE to get price information" COMMAND: "...if a third-party site asks for PRICE, display PRICE value" Online retailer: "I need to display price for all Amazon items I am selling” Amazon: "Please ask for parameter PRICE to get price information" COMMAND: "...if a third-party site asks for PRICE, display PRICE value"
61. XML allows to EASILY move data between different platforms XML allows to EASILY move data between different platforms
62. How do you play the guitar part on the piano? Academic: “just look at the sheets, stupid” “ Intuitive”: “this keyboard looks...ummm...weird..”
106. #Most mash-ups are developed by third-parties #Just let them know how to use your functions (=provide an API) or give out as much raw data as possible (=provide XML feeds)
107. Good APIs GOOGLE MAPS : 1412 mash-ups FLICKR : 336 mash-ups YOUTUBE : 239 mash-ups Source: Programmable Web, May 2008