【发布时间】:2022-09-23 06:43:42
【问题描述】:
我正在尝试在我的 .NET C# 程序中接收 Gmail 邮箱的监视通知。
我有以下代码:
WatchRequest body = new WatchRequest()
{
LabelIds = labelIds,
TopicName = PrivateKeys.GoogleGmailTopic
};
WatchResponse response = new UsersResource.WatchRequest(_gmailService, body, \"me\")
{
Key = PrivateKeys.GoogleApiKey,
OauthToken = AccessToken
}
.Execute();
...而且它似乎有效,因为我得到了回应。
但在我的程序中哪里可以收到这些通知?如何配置事件入口点?
标签: c# .net push-notification gmail-api google-cloud-pubsub