문서로 건너뛰기
Ruby

client.tools

이 네임스페이스의 모든 메서드: 시그니처, 매개변수, 반환값과 예시.

메서드

Checks of the public mail records of any domain, the free tools on the OpenEmail website: its DMARC policy, its BIMI logo and a deliverability report across MX, SPF, DKIM, DMARC and BIMI. They need no scope.

tools.check_dmarc

Check a domain's DMARC policy

스코프 없음
시그니처
check_dmarc(domain, api_key: nil) -> Hash

Reads the domain's DMARC record from public DNS, or the record of the organisational domain it inherits from, and says how strict it is and what is wrong with it, the DMARC checker on the OpenEmail website. stage is missing, invalid, monitor for p=none, quarantine or reject, and issues lists the problems written to be shown to a person.

매개변수

domainString필수

The domain to check, such as acme.com. An email address or a URL is read as its domain, and any public domain works, not only the ones in this workspace.

api_keyString

Overrides the client's API key for this call only.

반환값

A Hash with domain, record, inheritedFrom, every tag in tags, stage and issues.

예시

report = client.tools.check_dmarc("acme.com") puts report[:stage], report[:tags][:p]p report[:issues]

참고

  • Needs no scope: any key or access token for the workspace may run it.

  • A domain that does not read as one is 422 invalid_parameter on domain, and DNS that did not answer is 503 unreachable, which is worth retrying.

다른 사용처

API
GET /tools/dmarc
TypeScript
tools.checkDmarc()
Python
tools.check_dmarc()
CLI
openemail tools check-dmarc

tools.check_bimi

Check a domain's BIMI logo

스코프 없음
시그니처
check_bimi(domain, api_key: nil) -> Hash

Reads the domain's BIMI record, fetches the logo it names and checks the DMARC policy beside it, since inboxes draw a logo only at p=quarantine or p=reject, the BIMI checker on the OpenEmail website. status is present, partial when the record is there but something stops inboxes showing the logo, absent or invalid, and issues says why.

매개변수

domainString필수

The domain to check, such as acme.com. An email address or a URL is read as its domain, and any public domain works, not only the ones in this workspace.

api_keyString

Overrides the client's API key for this call only.

반환값

A Hash with record, logoUrl, authorityUrl, logoSvg, logoReachable, dmarcPolicy, dmarcEnforced, status and issues.

예시

report = client.tools.check_bimi("acme.com") p report[:issues] unless report[:status] == "present"

참고

  • Needs no scope: any key or access token for the workspace may run it.

  • A domain that does not read as one is 422 invalid_parameter on domain, and DNS that did not answer is 503 unreachable, which is worth retrying.

다른 사용처

API
GET /tools/bimi
TypeScript
tools.checkBimi()
Python
tools.check_bimi()
CLI
openemail tools check-bimi

tools.check_deliverability

Check a domain's deliverability

스코프 없음
시그니처
check_deliverability(domain, api_key: nil) -> Hash

Checks the records a receiving mailbox reads before it trusts mail from the domain, the deliverability checker on the OpenEmail website: MX, SPF, DKIM at the selectors its mail provider uses, DMARC and BIMI. Each check says pass, warn, fail or absent with a verdict and notes, and score weighs them into 0 to 100, graded A to F.

매개변수

domainString필수

The domain to check, such as acme.com. An email address or a URL is read as its domain, and any public domain works, not only the ones in this workspace.

api_keyString

Overrides the client's API key for this call only.

반환값

A Hash with score, grade, provider and checks, an Array of Hashes each with id, label, status, verdict, record and notes.

예시

report = client.tools.check_deliverability("acme.com") puts report[:grade], report[:score]report[:checks].each { |check| puts check.values_at(:id, :status, :verdict).join(" ") }

참고

  • Needs no scope: any key or access token for the workspace may run it.

  • A domain that does not read as one is 422 invalid_parameter on domain, and DNS that did not answer is 503 unreachable, which is worth retrying.

다른 사용처

API
GET /tools/deliverability
TypeScript
tools.checkDeliverability()
Python
tools.check_deliverability()
CLI
openemail tools check-deliverability