Достаточно просто. Подключаемся по SSL на их сервер и шлем HTTP запрос типа такого:
INDEMSYS
POST /accounts/ClientLogin HTTP/1.1 Connection: keep-alive Content-Type: application/x-www-form-urlencoded Accept: text/html, */* Accept-Encoding: identity User-Agent: ARMGeoSpyder3 Content-Length: 116 Host: www.google.com accountType=GOOGLE&Email=geospyder@indemsys.com&Passwd=geospyder3250&service=fusiontables&source=ARMGeoSpyder_GFT1.0Получаем в ответ одноразовые секретные токены
HTTP/1.1 200 OK Content-Type: text/plain Cache-control: no-cache, no-store Pragma: no-cache Expires: Mon, 01-Jan-1990 00:00:00 GMT Date: Fri, 13 May 2011 11:53:14 GMT X-Content-Type-Options: nosniff X-XSS-Protection: 1; mode=block Content-Length: 689 Server: GSE SID=DQAAAJsAAACXyL4AJJR2GH2iXNtZbsypUceN9qNNGsjVAJBmzw2PBWdycbehXwBsnttOqq51SQ3MzLGvx5OVQnDDJ6peyNp7sfbnPuVznKw136hWvxENsTpxcuAsW2_YiWaau5oRc15AB7bQIS0jpHnH3O-TKzEEj3nwBmhS71ug0CaaMAWGVjv_S41MaqOwmqQQNTlHhEcr8h8FyqFF6kEjnNSA5XBC LSID=DQAAAJ0AAACTgZ_iKE3yAcM1NPbnV8EhRvb-UFl5FsjPrOpVV78CNplkcWeB4tlWEFosyVQQ6dwhXZWrIgzfsBHpkK4ju55-D85twpMLqWPHpjGe-nfOuVUG9d4SoAtysAPgrsSUnm4JzxSL5A1ycEBNEgdRSMKw5UZs64DcYPA8R1pXUBdpVtYCU8eZW4Z7ipaeLcgZmQOan63g4u7rAXLXVIZ1sMlf Auth=DQAAAJ0AAAA0kFO_KO9SSO2Eg3mh49pXYCvdS32IDmKjMJ-lnZCmHCyl3-v8-xIOVLIwX0Omp4ImXH864SsQoTQ1HAIDrowoiccFpz2Uc6kY_x6-CweWvX-LKBia318XnKCG49jg9He1Y444xZuOv8nvpHcWPkq4iJFC-lgVBidtYr9Khk4A768JaUJClZT8-YOmEtUwKduDnmekp0SxmC-urtjBgEnyИ все! Дальше шлем данные в нужную таблицу:
POST /fusiontables/api/query HTTP/1.1 Connection: keep-alive Content-Type: application/x-www-form-urlencoded Accept: text/html, */* Accept-Encoding: identity User-Agent: ARMGeoSpyder2 Host: www.google.com Authorization: GoogleLogin auth=DQAAAJ0AAAA0kFO_KO9SSO2Eg3mh49pXYCvdS32IDmKjMJ-lnZCmHCyl3-v8-xIOVLIwX0Omp4ImXH864SsQoTQ1HAIDrowoiccFpz2Uc6kY_x6-CweWvX-LKBia318XnKCG49jg9He1Y444xZuOv8nvpHcWPkq4iJFC-lgVBidtYr9Khk4A768JaUJClZT8-YOmEtUwKduDnmekp0SxmC-urtjBgEny Content-Length: 839 sql=INSERT INTO 837884 ('DateTime','Object','Location','Event','Description') VALUES ('2001 05 14','Object1','Vilnius, Liepkalnio 61','Test1','Record for test purposes'); INSERT INTO 837884 ('DateTime','Object','Location','Event','Description') VALUES ('2001 05 14','Object2','Vilnius, Liepkalnio 61','Test2','Record for test purposes'); INSERT INTO 837884 ('DateTime','Object','Location','Event','Description') VALUES ('2001 05 14','Object3','Vilnius, Liepkalnio 61','Test3','Record for test purposes'); INSERT INTO 837884 ('DateTime','Object','Location','Event','Description') VALUES ('2001 05 14','Object4','Vilnius, Liepkalnio 61','Test4','Record for test purposes'); INSERT INTO 837884 ('DateTime','Object','Location','Event','Description') VALUES ('2001 05 14','Object5','Vilnius, Liepkalnio 61','Test5','Record for test purposes');До этого, конечно, нужно создать свой профиль на Google Fusion Tables и создать там свои таблицы.
-
- спасибо - Snaky(01.02.2012 14:02)