与 Google 交换密钥并获得供应商 ID (PIAID) 后,您就可以与 Client Side Push Provisioning API 建立连接并成功进行 echo 测试了。我们提供了一些代码示例,旨在帮助您使用我们交换的加密密钥执行这些测试,以确保您的配置正确无误并且您的基础架构可将我们的请求正确路由到您的主机。使用我们的某个代码示例成功完成 echo 测试后,您便可以更新您的实现方式以与我们的 API 通信。
合作伙伴向 Google 发出 echo 请求
您可以调用 Google 托管的一个 echo 端点来测试能否与我们的服务器成功通信。在构建 echo 请求及解析我们的响应时,您应使用与 Google 交换的加密密钥。
使用我们的代码示例向 Google 发出 echo 请求
在配置并运行我们的某个代码示例之后,您就可以使用 curl 或类似工具触发向 Google 发出 echo 请求的操作,如下所示:
[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["没有我需要的信息","missingTheInformationINeed","thumb-down"],["太复杂/步骤太多","tooComplicatedTooManySteps","thumb-down"],["内容需要更新","outOfDate","thumb-down"],["翻译问题","translationIssue","thumb-down"],["示例/代码问题","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2024-10-16。"],[],["After exchanging keys with Google and obtaining a vendor ID, establish connectivity with the Client Side Push Provisioning API by completing an echo test. Use the exchanged encryption keys to format the echo request and parse the response. Utilize provided Java or Node.js code samples to send a test `echo` request via `curl` to Google's endpoint. Ensure proper key setup to receive a successful echo response, and use codelabs for a guided walkthrough of the sample implementations.\n"]]