【发布时间】:2015-05-21 01:51:33
【问题描述】:
我尝试使用 Google REST API - Users.messages: send 的 - try it 。
有一个必填参数——raw——
RFC 2822 格式和 base64url 编码字符串中的整个电子邮件。在 messages.get 和 drafts.get 响应时返回 提供了 format=RAW 参数。
我检查了 RFC 2822 格式,似乎它应该显示为 sample here ,然后我使用此编码器将其编码为 base64URL 并将其粘贴到 try it 的 raw 字段中,我得到 - Invalid value for ByteString: http://ostermiller.org/calc/encode.html 。
你能给我一个正确的RFC 2822 format 及其对应的base64URL,它可以在上面的try it 中工作吗?
【问题讨论】:
-
查看此链接stackoverflow.com/questions/24460422/…,其中包含有关 RFC 2822 规范的所有信息
-
确实,Google API 不仅仅是 Base64,因为它包含以下字符“-_”,正如 base64.guru/tools/validator 检测到的那样