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

痞子三分冷 提交于 2019-12-01 08:17:02

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

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?

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!