【发布时间】:2018-03-14 08:02:06
【问题描述】:
为了在 PHP 中使用 HTTP V1 API(不是旧版 API),必须使用 REST 接口。
https://firebase.google.com/docs/cloud-messaging/send-message#top_of_page
我想知道如何获取 Auth 2.0 访问令牌?
https://firebase.google.com/docs/cloud-messaging/auth-server
由于 PHP 没有 Google API Client Library(参见上面链接中的示例),如何通过 REST 调用接收 Auth 2.0 令牌(无需显示 PHP 代码)?
相关问题:一旦收到这个短暂的token,如何刷新这个token?工作流程是什么?
非常感谢!
【问题讨论】:
标签: php rest firebase firebase-cloud-messaging