5

push bildirimleri abone olun. Şimdiye kadar bu yöntemi abone kullanarak tek bir klasöre abone başardı: https://github.com/WinRb/Viewpoint/blob/bcda30abdab99f52270f2c24a1c78364c986d967/lib/ews/soap/exchange_notification.rbEWS yakut bakış açısı toplu Ben microsoft exchange bildirim servisine abone olmak bakış açısı mücevher kullanıyorum

Ben aynı sunucuda farklı hesaplara ait farklı bir klasör kimlikleri ile birden karmaları geçen çalıştı.

client.ews.subscribe(
[{ :push_subscription_request => { 
    :folder_ids => [{id: calendar[:id], change_key: calendar[:change_key]}], 
    :subscribe_to_all_folders => true, 
    :event_types=> %w{CopiedEvent CreatedEvent DeletedEvent MovedEvent}, 
    :status_frequency => 1, 
    :uRL => 'https://51.ngrok.io/ews_watch', 
}, 
{same again with different calendar ids}] 
) 

ama sadece tek bir takvim klasör için, ews yanıtlar alın. Ben her abonelik için bir tane alma yerine ews sunucusundan bir toplu itme bildirimi almak böylece

herkes aynı sunucuda birden çok posta kutusuna abone nasıl toplu biliyor mu?

Eğer

cevap

1

ben üzerinden yineleme olur ederiz.

@client.ews.subscribe.each do |ces| 
ces([{ :push_subscription_request => { 
    :folder_ids => [{id: calendar[:id], change_key: calendar[:change_key]}], 
    :subscribe_to_all_folders => true, 
    :event_types=> %w{CopiedEvent CreatedEvent DeletedEvent MovedEvent}, 
    :status_frequency => 1, 
    :uRL => 'https://51.ngrok.io/ews_watch', 
}]) 
end 

testeted değil, ama bu hile yapmak gerekir: kimlikleri depolandığı yere bağlı. Sadece kimlikleri üzerinde yineleyin.

+0

Binlerce kullanıcım var, her birine abone olursam her dakika binlerce cevap veririm. Daha iyi bir yol olup olmadığını merak ediyordum? – Richardlonesteen

İlgili konular