如何配置实时开发人员通知以使用我的后端(https 端点)?

How to configure Real-time developer notifications to use my back-end (https endpoint)?

我需要在我的后端服务器中实施 Real-time developer notifications 以了解我的用户所做的任何购买修改(暂停帐户、续订等)。我的后端服务器是在 Delphi 中创建的,Delphi 没有现成的库,但是,我可以创建一个 HTTPS 端点来接收通知。

如何设置实时开发人员通知以使用我的 HTTPS 端点?

要使用 HTTPS 端点接收通知,您需要设置 push subscription in Cloud Pub/Sub on the topic you tie to the real-time developer notifications. First you'd create a topic in Cloud Pub/Sub。例如,您可以使用 gcloud command-line 工具执行此操作:

gcloud pubsub topics create developer-notifications

接下来,您需要create a push subscription 讨论指向您的 HTTPS 端点的主题。例如,您可以通过 gcloud command-line 工具执行此操作:

gcloud pubsub subscriptions create developer-notifications-sub \
    --topic developer-notifications \
    --push-endpoint=https://www.example.com/developer-notifications

最后,您需要设置 real-time developer notifications 以发布到云端 Pub/Sub 您在第一步中创建的主题。

完成所有这些步骤后,您的端点应该会通过云接收开发人员通知 Pub/Sub。