【发布时间】:2014-08-03 23:42:18
【问题描述】:
我正在尝试按照 Parse.com 上提供的教程从 .Net API 调用 CloudFunctions。
显然,这应该有效:
var result = await ParseCloud.CallFunctionAsync<IDictionary<string, object>>("hello", new Dictionary<string, object>());`
在 Xamarin 中调用时:
button.Click += async (sender, e) => {
var result = await ParseCloud.CallFunctionAsync<IDictionary<string, object>> ("hello", new Dictionary<string, object>());
};
它只是锁定了我的移动应用程序。调用时:
button.Click += async (sender, e) => {
var obj = new ParseObject("Note");
obj ["text"] = "Hello, world! This is a Xamarin app using Parse!";
obj ["tags"] = new List<string> {"welcome", "xamarin", "parse"};
await obj.SaveAsync ();
};
它成功地将一个对象保存到 Parse。
当使用 curl 调用“hello”云函数时,它可以完美运行并返回“Hello World”
我不明白我在这里做错了什么。有什么建议吗?
【问题讨论】:
标签: c# xamarin parse-platform