Powoduje bezpośrednie wstawienie wiadomości tylko do skrzynki pocztowej tego użytkownika, podobnie jak w usłudze IMAP APPEND, z pominięciem większości skanowania i klasyfikacji. Nie wysyła wiadomości.
Żądanie HTTP
Identyfikator URI przesyłania dla żądań przesłania multimediów: POST https://gmail.googleapis.com/upload/gmail/v1/users/{userId}/messages
Identyfikator URI metadanych dla żądań tylko metadanych: POST https://gmail.googleapis.com/gmail/v1/users/{userId}/messages
Oznacz e-maila jako trwale usuniętego (nie TRASH) i jest on widoczny tylko w Google Vault dla administratora Vault. Używany tylko na kontach Google Workspace.
Treść żądania
Treść żądania zawiera wystąpienie elementu Message.
Treść odpowiedzi
W przypadku powodzenia treść odpowiedzi obejmuje wystąpienie elementu Message.
[[["Łatwo zrozumieć","easyToUnderstand","thumb-up"],["Rozwiązało to mój problem","solvedMyProblem","thumb-up"],["Inne","otherUp","thumb-up"]],[["Brak potrzebnych mi informacji","missingTheInformationINeed","thumb-down"],["Zbyt skomplikowane / zbyt wiele czynności do wykonania","tooComplicatedTooManySteps","thumb-down"],["Nieaktualne treści","outOfDate","thumb-down"],["Problem z tłumaczeniem","translationIssue","thumb-down"],["Problem z przykładami/kodem","samplesCodeIssue","thumb-down"],["Inne","otherDown","thumb-down"]],["Ostatnia aktualizacja: 2024-09-05 UTC."],[[["Directly inserts a message into the user's mailbox, similar to `IMAP APPEND`, bypassing most scanning and classification."],["Supports two types of requests: uploading media content (`POST /upload/...`) and sending metadata only (`POST /...`)."],["Requires providing the user's email address (`userId`) as a path parameter and offers optional query parameters to control internal date source and deletion behavior."],["The request and response bodies both utilize the `Message` resource for structuring email data."],["To authorize, you'll need one of the specified OAuth scopes related to Gmail access and modification."]]],["This content outlines the process for directly inserting a message into a user's Gmail mailbox. Key actions include using `POST` requests to either an upload URI (`/upload/gmail/v1/users/{userId}/messages`) or a metadata URI (`/gmail/v1/users/{userId}/messages`). The `userId` path parameter identifies the user, and query parameters like `internalDateSource` and `deleted` provide further message properties. A `Message` instance is sent in the request and returned in the response. Authentication requires specific OAuth scopes.\n"]]