Web APIs & Google APIs

Loading...

Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

0 comments

Post a comment

    Post a comment
    Embed Video
    Edit your comment Cancel

    Favorites, Groups & Events

    Web APIs & Google APIs - Presentation Transcript

    1. Web APIs & Google
      • Pamela Fox 
      • USC/Google
    2. define: API ... Web API
      • A pplication
      • P rogramming
      • I nterface
    3. API types
      • HTTP
      Plugin Visual REST | RPC
    4. API types: HTTP :: RPC fooInstance->addNumbers(2, 3); <?xml version=&quot;1.0&quot;?> <methodCall> <methodName>Foo.addNumbers</methodName> <params> <param><value><int>2</int></value></param> <param><value><int>3</int></value></param> </params> </methodCall> fooInstance.addNumbers(2, 3); PHP XML (Network) C++
    5. API types: HTTP :: RPC http://api.flickr.com/services/rest/?method=flickr.photos.search&text=pamela+fox <rsp stat=&quot;ok&quot;> <photos page=&quot;1&quot; pages=&quot;2&quot; perpage=&quot;100&quot; total=&quot;159&quot;> <photo id=&quot;3461223826&quot; owner=&quot;37370984@N07&quot; secret=&quot;6d0bbbbfa3&quot; server=&quot;3512&quot; farm=&quot;4&quot; title=&quot;Pamela Fox - mapping, red dot fever&quot; ispublic=&quot;1&quot; isfriend=&quot;0&quot; isfamily=&quot;0&quot; /> <photo id=&quot;3461224220&quot; owner=&quot;37370984@N07&quot; secret=&quot;7365fecf34&quot; server=&quot;3605&quot; farm=&quot;4&quot; title=&quot;Pam pam pam&quot; ispublic=&quot;1&quot; isfriend=&quot;0&quot; isfamily=&quot;0&quot; /> <photo id=&quot;3459126604&quot; owner=&quot;44124396772@N01&quot; secret=&quot;c54c15ee4b&quot; server=&quot;3608&quot; farm=&quot;4&quot; title=&quot;pamela&quot; ispublic=&quot;1&quot; isfriend=&quot;0&quot; isfamily=&quot;0&quot; /> </photos> </rsp>
    6. API types: HTTP :: SOAP <?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot; ?> <s:Envelope xmlns:s=&quot;http://www.w3.org/2003/05/soap-envelope&quot; xmlns:xsi=&quot;http://www.w3.org/1999/XMLSchema-instance&quot; xmlns:xsd=&quot;http://www.w3.org/1999/XMLSchema&quot; > <s:Body> <x:FlickrResponse xmlns:x=&quot;urn:flickr&quot;> [escaped-xml-payload] </x:FlickrResponse> </s:Body> </s:Envelope> http://www.flickr.com/services/rest/?method=flickr.test.echo&format=soap&foo=bar
    7. API types: HTTP :: REST Application state and functionality is abstracted into discrete resources. Resources are accessible via URLs. /blog/posts/1234 Resources share a uniform interface for transferring state. HTTP:// GET POST PUT DELETE
    8. API types: HTTP :: REST Feed Entries GET POST PUT DELETE
    9. API types: HTTP :: REST <?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot; ?> <catalog_title>      <id>   http://api.netflix.com/catalog/titles/series/70023522/seasons/70023522      </id>      <title short=&quot;The Office: Season  1&quot; regular=&quot;The Office: Season 1&quot;/>      <release_year>2005</release_year>      <runtime>8700</runtime>      ... </catalog_title> http://api.netflix.com/catalog/titles/series/70023522/seasons/70023522  
    10. API types: Visual
    11. API types: Visual
      •    <script type=&quot;text/javascript&quot; src=&quot;http://videocallroom.oovoo.com/oovoorooms.js&quot;>
      •    </script>
      •    <script type='text/javascript'>
      •      roomProps.roomID = '60D56CE75A321CE3E01230144F7E8E22';  
      •      roomProps.width = '795';  
      •      roomProps.height = '640' 
      •      roomProps.backgroundColor = '#666666';
      •      roomProps.captionText = 'Best room ever';
      •      roomProps.captionColor = '#FFFFFF';
      •      var myRoom = CreateRoom();
      •    </script>
    12. API types: Plugins
    13. API types: Plugins
      •      <widget:preferences>
      •        <preference name=&quot;hellowho&quot; type=&quot;text&quot; label=&quot;Hello who ?&quot; 
      •          defaultValue=&quot;World&quot; />
      •      </widget:preferences>
      •      <title>Title of the Widget</title>
      •  
      •      <script type=&quot;text/javascript&quot;>
      •        widget.onLoad = function() {
      •          var who = widget.getValue('hellowho');
      •          widget.setBody('<p>Hello ' + who + '!</p>');
      •        }
      •      </script>
    14. Google APIs
      • HTTP
      Plugin Visual REST | RPC Google data APIs Adwords API Geocoding API Google Maps API Google Visualization API Google Charts API Google Web Elements OpenSocial Gadgets Spreadsheets Gadgets Wave Gadgets/Robots
    15. Google APIs: Sydney
    16. Google APIs: Google Maps APIs Mapplets JS Maps APIs Maps API for Flash Static Maps APIs Maps Data API
    17. Google APIs: Google Maps APIs
      • <html>
      • <head>
      • <script src=&quot;http://maps.google.com/maps?file=api&v=2&key=abcdefg&quot;>
      • <script>
      • function createMap() {
      •   var map = new GMap2(document.getElementById(&quot;map&quot;));
      •   map.setCenter(new GLatLng(37, -122));
      •   map.openInfoWindow(&quot;hellooo&quot;);
      • }
      • </script>
      • <body onload=&quot;createMap()&quot;>
      •   <div id=&quot;map&quot; style=&quot;width:500px;height:300px&quot;></div>
      • </body> </html>
    18. Google APIs: Google Maps APIs TrendsMap
    19. Google APIs: Google Wave APIs
    20. Google APIs: Google Wave APIs
      • public class MaileyBotServlet extends AbstractRobotServlet {
      •    public void processEvents(RobotMessageBundle bundle) {
      •      Wavelet wavelet = bundle.getWavelet();         
      •      sendEmail(wavelet.getTitle());
      •    }
      •   
      •    public void sendEmail(String title) {
      •      Message msg = new MimeMessage(session);
      •      msg.addRecipient(Message.RecipientType.TO,
      •                     new InternetAddress(&quot;pamela.fox@gmail.com&quot;));
      •      msg.setSubject(&quot;the wave &quot; + title + &quot; was updated&quot;);
      •      Transport.send(msg);
      •    }
      • }
    21. Google APIs: Google Wave APIs Emoticony Cards
    22. Google APIs: Google Data APIs
    23. Google APIs: Google Sites API
      • POST /feeds/content/site/siteName
      • <entry xmlns=&quot;http://www.w3.org/2005/Atom&quot;>
      •    <category scheme=&quot;http://schemas.google.com/g/2005#kind&quot;
      •        term=&quot;http://schemas.google.com/sites/2008#webpage&quot; label=&quot;webpage&quot;/>
      •    <title>New Webpage Title</title>
      •    <content type=&quot;xhtml&quot;>
      •      <div xmlns=&quot;http://www.w3.org/1999/xhtml&quot;>HTML body goes here</div>
      •    </content>
      • </entry>
    24. Google APIs: Google Sites API Docs Editor
    25. Developer Tools: Sydney
    26. APIs aren't all fun and games... (But really they are)

    + wuzziwugwuzziwug, 1 month ago

    custom

    133 views, 0 favs, 0 embeds more stats

    An overview of Web APIs generally, then Google's of more

    More info about this document

    © All Rights Reserved

    Go to text version

    • Total Views 133
      • 133 on SlideShare
      • 0 from embeds
    • Comments 0
    • Favorites 0
    • Downloads 3
    Most viewed embeds

    more

    All embeds

    less

    Flagged as inappropriate Flag as inappropriate
    Flag as inappropriate

    Select your reason for flagging this presentation as inappropriate. If needed, use the feedback form to let us know more details.

    Cancel
    File a copyright complaint
    Having problems? Go to our helpdesk?

    Categories