방아쇠의 URL에 path param
템플릿을 어떻게 바꿀 수 있습니까?Zapier CLI trigger_fields 사용 방법
const listEvents = (z, bundle) => {
console.log('listing events.. ');
const requestOpts = {
url: 'https://wccqa.on24.com/wcc/api/v2/client/{{client_id}}/event',
params: {
client_id: bundle.inputData.client_id
}
};
var eventResults = z.request(requestOpts)
.then((response) => z.JSON.parse(response.content));
z.console.log(eventResults);
return eventResults;
};
module.exports = {
//config ...
}
는 않습니다
이 내 현재 코드입니다,하지만 난
"The client {{client_id}} doesn't exist."
내가 그것을 가지고 있다는 {{client_id}}
템플릿을 대체하지 않다는 오류가 여기 내 코드입니다 params: {client_id: bundle.inputData.client_id}
이 템플릿을 대체하지 않으십니까? zapier test
을 실행할 때
또한, 때때로 나는 다음과 같은 오류가 발생합니다 :
1) GetEvents trigger testing should load latest Event created: Error: Timeout of 2000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves.