Loading presentation...

Present Remotely

Send the link below via email or IM

Copy

Present to your audience

Start remote presentation

  • Invited audience members will follow you as you navigate and present
  • People invited to a presentation do not need a Prezi account
  • This link expires 10 minutes after you close the presentation
  • A maximum of 30 users can follow your presentation
  • Learn more about this feature in our knowledge base article

Do you really want to delete this prezi?

Neither you, nor the coeditors you shared it with will be able to recover it again.

DeleteCancel

Make your likes visible on Facebook?

Connect your Facebook account to Prezi and let your likes appear on your timeline.
You can change this under Settings & Account at any time.

No, thanks

Python Magic and Remote APIs

LFNW 2013
by

Jesse Keating

on 27 April 2013

Comments (0)

Please log in to add your comment.

Report abuse

Transcript of Python Magic and Remote APIs

Unlock the power of applications and your data. What is an API? PYTHON! Access remote APIs of your applications How do we use APIs? Access URLs via
GET
POST
PUT
DELETE Using python allows you to make magic with remote RESTful API providing Applications Application Programming Interface Set of programming instructions and standards for accessing a software application or tool. Python Magic and Remote APIs LFNW 2013 -- Jesse Keating Web uses RESTful APIs REpresentational State Transfer Principals:
Identification of resources
Manipulation of resources via representations
self-descriptive messages
Hypermedia as the engine of application state Constraints
client-server separation
stateless
cacheable
layered system
uniform interface GET for accessing data POST for sending data PUT & DELETE less used $ curl http://www.strava.com/api/v1/rides?athleteId=279921 $ curl http://www.strava.com/api/v1/rides/48072778 {"rides":[{"id":48072778,"name":"Coffee shop"},{"id":47939239,"name":"Post-cross fit token spin"},{"id":47696191,"name":"Rollers Interval"},{"id":47506091,"name":"Roller Interval Training"}...} {"ride":{"id":48072778,"startDate":"2013-04-09T16:13:36Z","startDateLocal":"2013-04-09T09:13:36Z","timeZoneOffset":-28800,"elapsedTime":6611,"movingTime":508,"distance":2091.84,"averageSpeed":4.117795275590551,...} What has... Easy tools to work with URLs Easy tools to process json Easy framework to create objects around resources Magical methods Work with URLs using requests Create objects around requests Sprinkle some magic in!
Full transcript