Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/450.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 从Google Play Services中的网页进行云存储_Javascript_Rest_Google Play Services_Google Play Games - Fatal编程技术网

Javascript 从Google Play Services中的网页进行云存储

Javascript 从Google Play Services中的网页进行云存储,javascript,rest,google-play-services,google-play-games,Javascript,Rest,Google Play Services,Google Play Games,是否可以从网页(我想象通过REST)在google play服务中创建和加载云存储?我似乎只能找到为C++/Android代码保存的游戏的文档。您可以查看 Google Play games服务的REST API允许您发布REST 从web游戏中设置和检索游戏服务数据的调用。你 还可以使用管理API进行REST调用以重置游戏 服务数据并执行其他管理功能 注意:在页面中也提供了示例代码。要使游戏正常运行,您需要在Google Play开发者控制台中设置自己的版本。所有这些方法都需要 要获得一个:

是否可以从网页(我想象通过REST)在google play服务中创建和加载云存储?我似乎只能找到为C++/Android代码保存的游戏的文档。

您可以查看

Google Play games服务的REST API允许您发布REST 从web游戏中设置和检索游戏服务数据的调用。你 还可以使用管理API进行REST调用以重置游戏 服务数据并执行其他管理功能


注意:在页面中也提供了示例代码。要使游戏正常运行,您需要在Google Play开发者控制台中设置自己的版本。

所有这些方法都需要

要获得一个:

要获得一个:

保存游戏更为混乱,因为您必须使用创建文件:

https://www.googleapis.com/upload/drive/v2/files

恐怕没有一部分能回答我的问题,我先看了一下。你看,这是答案的一半。。您知道是否有使用驱动器API创建保存文件的指南?我把它们放哪儿了?你做过吗,或者见过其他人做过吗?@ChrisJefferson有一个runnable可以处理驱动器文件。
https://www.googleapis.com/games/v1/players/{me | ID of player}/snapshots
https://www.googleapis.com/upload/drive/v2/files