视频指南
第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中的数据。