Unable to create subscription with a push end point on App Script (script.google.com)

前端 未结 2 1055
名媛妹妹
名媛妹妹 2021-01-14 17:33

I have been playing around with the Pub/Sub REST API on Google App Script.

I have tried, without success, to create a subscriber with a push end point at script.goog

2条回答
  •  甜味超标
    2021-01-14 18:18

    I was able to get Cloud Pub/Sub Working with Apps Script. The trick is to publish your script to the chrome web store (you can leave it in draft mode). This will verify your script in webmaster tools. You then go to the Dev Console and add the published URL of the script without the trailing /exec to your push locations.

    Here is an example of the new gmail push notifications that uses Pub/Sub.
    https://github.com/Spencer-Easton/Apps-Script-Gmail-Push-Notifications

提交回复
热议问题