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/v1/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.
metadataalanı boş bir dizi içeriyor.responsealanı,Subscriptionöğesinin yeni bir örneğini içeriyor.
Yetkilendirme kapsamları
Aşağıdaki OAuth kapsamlarından birini gerektirir:
https://www.googleapis.com/auth/chat.spaceshttps://www.googleapis.com/auth/chat.spaces.readonlyhttps://www.googleapis.com/auth/chat.messageshttps://www.googleapis.com/auth/chat.messages.readonlyhttps://www.googleapis.com/auth/chat.messages.reactionshttps://www.googleapis.com/auth/chat.messages.reactions.readonlyhttps://www.googleapis.com/auth/chat.membershipshttps://www.googleapis.com/auth/chat.memberships.readonlyhttps://www.googleapis.com/auth/meetings.space.createdhttps://www.googleapis.com/auth/meetings.space.readonly
Daha fazla bilgi için Yetkilendirme kılavuzu'na bakın.