iT邦幫忙

0

GCP Pub/Sub,使用者取消訂閱,server端要如何獲取資訊

hsu 2020-11-25 11:28:251112 瀏覽

現在遇到的問題是,使用者在App商店取消訂閱,server這邊要如何得知,想要獲取的資料如下
https://ithelp.ithome.com.tw/upload/images/20201125/20132969S6ldiyvJYM.png
這串json資料包

目前想到的是,使用cloud function,觸發條件為Cloud Pub/Sub
https://ithelp.ithome.com.tw/upload/images/20201125/201329695pWea0cR5J.png

對https://api.com/api/pub/sub 發送post,post的資料要上面的那包json
https://ithelp.ithome.com.tw/upload/images/20201125/201329693ZzS1k4Kmx.png
https://ithelp.ithome.com.tw/upload/images/20201125/20132969vafvxbO4W1.png

以上,希望高手能夠幫忙解題,如有任何建議或方法,也可以分享,謝謝~~

圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

尚未有邦友回答

立即登入回答