Web Apis & Google Apis

  • Uploaded by: wuzziwug
  • 0
  • 0
  • June 2020
  • PDF

This document was uploaded by user and they confirmed that they have the permission to share it. If you are author or own the copyright of this book, please report to us by using this DMCA report form. Report DMCA


Overview

Download & View Web Apis & Google Apis as PDF for free.

More details

  • Words: 473
  • Pages: 27
Web APIs & Google

Pamela Fox USC/Google

define: API ... Web API Application Programming Interface

API types

HTTP

Visual

REST | RPC

Plugin

API types: HTTP :: RPC fooInstance->addNumbers(2, 3); <methodCall> <methodName>Foo.addNumbers <params> <param>2 <param>3

fooInstance.addNumbers(2, 3);

PHP XML (Network)

C++

API types: HTTP :: RPC http://api.flickr.com/services/rest/?method=flickr.photos.search&text=pamela+fox



API types: HTTP :: SOAP http://www.flickr.com/services/rest/?method=flickr.test.echo&format=soap&foo=bar

<s:Envelope xmlns:s="http://www.w3.org/2003/05/soapenvelope" xmlns:xsi="http://www.w3.org/1999/XMLSchemainstance" xmlns:xsd="http://www.w3.org/1999/XMLSchema" > <s:Body> <x:FlickrResponse xmlns:x="urn:flickr"> [escaped-xml-payload]

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

API types: HTTP :: REST GET

POST Feed

PUT

DELETE Entries

API types: HTTP :: REST http://api.netflix.com/catalog/titles/series/70 023522/seasons/70023522

http://api.netflix.com/catalog/titles/series/7002352 2/seasons/70023522 <release_year>2005</release_year> <runtime>8700</runtime> ... </catalog_title><br /> <br /> API types: Visual<br /> <br /> API types: Visual <script type="text/javascript" src="http://videocallroom.oovoo.com/oovoorooms.js"> </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><br /> <br /> API types: Plugins<br /> <br /> API types: Plugins <widget:preferences> <preference name="hellowho" type="text" label="Hello who ?" defaultValue="World" /> </widget:preferences> <title>Title of the Widget <script type="text/javascript"> widget.onLoad = function() { var who = widget.getValue('hellowho'); widget.setBody('

Hello ' + who + '!

'); }

Google APIs

HTTP

Visual

REST | RPC Google data APIs Adwords API Geocoding API

Google Maps API Google Visualization API Google Charts API Google Web Elements

Plugin OpenSocial Gadgets Spreadsheets Gadgets Wave Gadgets/Robots

Google APIs: Sydney

Google APIs: Google Maps APIs Maps Data API

JS Maps APIs Maps API for Flash

Static Maps APIs Mapplets

Google APIs: Google Maps APIs <script src="http://maps.google.com/maps? file=api&v=2&key=abcdefg"> <script> function createMap() { var map = new GMap2(document.getElementById("map")); map.setCenter(new GLatLng(37, -122)); map.openInfoWindow("hellooo"); }


Google APIs: Google Maps APIs

TrendsMap

Google APIs: Google Wave APIs

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("[email protected]")); msg.setSubject("the wave " + title + " was updated"); Transport.send(msg); } }

Google APIs: Google Wave APIs Emoticony Cards

Google APIs: Google Data APIs

Google APIs: Google Sites API POST /feeds/content/site/siteName <entry xmlns="http://www.w3.org/2005/Atom"> New Webpage Title
HTML body goes here


Google APIs: Google Sites API

Docs Editor

Developer Tools: Sydney

APIs aren't all fun and games... (But really they are)

Related Documents

Web Apis & Google Apis
June 2020 11
Apis Bluetooth
May 2020 5
Cl Command Apis
November 2019 8
Public Domain Apis
November 2019 12
3 Livefx Cloud Apis
November 2019 15
Speech Apis Fact Sheet
April 2020 8

More Documents from ""