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

Hackability: the role of APIs in a hackable world

Hackability: the role of APIs in a hackable world

Adam Wiggins, API Strategy & Practice Amsterdam, 2014

More Decks by API Strategy & Practice Conference

Other Decks in Technology

Transcript

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

    Wiggins API Strategy & Practice March 2014 Mittwoch, 26. März 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 Mittwoch, 26. März 14
  3. 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. Mittwoch, 26. März 14
  4. Device API hackability report card criteria ‣Standards-based (HTTP, REST...) ‣Developer

    site (developers.foo.com) ‣Documentation ‣Sample code ‣The curl test ‣Support / forums / community Mittwoch, 26. März 14
  5. 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 Mittwoch, 26. März 14
  6. Nest B- https://nest.com/developer/ Device API hackability report card HTTP/REST Private

    beta / registration https://github.com/gboudreau/nest-api Mittwoch, 26. März 14
  7. $ 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> Mittwoch, 26. März 14
  8. $ 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 Mittwoch, 26. März 14
  9. APIs are a key piece of the puzzle for hackability

    of devices & cloud Mittwoch, 26. März 14