Google Workspace aboneliği oluşturur. Bu yöntemi nasıl kullanacağınızı öğrenmek için Google Workspace aboneliği oluşturma başlıklı makaleyi inceleyin.
HTTP isteği
POST https://workspaceevents.googleapis.com/v1beta/subscriptions
URL, gRPC Kod Dönüştürme söz dizimini kullanır.
Sorgu parametreleri
Parametreler | |
---|---|
validateOnly |
İsteğe bağlıdır. |
İstek içeriği
İstek metni, Subscription
öğesinin bir örneğini içerir.
Yanıt gövdesi
Başarılı olursa yanıt metni, Operation
öğesinin yeni oluşturulmuş bir örneğini içerir.
metadata
alanı boş bir dizi içeriyor.response
alanı,Subscription
öğesinin yeni bir örneğini içeriyor.
Yetkilendirme kapsamları
Aşağıdaki OAuth kapsamlarından birini gerektirir:
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/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
Daha fazla bilgi için Yetkilendirme kılavuzu'na bakın.