gpt4 book ai didi

gmail - 如何通过 Google Plus API 向人们发送电子邮件?

转载 作者:行者123 更新时间:2023-12-03 23:54:51 25 4
gpt4 key购买 nike

根据 Google+ ,您可以向您圈子内的 Google Plus 用户发送电子邮件:refer this

  • 如果您有他们的用户 ID,您如何使用 Google Plus API(或 Gmail API)向您圈子内的用户发送电子邮件?
  • 如果您不能这样做,您如何通过环聊向他们发送消息?
  • 最佳答案

    您应该遵循官方 Gmail API 引用指南 here .

    从文档:

    There are two ways to send email using the Gmail API:

    Emails are sent as base64url encoded strings within the raw property of a message resource. The high-level workflow to send an email is to:

    Create the email content in some convenient way and encode it as a base64url string. Create a new message resource and set its raw property to the base64url string you just created. Call messages.send, or, if sending a draft, drafts.send to send the message.



    为了通过 API 发送电子邮件,您需要提供以下参数:
    Args:
    - service: Authorized Gmail API service instance.
    - user_id: User's email address. The special value "me"
    can be used to indicate the authenticated user.
    - message: Message to be sent.

    关于gmail - 如何通过 Google Plus API 向人们发送电子邮件?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30113905/

    25 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com