Google Business Messages'ı 31 Temmuz 2024'te kullanımdan kaldıracağız.
Burayı tıklayarak daha fazla bilgi edinebilirsiniz.
Method: conversations.messages.create
Koleksiyonlar ile düzeninizi koruyun
İçeriği tercihlerinize göre kaydedin ve kategorilere ayırın.
Bir temsilciden kullanıcıya mesaj gönderir. Görüşme yoksa veya bir temsilci, katılma yetkisine sahip olmayan bir görüşmede mesaj göndermeye çalışırsa PERMISSION DENIED
hatası döndürür.
HTTP isteği
POST https://businessmessages.googleapis.com/v1/{parent=conversations/*}/messages
URL, gRPC Kod Dönüştürme söz dizimini kullanır.
Yol parametreleri
Parametreler |
parent |
string
Zorunlu. İletiyi içeren ileti dizisi. "conversations/{conversationId}" olarak çözümlenir.
|
Sorgu parametreleri
Parametreler |
forceFallback |
boolean
İsteğe bağlı. Diğer ileti içerikleri yerine belirtilen yedek metni göndermek için kullanılan işaret. Yalnızca hizmeti başlatılmamış temsilciler tarafından kullanılabilir. İşaret doğruysa ve yedek metin belirtilmemişse Business Messages bir hata döndürür.
|
İstek içeriği
İstek metni, Message
öğesinin bir örneğini içerir.
Yanıt gövdesi
Başarılı olursa yanıt gövdesi, yeni oluşturulan Message
örneğini içerir.
Yetkilendirme kapsamları
Aşağıdaki OAuth kapsamını gerektirir:
https://www.googleapis.com/auth/businessmessages
Daha fazla bilgi için OAuth 2.0'a Genel Bakış başlıklı makaleye bakın.
Aksi belirtilmediği sürece bu sayfanın içeriği Creative Commons Atıf 4.0 Lisansı altında ve kod örnekleri Apache 2.0 Lisansı altında lisanslanmıştır. Ayrıntılı bilgi için Google Developers Site Politikaları'na göz atın. Java, Oracle ve/veya satış ortaklarının tescilli ticari markasıdır.
Son güncelleme tarihi: 2025-07-25 UTC.
[[["Anlaması kolay","easyToUnderstand","thumb-up"],["Sorunumu çözdü","solvedMyProblem","thumb-up"],["Diğer","otherUp","thumb-up"]],[["İhtiyacım olan bilgiler yok","missingTheInformationINeed","thumb-down"],["Çok karmaşık / çok fazla adım var","tooComplicatedTooManySteps","thumb-down"],["Güncel değil","outOfDate","thumb-down"],["Çeviri sorunu","translationIssue","thumb-down"],["Örnek veya kod sorunu","samplesCodeIssue","thumb-down"],["Diğer","otherDown","thumb-down"]],["Son güncelleme tarihi: 2025-07-25 UTC."],[[["Sends a message from an agent to a user within a specific conversation."],["Returns a `PERMISSION DENIED` error if the conversation doesn't exist or the agent isn't authorized."],["Allows sending fallback text instead of the main message content for non-launched agents using the `forceFallback` query parameter."],["Requires the `https://www.googleapis.com/auth/businessmessages` OAuth scope for authorization."],["Uses the `POST` method with the URL `https://businessmessages.googleapis.com/v1/{parent=conversations/*}/messages` to send the message."]]],[]]