Topic wurde in einem Cloud-Pub / -Unter erstellt, kann jedoch keine Überwachung für dieses Thema erstellen.
Ich möchte eine Überwachung für ein Cloud-Pub / Sub-Thema erstellen, kann sie jedoch nicht erstellen. Dafür benutze ich die Restanfrage
request_Req.post({
url:'https://www.googleapis.com/gmail/v1/users/me/watch',
headers:{
'content-type': 'application/json',
'Authorization': 'Bearer '+ access_token,
},
scope : [
'https://mail.google.com/'
],
'body': JSON.stringify({
'topicName' : "/projects/ProjectId/topics/TopicId",
'labelIds' : ["INBOX"]
});
}),function(error, resp, body){
});
Aber ich erhalte die FehlermeldungError sending test message to Cloud PubSub/projects/ProjectID/topics/TopicId : Resource not found resource=TopicId