串api的一些小心得
TRANSCRIPT
串API的⼀一些⼩小⼼心得Hokila
13年5月5⽇日星期⽇日
13年5月5⽇日星期⽇日
api document
development /distribution site
13年5月5⽇日星期⽇日
api document
Who write this?• back-end engineer: manage SQL
server ....define API spec
• front-end engineer: grab everything we want....define API spec
• project manager:our BOSS...define API spec
13年5月5⽇日星期⽇日
After determine the person
•HTTP POST GET
•SSL
•Socket
13年5月5⽇日星期⽇日
HTTP POST GET
• NSURLconnection
• AFNNetworking
• ASIHTTPRequest
• SVHttprequest
• MKNetworkKit
• .......
13年5月5⽇日星期⽇日
SVHttprequest
13年5月5⽇日星期⽇日
SVHttprequest
13年5月5⽇日星期⽇日
Prefer const and inline to #defineEffective C++ #2
13年5月5⽇日星期⽇日
Charles
13年5月5⽇日星期⽇日
Charles
同業勿擾...
13年5月5⽇日星期⽇日
⽂文化部 iCulture
13年5月5⽇日星期⽇日
api document/ define spec
development /distribution site
verify APIs with testbed
13年5月5⽇日星期⽇日
POSTMAN: API testbedhttp://www.getpostman.com/collections/5ae4861b77ecb68e362c
13年5月5⽇日星期⽇日
after analyze 200 apps API I found
• standard way ,solid server : 90% up
• all SLL connection,5%
• strange connection.....
13年5月5⽇日星期⽇日
google docment API做法
13年5月5⽇日星期⽇日
google docment API做法
Youu can import through POSTMANhttp://www.getpostman.com/collections/f0d972fb26ef13c8dffe
sample sheet herehttps://docs.google.com/spreadsheet/ccc?key=0AqPOk7uowgCPdF9aeWFFbkdZeU5Mbnhabm1jM1huY0E#gid=0
把rss改成json
13年5月5⽇日星期⽇日
接下來只要parse就可以了
https://github.com/Hokila/GooSheetSamplesample here
13年5月5⽇日星期⽇日