Upload
oleg-alistratov
View
123
Download
0
Embed Size (px)
Citation preview
4
• JSON-RPC• REST• XML-RPC• SOAP• WSDL, WSCL, WSFL• CORBA• Java RMI• Apache Thrift• AMF• Microsoft RPC
12
POST /get_status?n=2 HTTP/1.1Content-type:application/x-www-form-urlencoded;charset=utf-8Host: example.orgContent-length: 22
Action=GetStatus&Id=42
20
[ {"jsonrpc": "2.0", "method": "sum", "params": [1,2,4], "id": "1"}, {"jsonrpc": "2.0", "method": "notify_hello", "params": [7]}, {"jsonrpc": "2.0", "method": "subtract", "params": [42,23], "id": "2"}]
22
• Request• no-cache• no-store• max-age• max-stale• min-fresh• no-transform• only-if-cached
• Response• public• private• no-cache• no-store• no-transform• must-revalidate• proxy-revalidate• max-age• s-maxage
27
Пакет Цена Вызовов API / день Вызовов API / минуту
Разработчик $0 500 10
Стандарт $100 5000 100
Бизнес $200 100 000 1000