Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

ETL: sync PEC validation results into a CRM via webhook

Đang mở
#27 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
25/100
Loại issue
Tính năng
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Ít trao đổi
Công nghệ
php
Lĩnh vực
api

Hướng nghiên cứu

Start by reading the SDK's API client and response handling entry points; the issue does not name files or tests. Decide whether the SDK should expose a structured response, processing hooks, and dry-run support, and whether a pipeline runner belongs in scope. Done requires settling these open design questions and defining the integration behavior.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

enhancement

Context

Several teams run nightly jobs that validate PEC addresses and push the results into their CRM (HubSpot, Salesforce, custom). The current SDK makes the API call straightforward but the surrounding ETL glue is always written from scratch.

Typical integration code

$client = new Client($token);

foreach ($contacts as $contact) {
    $raw = $client->get('https://pec.openapi.com/check', [
        'pec' => $contact['email']
    ]);
    $result = json_decode($raw, true);

    if ($result['valid'] === true) {
        $crm->updateContact($contact['id'], ['pec_verified' => true]);
    }
}

What's missing

  • No structured response object — consumers always json_decode manually.
  • No event/hook to plug into after each item is processed.
  • No dry-run mode for testing the pipeline without hitting the API.

Open questions

  • Would a response DTO or a ResponseInterface be welcome, or is raw JSON preferred to keep the SDK agnostic?
  • Should the SDK ship with a PipelineRunner helper, or is that out of scope?
Ngôn ngữ chính
PHP
Star
20
Fork
3
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của openapi/openapi-php-sdk

Tất cả issue của openapi/openapi-php-sdk

Issue tương tự

Thêm issue về PHP

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.