是否有可能通过网页(通过我想象中的REST)在谷歌播放服务中创建和加载云端保存?我似乎只能找到用于C++/Android代码的已保存游戏的文档。从Google Play服务中的网页中保存云端
回答
您可以检查Get Started with Play Games Services for Web。
Google Play游戏服务的REST API允许您发出REST 调用来设置和检索网页游戏中的游戏服务数据。您还可以使用Management API进行REST调用,以重置游戏服务数据并执行其他管理功能。
注:Links采样代码是在页面来提供。为了让游戏正常运行,您需要在Google Play开发者控制台中设置自己的版本。
没有哪个部分能够回答我的问题,我很害怕,我先看了一下。 –
所有这些方法都需要authentication and authorisation。
要获得saved game from the REST API call:
https://www.googleapis.com/games/v1/snapshots/{ID of save}
为了得到一个list of saved games:
https://www.googleapis.com/games/v1/players/{me | ID of player}/snapshots
保存游戏是混乱,因为你必须使用drives API创建文件:
https://www.googleapis.com/upload/drive/v2/files
这是答案的一半..你知道是否有任何指导使用驱动器API创建保存文件?我把他们放在什么地方?你做过了吗,还是看到其他人这样做? –
@ChrisJefferson有一个适用于驱动器文件的可运行[JS quickstart示例](https://developers.google.com/drive/v3/web/quickstart/js)。 – Keith
- 1. Google云端存储中图像的服务网址是否改变?
- 2. 试图将文件从网页上传到Google云端存储
- 3. 从Google云端存储中存储的XLS中读取数据
- 4. 简易云端保存至Google文件
- 5. 保存文字从网页中的文字云在R
- 6. Google Play API中的“Google Play服务正在更新”
- 7. Unity Google Play服务
- 8. BigQuery中的Google云端存储桶
- 9. Google Play服务已保存的游戏快照崩溃()
- 10. Google Play服务插件 - 保存的游戏
- 11. Android。 Google Play服务已保存的游戏API
- 12. 如何将数据保存到服务器上(“在云端”)?
- 13. 如何将Google云端硬盘中的视频嵌入网页?
- 14. 从网址上传Google云端数据
- 15. Google Play服务在客户端 - 服务器应用程序中的验证
- 16. 从Android Studio中的应用中删除Google Play服务
- 17. Google Play游戏服务在中国?
- 18. 在Cocos2d-JS中使用Google Play服务
- 19. 在Google Play服务中邀请好友
- 20. 在Google云端存储中存储关键值类似于Google云端存储中的数据
- 21. iOS Google云端存储API服务帐户访问
- 22. Google Play服务|云存储游戏|获取朋友的游戏状态
- 23. 从Google Play服务获取用户ID?
- 24. 如何在Google Play服务页面上打开Play Market?
- 25. 在没有Google Play服务的设备中使用Firebase云消息
- 26. 如何从Google云端存储获取图片处理网址?
- 27. Google Play服务库文档?
- 28. Android Wear Google Play服务
- 29. Xamarin Google Play服务缺失?
- 30. Google Play服务问题
另请参阅https://stackoverflow.com/questions/28965969/google-play-game-services-re st-api-snapshot-load-commit – Keith