Your Government is about to be MASHED UP!Mash it Up Camp OKC ★ May 7, 2011
WYNNNETHERLAND
whoami
@pengwynn
+
Info20%
Inspiration20%
Tools30%
Stats1%
Philosophy28%
This talk is...
I write API wrappers
I write API wrappersA lot of API wrappers
Why?
Idiomatic access
in your language of choice
"chartItem": [{ "songName": "Lonely Runs Both Ways", "artistName": "Alison Krauss + Union Station", "peek": 1, "catalogNo": "610525", "rank": 1, "exrank": 1, "weeksOn": 65, "albumId": 655684, ...
"chartItem": [{ "songName": "Lonely Runs Both Ways", "artistName": "Alison Krauss + Union Station", "peek": 1, "catalogNo": "610525", "rank": 1, "exrank": 1, "weeksOn": 65, "albumId": 655684, ...
"chart_item": [{ "song_name": "Lonely Runs Both Ways", "artist_name": "Alison Krauss + Union Station", "peek": 1, "catalog_no": "610525", "rank": 1, "exrank": 1, "weeks_on": 65, "album_id": 655684, ...
Higher level API
Syntactic sugar
Twitter::Search.new.from('jnunemaker').to('pengwynn').hashed('ruby').fetch()
Twitter::Search.new.from('jnunemaker').to('pengwynn').hashed('ruby').fetch()
Method chaining
Some T words , fool!
TRANSPORT
Sync vs. Async
TRANSFORMATION
JSON, XML parsersWhy is SOAP so dirty?
TESTING
Fixtures, mocks, and playback
TOOLS
REST Console for Chrome
See my complete Ruby API wrapper deck
My rep @michaelcburgess is on Twitter. Is yours?
The idea: A Twitter directory for the US Congressand aggregator
^
“We the Tweeple of the United States, in order to form a more perfect government, establish communication, and promote transparency do hereby tweet the Congress of the United States of America.”
Small ideas can have a big impact
Mash up your passions, have fun
Congress API
Real Time Congress API
Govkit
Campaigns, Congress, News
More!
Commercial APIsMashes nicely with some of these
Resources
wynn.fm/mashcamp
blog: wynnnetherland.comtwitter: @pengwynnemail: [email protected]
linkedin.com/in/netherland
and thanks for having me!
grab the slides!