概述
API授權
登入API
日記API
相簿API
相片API
地標API
地標API(new)
登入
  • REST Method: POST
  • Request參數
    • func=login
    • email
    • password
  • 回傳資料(若成功)
    • status=SUCCESS
    • id
    • idrand
  • 回傳資料(若失敗)
    • status=FAILED
    • info
HTTP Protocol範例: POST /API.php HTTP/1.1 Accept: */* Content-Type: application/x-www-form-urlencoded User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; zh-TW; rv:1.8.1.14) Gecko/20080404 Firefox/2.0.0.14 Host: www.atlaspost.com Content-Length: 156 func=login&email=ginger@atlaspost.com&password=PW&key=77c34bb5f07dd3c4fb5d70030e4c4878&ts=1208853297&sig=af8d6ad939bbf6d44a69f702934e6e17&responseFormat=XML 回傳資料(若成功)範例: <?xml version="1.0" encoding="UTF-8"?> <response> <status>SUCCESS</status> <id>34633</id> <idrand>57d249bec6c4dfda8bc25057fa0d41fe</idrand> </response> 回傳資料(若失敗)範例: <?xml version="1.0" encoding="UTF-8"?> <response> <status>FAILED</status> <info>PASSWORD INCORRECT</info> </response>
對伺服器進行任何需要使用者已登入的Request(如:發表日記、上傳相片...等),皆須將ididrand以cookie-header方式與其它變數一同傳送至伺服器。

版權所有 © 2008 渥奇數位資訊 | 法律顧問: 益思科技法律事務所