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

前端 未结 2 1032
名媛妹妹
名媛妹妹 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:08

    Is it allowed to have a push end point URL with a query parameter?

    Yes.

    Do you guys know of any workaround? Am I doing something wrong?

    As you noticed, now we don't support push endpoints with the domain "script.google.com". I think this is a good feature request. Do you mind adding a feature request on our issue tracker?

    0 讨论(0)
  • 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

    0 讨论(0)
提交回复
热议问题