視頻指南
第1步:生成AToken
方法:POST
網址:https://v9.footfallcam.com/account/GenerateAccessToken
主體(有效負載):
{
“電子郵件”: ”[電子郵件保護]",
“密碼”:“123456”,
“到期”:“2024-03-15”
}
點擊發送後,您可以在Body Response中獲取AToken。
第 2 步:生成站點詳細信息
方法:獲取
網址:https://data.footfallcam.com/api/Sites
Listener:在key中添加KEYWORD AToken,並將之前生成的AToken粘貼到value中
點擊發送後,您可以在Body Response中獲取BranchId。
第3步:調用Cube示例
方法:郵寄
網址:https://cube.footfallcam.com/API/v1/load
授權:不記名令牌:{{您的存取令牌}}
鍵內容類型值:application/json
身體:
{ "query": { "measures": [ "sitearea_footfallcounting_hour.FC01_1_SUM", "sitearea_footfallcounting_hour.FC02_1_SUM" ], "dimensions": [ "sitearea_footfallcounting_hour.BranchName", "sitearea_footfallcounting_hour.Time" ], "filters": [ { "member": "sitearea_footfallcounting_hour.BranchId", "operator": "equals", "values": [ "6903" ] }, { "member": "sitearea_footfallcounting_hour.isoperating", "operator": "equals", "values": [ "true" ] } ], "timeDimensions": [ { "dimension": "sitearea_footfallcounting_hour.Time", "dateRange": [ "2023-07-27T00:00:00.000", "2023-07-27" ] } ], "order": [ [ "sitearea_footfallcounting_hour.BranchId", "asc" ], [ "sitearea_footfallcounting_hour.Time", "asc" ] ], "offset": 0, "limit": 100 } }
點擊發送後即可獲取Body Response中的數據。