Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions ballerina/modules/oas/client.bal
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,13 @@ public isolated client class Client {
return self.clientEp->post(resourcePath, request, headers);
}

# Imports a message into only this user's mailbox, with standard email delivery scanning and classification similar to receiving via SMTP. This method doesn't perform SPF checks, so it might not work for some spam messages, such as those attempting to perform domain spoofing. This method does not send a message.
#
# + userId - The user's email address. The special value `me` can be used to indicate the authenticated user
# + headers - Headers to be sent with the request
# + queries - Queries to be sent with the request
# + payload - The message to be imported
# + return - Successful response
resource isolated function post users/[string userId]/messages/'import(Message payload, map<string|string[]> headers = {}, *GmailUsersMessagesImportQueries queries) returns Message|error {
string resourcePath = string `/users/${getEncodedUri(userId)}/messages/import`;
resourcePath = resourcePath + check getPathForQueryParam(queries);
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ releasePluginVersion=2.8.0
testngVersion=7.6.1
eclipseLsp4jVersion=0.12.0
ballerinaGradlePluginVersion=2.3.0
ballerinaLangVersion=2201.12.0
ballerinaLangVersion=2201.12.3
Loading