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

Hackability, part 2: The role of APIs in a hack...

Hackability, part 2: The role of APIs in a hackable world

API Strategy & Practice Conference 2014, Amsterdam

Adam Wiggins

March 28, 2014
Tweet

More Decks by Adam Wiggins

Other Decks in Technology

Transcript

  1. Hackability the role of APIs in a hackable world Adam

    Wiggins API Strategy & Practice March 2014 Donnerstag, 3. April 14
  2. the ability to modify behavior of the tools and devices

    we use — at any level of depth hack·a·bil·i·ty noun Donnerstag, 3. April 14
  3. How can I introspect & command the devices that fill

    my home? Donnerstag, 3. April 14
  4. This program is free software; you can redistribute it and/or

    modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, 5th Floor, Boston, MA 02110-1301, USA. Donnerstag, 3. April 14
  5. Device API hackability report card criteria ‣Standards-based (HTTP, REST...) ‣Developer

    site (developers.foo.com) ‣Documentation ‣Sample code ‣The curl test ‣Support / forums / community Donnerstag, 3. April 14
  6. Insteon D http://www.leftovercode.info/smartlinc.php Device API hackability report card HTTP+hex encoded

    responses Reverse engineered http://www.smarthome.com/forum/topic.asp?TOPIC_ID=13762 Donnerstag, 3. April 14
  7. Nest B- https://nest.com/developer/ Device API hackability report card HTTP/REST Private

    beta / registration https://github.com/gboudreau/nest-api Donnerstag, 3. April 14
  8. $ curl http://192.168.1.110:8060/query/apps <apps> <app id="12" version="3.1.6014">Netflix</app> <app id="13" version="4.10.13">Amazon

    Instant Video</app> <app id="2016" version="3.2.7">Crackle</app> <app id="2285" version="2.7.6">Hulu Plus</app> <app id="13842" version="1.3.2">VUDU</app> <app id="28" version="3.1.7">Pandora</app> </apps> Donnerstag, 3. April 14
  9. $ heroku create Creating young-fire-2556... done $ git push heroku

    master -----> Heroku receiving push -----> Python app detected -----> Discovering process types Procfile declares types -> web -----> Compiled slug size is 3.5MB -----> Launching... done, v2 http://baz.herokuapp.com deployed Donnerstag, 3. April 14
  10. APIs are a key piece of the puzzle for hackability

    of devices & cloud Donnerstag, 3. April 14