Poli 2.0 - APIs

2,780 views

Published on

Published in: Technology, Design
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
2,780
On SlideShare
0
From Embeds
0
Number of Embeds
94
Actions
Shares
0
Downloads
3
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide
  • Poli 2.0 - APIs

    1. 2. API s
    2. 3. “ An  application programming interface  ( API ) is a set of functions, procedures, methods or classes that an operating system, library or  service  provides to support requests made by computer programs. [1] ” “   Web services are frequently just  Web APIs  that can be accessed over a network, such as the Internet , and executed on a remote system hosting the requested services. ”
    3. 4. Resources — Commands are defined in simple terms: resources to be retrieved, stored / get, set Nouns — Exchanging resources and concepts Commands — Commands are defined in methods with varying complexity: depending on “standard” Verbs — Exchanging methods RPC vs. REST
    4. 5. RPC vs. REST http://example.com/users/ http://example.com/users/{user} http://example.com/findUserForm http://example.com/locations/ http://example.com/locations/{location} http://example.com/findLocationForm ... getUser() addUser() removeUser() updateUser() getLocation() addLocation() removeLocation() updateLocation() listUsers() listLocations() findLocation() findUser() ...
    5. 6. Most web services use RESTful APIs! ... or at least “ accidently RESTful ”
    6. 7. RSS Atom PHP ... JSON jsonFlickrApi({ &quot;stat&quot;: &quot;ok&quot;, &quot;blogs&quot;: { &quot;blog&quot;: [ { &quot;id&quot; : &quot;73&quot;, &quot;name&quot; : &quot;Bloxus test&quot;, &quot;needspassword&quot; : &quot;0&quot;, &quot;url&quot; : &quot;http://remote.bloxus.com/&quot; }, ] } }) XML <blogs> <blog id=&quot;73&quot; name=&quot;Bloxus test&quot; needspassword=&quot;0&quot; url=&quot;http://remote.bloxus.com/&quot; /> </blogs>
    7. 8. Mashup!
    8. 9. http://api.uberVU.com <ul><li>ubervu.test.echo </li></ul><ul><li>ubervu.conversations.track </li></ul><ul><li>ubervu.conversations.getList </li></ul><ul><li>ubervu.conversations.getReactions </li></ul>
    9. 10. Case Study http://code.uberVU.com/ureact WordPress Plugin
    10. 11. Exercise! Widget

    ×