Method: users.messages.insert
বেশিরভাগ স্ক্যানিং এবং শ্রেণীবিভাগকে বাইপাস করে IMAP APPEND
এর অনুরূপ শুধুমাত্র এই ব্যবহারকারীর মেলবক্সে সরাসরি একটি বার্তা সন্নিবেশ করায়৷ বার্তা পাঠায় না।
HTTP অনুরোধ
- মিডিয়া আপলোড অনুরোধের জন্য URI আপলোড করুন:
POST https://gmail.googleapis.com/upload/gmail/v1/users/{userId}/messages
- মেটাডেটা URI, শুধুমাত্র মেটাডেটা অনুরোধের জন্য:
POST https://gmail.googleapis.com/gmail/v1/users/{userId}/messages
URL gRPC ট্রান্সকোডিং সিনট্যাক্স ব্যবহার করে।
পাথ প্যারামিটার
পরামিতি |
---|
userId | string ব্যবহারকারীর ইমেইল ঠিকানা. বিশেষ মান me প্রমাণীকৃত ব্যবহারকারী নির্দেশ করতে ব্যবহার করা যেতে পারে। |
ক্যোয়ারী প্যারামিটার
পরামিতি |
---|
internalDateSource | enum ( InternalDateSource ) Gmail-এর অভ্যন্তরীণ বার্তার তারিখের উৎস। |
deleted | boolean ইমেলটিকে স্থায়ীভাবে মুছে ফেলা হিসাবে চিহ্নিত করুন (ট্র্যাশ নয়) এবং শুধুমাত্র Google ভল্টে একজন ভল্ট প্রশাসকের কাছে দৃশ্যমান৷ শুধুমাত্র Google Workspace অ্যাকাউন্টের জন্য ব্যবহার করা হয়। |
শরীরের অনুরোধ
অনুরোধের মূল অংশে Message
একটি উদাহরণ রয়েছে।
প্রতিক্রিয়া শরীর
সফল হলে, প্রতিক্রিয়া বডিতে Message
একটি উদাহরণ থাকে।
অনুমোদনের সুযোগ
নিম্নলিখিত OAuth সুযোগগুলির মধ্যে একটি প্রয়োজন:
-
https://mail.google.com/
-
https://www.googleapis.com/auth/gmail.modify
-
https://www.googleapis.com/auth/gmail.insert
আরও তথ্যের জন্য, অনুমোদন নির্দেশিকা দেখুন।
অন্য কিছু উল্লেখ না করা থাকলে, এই পৃষ্ঠার কন্টেন্ট Creative Commons Attribution 4.0 License-এর অধীনে এবং কোডের নমুনাগুলি Apache 2.0 License-এর অধীনে লাইসেন্স প্রাপ্ত। আরও জানতে, Google Developers সাইট নীতি দেখুন। Java হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2024-10-30 UTC-তে শেষবার আপডেট করা হয়েছে।
[null,null,["2024-10-30 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"]]