0
googleapisで非常に悪い経験をしていますが、1週間で失われましたが失敗したので、皆さんの助けを求める質問を開きます。Google Cloud Pub/Sub APIで新しいGmail通知を取得したい
var gmail = google.gmail({ auth: {---my auth---}, version: 'v1' });
gmail.users.watch({
userId: "me",
resource: {
topicName: "projects/responsive-hall-xxxx/topics/xxxx",
labelIds: ["INBOX"]
}
}
をしかし、エラー403だ:
は、GoogleクラウドFlatformコンソールのPUB/SUBから(エンドポイントURL付き)話題&サブスクリプションを作成した後、私は怒鳴るのコードでnodejsを使用
{
domain: 'global',
reason: 'forbidden',
message: 'Error sending test message to Cloud PubSub projects/responsive-hall-xxxx/topics/xxxx : User not authorized to perform this action.'
}
を
私のGmailアカウントの権限をパブ/サブに設定しようとしましたが、まだ失敗しました。
助けてください、 ありがとう!