Description :
ให้ข้อมูลจราจรพื้นฐาน ที่ทำการดึงมาจาก Twitter
จำนวน 100 ข่าวล่าสุด
URL:
http://api.traffy.in.th/apis/apitraffy.php?api=getIncidentRaw&appid=…&key=…&format=XML
API Status:
Online
Formats: (Click for sample output)
HTTP Method:
GET
Requires Authentication :
true
API rate limited :
ไม่จำกัด
Parameters :
Required *
*api = ประเภทของ api ที่ต้องการ (getPCL)
Example: http://api.traffy.in.th/apis/apitraffy.php?api=getIncidentRaw
*key = รหัสที่ได้รับจากการลงทะเบียน ( ลงทะเบียน )
Example: http://api.traffy.in.th/apis/apitraffy.php?api=getIncidentRaw&key=(คีย์ ที่ได้รับจากการลงทะเบียน)
*appid = id ที่ได้รับจากการลงทะเบียน ( ลงทะเบียน )
Example: http://api.traffy.in.th/apis/apitraffy.php?api=getIncidentRaw&key=(คีย์ที่ได้รับจากการลงทะเบียน)&appid=(id ที่ได้รับจากการลงทะเบียน)
format = รูปแบบของการแสดงผล (XML)
Example: http://api.traffy.in.th/apis/apitraffy.php?api=getIncidentRaw&key=(คีย์ที่ได้รับจากการลงทะเบียน)&appid=(id ที่ได้รับจากการลงทะเบียน)&format=XML
Response :
XML example:
อันนี้ต่างจาก getIncident ปกติอย่างไรครับ?
getIncidentRaw เป็น raw data ครับ ยังไม่ผ่านการ process ใดๆ ทั้งสิ้น
getIncident คือ getIncidentRaw ที่ผ่านการ Process เช่น Validation, Classification ครับ