获取 API 密钥
邮箱邮箱

messages.list()

mailbox.messages.list({ folder?, limit?, cursor?, unread? }) → Promise<Page>

文件夹, 最新的先到。 光标是一个日期, 不是页码, 所以在阅读时会收到消息, 却没有改变 。

free40 by defaultsummaries, not bodies
Using Python?

Switch any code block to Python: the choice applies to every page. Python SDK guide and resource reference.

const { messages, nextCursor, unreadCount } =
  await box.messages.list({ folder: "inbox", limit: 40, unread: true });

while (nextCursor) {
  const page = await box.messages.list({ folder: "inbox", cursor: nextCursor });
}
page = box.messages.list(folder="inbox", limit=40, unread=True)
messages, next_cursor, unread_count = page["messages"], page.get("nextCursor"), page.get("unreadCount")

while next_cursor:
    page = box.messages.list(folder="inbox", cursor=next_cursor)
    next_cursor = page.get("nextCursor")
folderstringinbox

inbox · sent · drafts · spam · trash.

limitinteger40

有多少个?

cursorstring

从上页 nextCursor.

unreadbooleanfalse

只读过。

日期, 不是页码

以数字倍数按移动列表中的双数调用

两页之间传递的信息将所有信息推向下, 所以第二页重复第一页的最后一句话。 日期光标是免疫的: 这意味着“ 比此旧 ” , 上面有新的邮件地址 。

简摘不是信息

发件人、主题、日期、旗帜、旗帜和发件人照片。 HTML, 和 attachments 是一个数——一个有40个完整信息页面,对于一个没有完整阅读的名单来说,将是巨大的。

发件人的照片在名单上

也就是它最有用的地方。它会在信息发送时解决,而不是在阅读时解决,所以阅读一个文件夹就是阅读我们自己的数据,而没有从外部获取任何数据。

unreadCount 属于文件夹

不是为页面,是徽章应该显示的号码