Google app engine 从云代码中删除Parse.File

Google app engine 从云代码中删除Parse.File,google-app-engine,parse-platform,cloud,Google App Engine,Parse Platform,Cloud,目标是使用以下代码从云代码中删除Parse.File: Parse.Cloud.httpRequest({ method: 'DELETE', url: 'https://api.parse.com/1/files/' + file.name(), headers: { "X-Parse-Application-Id": "...", "X-Parse-Master-Key" : "..." }, success: func

目标是使用以下代码从云代码中删除Parse.File:

Parse.Cloud.httpRequest({
    method: 'DELETE',
    url: 'https://api.parse.com/1/files/' + file.name(),
    headers: {
        "X-Parse-Application-Id": "...",
        "X-Parse-Master-Key" : "..."
    },
    success: function(httpResponse) { // ... },
    error: function(httpResponse) { // ... }
});
如何在云代码中获取X-Parse-Master-Key?只要Parse.Cloud.useMasterKey在Parse.Cloud.httpRequest中不起作用。它不能被使用

在运行时获得X-Parse-Application-Id也很好,因为我们在所有游戏中都使用相同的云代码。

你可以在你的解析应用程序的设置页面上获得ParseMasterKey,因此除非你事先将它存储在本地,否则无法从其他任何地方获得它

不确定你想要应用程序Id做什么,因为它与ParseMasterKey基本相同,你无法通过请求获得它