Erstellt ein Google Workspace-Abo. Informationen zur Verwendung dieser Methode finden Sie unter Google Workspace-Abo erstellen.
Für ein Abo für eine Chat-Zielressource können Sie ein Abo so erstellen:
Eine Chat-App, indem Sie einen Autorisierungsbereich angeben, der mit
chat.app
beginnt, und eine einmalige Administratorgenehmigung erhalten (Developer Preview). Weitere InformationenEin Nutzer, indem Sie einen Autorisierungsbereich angeben, der
app
nicht im Namen enthält. Weitere Informationen finden Sie unter Als Chat-Nutzer autorisieren.
HTTP-Anfrage
POST https://workspaceevents.googleapis.com/v1beta/subscriptions
Die URL verwendet die Syntax der gRPC-Transcodierung.
Abfrageparameter
Parameter | |
---|---|
validateOnly |
Optional. Wenn |
Anfragetext
Der Anfragetext enthält eine Instanz von Subscription
.
Antworttext
Bei Erfolg enthält der Antworttext eine neu erstellte Instanz von Operation
.
- Das Feld
metadata
enthält ein leeres Array. - Das Feld
response
enthält eine neue Instanz vonSubscription
.
Autorisierungsbereiche
Erfordert einen der folgenden OAuth-Bereiche:
https://www.googleapis.com/auth/chat.spaces
https://www.googleapis.com/auth/chat.spaces.readonly
https://www.googleapis.com/auth/chat.messages
https://www.googleapis.com/auth/chat.messages.readonly
https://www.googleapis.com/auth/chat.messages.reactions
https://www.googleapis.com/auth/chat.messages.reactions.readonly
https://www.googleapis.com/auth/chat.memberships
https://www.googleapis.com/auth/chat.memberships.readonly
https://www.googleapis.com/auth/chat.app.memberships
https://www.googleapis.com/auth/chat.app.messages.readonly
https://www.googleapis.com/auth/chat.app.spaces
https://www.googleapis.com/auth/meetings.space.created
https://www.googleapis.com/auth/meetings.space.readonly
https://www.googleapis.com/auth/drive
https://www.googleapis.com/auth/drive.file
https://www.googleapis.com/auth/drive.metadata
https://www.googleapis.com/auth/drive.metadata.readonly
https://www.googleapis.com/auth/drive.readonly
Weitere Informationen finden Sie im Autorisierungsleitfaden.