CANT WE ALL JUST GET ALONG? Andrina Kelly - @andrina - Bell Media ! - - PowerPoint PPT Presentation

can t we all just get along
SMART_READER_LITE
LIVE PREVIEW

CANT WE ALL JUST GET ALONG? Andrina Kelly - @andrina - Bell Media ! - - PowerPoint PPT Presentation

CANT WE ALL JUST GET ALONG? Andrina Kelly - @andrina - Bell Media ! Diana Birsan - @DianaBirsan - Bell Media WHY ARE WE TALKING ABOUT THIS? WHAT ARE WE GOING TO COVER? Clear up some acronym mysteries ! Lots of Show & Tell !


slide-1
SLIDE 1

CAN’T WE ALL JUST GET ALONG?

Andrina Kelly - @andrina - Bell Media! Diana Birsan - @DianaBirsan - Bell Media

slide-2
SLIDE 2

WHY ARE WE TALKING ABOUT THIS?

slide-3
SLIDE 3
slide-4
SLIDE 4

WHAT ARE WE GOING TO COVER?

  • Clear up some acronym mysteries!
  • Lots of Show & Tell!
  • Fun!
slide-5
SLIDE 5

Let’s Solve a Problem

slide-6
SLIDE 6
slide-7
SLIDE 7

LOOK AT THE SHINY THING!

slide-8
SLIDE 8
slide-9
SLIDE 9
slide-10
SLIDE 10
slide-11
SLIDE 11
slide-12
SLIDE 12

TWEETYPY

slide-13
SLIDE 13
slide-14
SLIDE 14

DEMO

slide-15
SLIDE 15

WHAT IS AN API?

slide-16
SLIDE 16

Analogy Time!

slide-17
SLIDE 17
  • Application Program Interfaces!
  • Instructions and Communication!
  • Predefined functions!
  • Structured remote calls or request

messages

slide-18
SLIDE 18
slide-19
SLIDE 19
slide-20
SLIDE 20

SYSTEM APIS

slide-21
SLIDE 21
slide-22
SLIDE 22

Game APIS

  • Compatibility between

configurations!

  • DirectX, OpenGL and

Mantle!

  • Interfacing by making

draw calls

slide-23
SLIDE 23

WEB APIS

http://www.programmableweb.com

slide-24
SLIDE 24
slide-25
SLIDE 25

DEMO

slide-26
SLIDE 26

WHAT IS AN SDK?

  • Software Development Kit!
  • Package of pre-written code that developers can

re-use in order to minimize the amount of unique code that they need to develop themselves

slide-27
SLIDE 27
slide-28
SLIDE 28

WHAT IS SOAP?

slide-29
SLIDE 29

WHAT IS SOAP?

  • Simple Object Access Protocol!
  • Basic Messaging Framework!
  • Communication Protocol over HTTP!
  • Developed by Microsoft!
  • XML-based only
slide-30
SLIDE 30

“XML IS WRONG, JSON IS THE WAY FORWARD!”

slide-31
SLIDE 31

WHAT’S JSON…

slide-32
SLIDE 32
slide-33
SLIDE 33

JavaScript Object Notation

slide-34
SLIDE 34

<speakers> <speaker> <firstName>Tycho</firstName> <lastName>Sjögren</lastName> </speaker> <speaker> <firstName>Arek</firstName> <lastName>Dreyer</lastName> </speaker> <speaker> <firstName>Marko</firstName> <lastName>Jung</lastName> </speaker> </speakers>

XML

slide-35
SLIDE 35

{“speakers”: {"speaker":[ {“firstName":"Tycho","lastName":"Sjögren"}, {"firstName":"Arek","lastName":"Dreyer"}, {"firstName":"Marko","lastName":"Jung"} ]} }

JSON

slide-36
SLIDE 36

CONVERTING XML TO JSON

  • https://github.com/parmentf/xml2json!
  • Not native, requires npm to install!
  • Ruby is your friend
slide-37
SLIDE 37

XML JSON

#!/usr/bin/ruby!

!

require 'rubygems'! require 'active_support/core_ext'! require ‘json'!

!

xml = File.open(ARGV.first).read! json = Hash.from_xml(xml).to_json!

!

File.open(ARGV.last, 'w+').write json

slide-38
SLIDE 38

WHAT IS REST?

slide-39
SLIDE 39
  • Representational State Transfer!
  • Architectural Style behind WWW!
  • Unique URI represents an object!
  • RESTful web services
slide-40
SLIDE 40

CONSTRAINTS

  • Code-on-Demand!
  • Uniform Interface!
  • Stateless!
  • Cacheable!
  • Client-Server!
  • Layered System
slide-41
SLIDE 41

https://jss.jamfsw.com/jss/api/

slide-42
SLIDE 42
slide-43
SLIDE 43

DEMO

slide-44
SLIDE 44

WHAT IS THE DIFFERENCE BETWEEN SOAP & REST?

slide-45
SLIDE 45

JSS EXTENSION ATTRIBUTE DEMO

slide-46
SLIDE 46
slide-47
SLIDE 47
slide-48
SLIDE 48
slide-49
SLIDE 49
slide-50
SLIDE 50

DEMO

slide-51
SLIDE 51

DEMO - XCODE - TWITTER

slide-52
SLIDE 52