Web API Mashups in a Python Application
summary
Shows a working App Engine-style Python web app that uses httplib2 and google-api-python-client to perform OAuth2 (code -> access token + refresh token), decorate handlers to get authorized HTTP, and call Google Drive and URL Shortener APIs with combined scopes. Demo shortens a URL, grabs the page title with BeautifulSoup, posts an activity to the social API, and redirects to the created item. Advises not to embed client secrets in distributed source and to spawn a localhost redirect for native clients.
AI-written summary · about
chapters (6)
- 0:00Web API mashups intro
- 5:59OAuth2 authorization flow
- 13:56Google API Python client
- 20:45Live demo: Google mashup
- 22:36API integration summary
- 23:46Q&A: library and secrets
related talks
01h 16mExploring Google APIs with Python & JavaScript
28mHarnessing the APIs you didn't know existed
47mDeveloping for the Google Apps Marketplace
40mGoing API First on the Google Cloud with Connexion
29mDemystifying Oauth2 Authorization framework
58mDjangoCon 2008 Keynote: Guido van Rossum
45mTurn Your Google Spreadsheets into a Web API
31m"How we used Python to try and save lives"
