Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Python and APIs

Python and APIs

Slide deck from a talk given by @jwpe, @cameronmaske, @fheisler at Intoxicoders DC on March 27, 2013.

intoxicoders

March 27, 2013
Tweet

Other Decks in Education

Transcript

  1. Ingredients • Overview of APIs • Getting started with Python

    • HTTP and requests • Ask and you shall receive • Meet JSON • Show me the beer!
  2. Overview of APIs • What is an API? • Why

    are they useful? • Get some REST • Do your homework
  3. HTTP and Requests • GET some ◦ List - /beers/

    ◦ Single - /beer/1/ • Parameters • Learn to share (POST) • Status codes ◦ 200 OK ◦ 403 Forbidden ◦ 404 Not Found ◦ 5xx server errors ◦ 3xx redirect
  4. Ask and you shall receive • Making Requests in Python

    • Passing parameters ◦ {Key: value} pairs
  5. Show me the beer! • How can we use the

    API to search for a beer? ◦ Raw input ◦ Queries ◦ Printing a result