پرش به مستندات
C#

client.Support

هر متد در این فضای نام: امضا، پارامترها، آنچه برمی‌گرداند و یک نمونه.

متدها

Write to the people who build OpenEmail, as the contact page does. The reply goes by email to the account behind the client.

Support.SendAsync

Write to OpenEmail support

بدون محدوده دسترسی
امضای متد
Task<JsonObject> SendAsync(    IReadOnlyDictionary<string, object?> body,    string? apiKey = null,    CancellationToken cancellationToken = default)

Sends a message to the people who build OpenEmail, as the contact page does for somebody signed in. The name and the address the reply goes to come from the account behind the client: the workspace owner for an API key, and the person who connected the app for an access token. The workspace is named in the message, so support knows which one it is about.

پارامترها

topicstringالزامی

What it is about in a few words, up to 64 characters, such as Bug report or Domains & DNS.

messagestringالزامی

The message itself, up to 8,000 characters.

apiKeystring?

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

cancellationTokenCancellationToken

Cancels the request.

خروجی

A JsonObject with the id of the message and replyTo, the address the reply will go to.

نمونه

var sent = await client.Support.SendAsync(new Body{    ["topic"] = "Bug report",    ["message"] = "Scheduled sends to one address stay queued since this morning.",}); Console.WriteLine($"{sent["id"]} {sent["replyTo"]}");

نکته‌ها

  • Needs no scope.

  • One address can send 3 messages in 10 minutes. The next one is 429 support_rate_limited, and nothing is recorded or sent.

  • The SDK does not retry it, because a second call would send a second message.

همچنین در دسترس در

API
POST /support
TypeScript
support.send()
Python
support.send()
Ruby
support.send
PHP
support->send
Go
Support.Send
Java
support().send
CLI
openemail support send