Zapier API代码帮助从JSON提取数据

2024-09-29 03:41:09 发布

您现在位置:Python中文网/ 问答频道 /正文

我试图在Zapier响应中使用JSON响应。数据如下所示: JSON Result

我尝试在Zap中使用归纳法和场地适宜性href值,但是,当我尝试在Zapier中使用此值时,Zapier给了我以下信息: Zapier Selection

我打算使用某种查找来查找归纳法和站点适合性,然后返回href,但由于格式的原因,我不能这样做。有人知道我如何使用格式化程序或代码(Python/Javascript)或Zapier中的其他东西来实现这一点吗

多谢各位

卢克

以下是代码中的API结果:

{
"competencies": [
    {
        "competency": {
            "name": "Forklift Operator Permit",
            "href": "https://link/22059"
        },
        "status": {
            "value": "Active",
            "type": "active"
        },
        "expiryWarning": "2021-04-15T13:59:00Z",
        "expiry": "2021-04-30T13:59:00Z",
        "disabled": false,
        "href": "https://link/1b1594d738"
    },
    {
        "competency": {
            "name": "Induction and Site Suitability",
            "href": "https://link/24033"
        },
        "status": {
            "value": "Active",
            "type": "active"
        },
        "expiryWarning": "2021-04-15T13:59:00Z",
        "expiry": "2021-04-30T13:59:00Z",
        "disabled": false,
        "href": "https://link/8e26b5ea4bbc800e"
    }
]

}


Tags: 代码namehttpsvaluetypestatuslinkactive