Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

n8n: scheduled company credit score monitoring workflow

未关闭
#33 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
35/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
冷清
技术栈
php
领域
api

调研方向

Start by reviewing the PHP SDK's existing examples and API client usage, then check whether the credit score endpoint supports change webhooks and what polling limits apply. The issue sketches a daily n8n flow and a possible examples/n8n/ template, but leaves those design questions open; done would need an agreed alert workflow and a documented, runnable example.

由索引模型根据 Issue 内容生成。

描述

good first issue question

Idea

Build an n8n workflow that runs daily, fetches the credit score of a watchlist of companies from Openapi, and sends a Slack alert if any score drops below a threshold.

Pseudocode for the PHP side

use Openapi\Client;

$client = new Client($token);
$watchlist = ['IT01234567890', 'IT09876543210'];

foreach ($watchlist as $vatNumber) {
    $score = json_decode(
        $client->get('https://risk.openapi.com/IT-creditscore', ['cf' => $vatNumber]),
        true
    );

    if ($score['value'] < 40) {
        // trigger Slack webhook from n8n
        yield ['cf' => $vatNumber, 'score' => $score['value'], 'alert' => true];
    }
}

n8n workflow sketch

Cron (daily 8am) → HTTP Request (PHP proxy) → IF score < 40 → Slack message

Open questions

  • Is there a way to subscribe to score changes via webhook instead of polling?
  • What is the recommended polling interval to avoid burning API credits?
  • Would an official n8n workflow template JSON be something the project could ship in examples/n8n/?
主要语言
PHP
星标
20
派生
3
PR 合并指标
30 天内没有已合并 PR

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

openapi/openapi-php-sdk 的其他 Issue

查看 openapi/openapi-php-sdk 的全部 Issue

相似的 Issue

更多 PHP Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。