More Related Content Similar to KTH_Detail day_화성에서 온 개발자 금성에서 온 기획자 시리즈_7차(1)_API_장동수_20120718 Similar to KTH_Detail day_화성에서 온 개발자 금성에서 온 기획자 시리즈_7차(1)_API_장동수_20120718 (20) More from KTH, 케이티하이텔 (20) KTH_Detail day_화성에서 온 개발자 금성에서 온 기획자 시리즈_7차(1)_API_장동수_201207184. 눈에 보이는 API (3)
그러나...
그것은...
API 문서일 뿐...
눈에 보이는 것이...
API의 전부는 아니랍니다...
OTL
4
5. API란?
Application Programming Interface
Application Program
a program that gives a computer instructions
that provide the user with tools
to accomplish a task
Interface: inter + face; 얼굴과 얼굴 사이?!
a surface forming a common boundary
between two things
5
11. 화성인 용어 사전 (1)
라이브러리(Library)
툴킷(Toolkit)
프레임웍(Framework)
11
12. 화성인 용어 사전 (2)
프로시져 호출(Procedure Call)
시스템 호출(System Call)
프로세스간 통신(IPC; Inter-process Communication)
로컬 프로시져 호출(LPC; Local Procedure Call)
원격 프로시져 호출(RPC; Remote Procedure Call)
12
13. 화성인 용어 사전 (3)
프로토콜(Protocol)
TCP/IP, Socket, HTTP
Open API, Cross-Domain
REST, JSON, JSONP
SOAP, XML
Authentication &
Authorization, OAuth
13
14. REST+JSON vs SOAP+XML
{
"results" : [
{
"address_components" : [
{
"long_name" : "1600",
"short_name" : "1600",
"types" : [ "street_number" ]
},
{
"long_name" : "Amphitheatre Pkwy",
"short_name" : "Amphitheatre Pkwy",
"types" : [ "route" ]
},
{
"long_name" : "Mountain View",
"short_name" : "Mountain View",
"types" : [ "locality", "political" ]
},
{ 14
15. REST+JSON vs SOAP+XML
<GeocodeResponse>
<status>OK</status>
<result>
<type>street_address</type>
<formatted_address>1600 Amphitheatre Pkwy, Mountain View, CA 9404
<address_component>
<long_name>1600</long_name>
<short_name>1600</short_name>
<type>street_number</type>
</address_component>
<address_component>
<long_name>Amphitheatre Pkwy</long_name>
<short_name>Amphitheatre Pkwy</short_name>
<type>route</type>
</address_component>
<address_component>
<long_name>Mountain View</long_name>
<short_name>Mountain View</short_name>
<type>locality</type>
<type>political</type> 15
16. 크로스 도메인
http://a.com http://b.com
one two three four
Same Origin Cross Domain
AJAX AJAX
http://a.com/one
웹 브라우져
16
17. 크로스 도메인
http://a.com http://b.com
one two three four
Cross Domain Same Origin
AJAX AJAX
http://b.com/three
웹 브라우져
17
18. OpenAPI 문서 보기(1)
이름(Name)
HTTP 주소(URL, URI, ...) + 메소
드(GET, POST, PUT, DELETE, ...)
요청(Request)
인자, 파라메터, Parameters,
Arguments, ...
응답(Response)
반환값, 리턴값, 결과값, Result,
Return, ...
18
20. 화성인에게 API란?
외부 시스템이 내부 시스템이
제공하는 기능을 사용하기 위
해 지켜야 하는 규약 & 문서
그리고, 실제로 요청을 받고
응답을 하는 시스템의 맨 바깥
계층 & 코드 덩어리
그리고, 계층을 통해 규약에
맞춰 요청을 보내고 응답을 받
기 위한 코드 덩어리
20
22. Putting It All Together...
아임IN
안드로이드앱
써드파티
아임IN 서버 앱/매시업
아임IN
아임IN Private 리뷰
iOS앱 OpenAPI
아임IN
OpenAPI 장소 찾기 아리맛
가입/로그인 발도장 찍기
발도장 공유
친구 찾기
페이스북 트위터 푸딩.투
OpenAPI OpenAPI OpenAPI
22