iPhone-Python Love Affair
iPhone-Python Love Affair
ACCOMPLICE #1
Anna Callahan: iOS developer, jazz trumpet player @jazztpt
Friday, June 24, 2011
ACCOMPLICE #2
Nate Aune: Django/Python/Plone developer, saxophonist @natea
Friday, June 24, 2011
VALENTUN.ES!
http://www.youtube.com/watch?v=0C02wev40K0
MOBILE TAKEOVER
REST appropriate for everything? I want a single API for all clients?
Dont
WHAT IS REST?
Authentication Have
mobile-specic error codes & messages arrays of related or unrelated data pre-calculated data or data that doesnt exist on device
Accept Return
HIERARCHIES OF DATA
Bad :(
Good!
Cards
Tracks
CARD CLASS
TRACK CLASS
URLS.PY
CREATE A CARD
Authentication - let the user in the door Authorization - what the user can see
Friday, June 24, 2011
LIMITING BY USER
ERROR CODES
Ideally your API should:
Never return HTML Tailor response codes to actions on device Return messages designed for the end user Dont forget the App Store Never, ever return HTML
Friday, June 24, 2011
Objective-C in Xcode
Friday, June 24, 2011
http://www.youtube.com/watch?v=maZxd8K7Tjc
other users are stored on device or other calculated user data must come from the server
Leaderboards
TWITTER LEADERBOARD
Compete
Leaderboard Best
[array of users containing username and [array of days containing num tweets, mentions, etc] ]
LEADERBOARD JSON
data sets -- only expose what client needs third-party clients client to set depth level a few special expected api calls
Multiple
Allow
Create
THANK YOU!
Music
Hack Day Accomplices: Matt Katz, Alexandre Passant, Jeff Novich, Twom Deryckere (Daniel Lindsley) - TastyPie
Danielzilla IsaacKelly
DjangoCon
VALENTUNES
Music
Hack Day: http://nyc.musichackday.org/ (Django code) https://github.com/natea/valentunes (iPhone code) https://github.com/jazztpt/Valentunes_iPhone (Twilio integration) https://github.com/terraces/valentunes-twilio
Valentunes
Valentunes
Valentunes
django-piston
Django
QUESTIONS?
Blog
post with more detail on mobile api design: http://www.annacallahan.com/blog/2011/06/24/mobile-apidesign/ Callahan: annacallahan.com @jazztpt djangozoom.com @natea
Anna
Nate Aune: