Mojo SDK 检索所有联系人

发布于 2024-07-27 13:05:32 字数 524 浏览 3 评论 0原文

我正在使用 Mojo SDK,我想获取所有联系人。

this.controller.serviceRequest('palm://com.palm.contacts/crud', {
     method:   'listContacts',
     parameters: {
       limit: 100
     },
     onSuccess: this.handleListResponse.bind(this),
     onFailure: function(errResp){
       Mojo.Log.info(errResp.errorText)
     }.bind(this),
     onerror: function(errResp){
       Mojo.Log.info(errResp.errorText)
     }.bind(this)
});

这就是我现在所拥有的,但我没有得到任何回报。 而且 Mojo.Log.info 似乎不起作用。 有什么建议么?

谢谢

I'm playing with the Mojo SDK and I want to get all contacts.

this.controller.serviceRequest('palm://com.palm.contacts/crud', {
     method:   'listContacts',
     parameters: {
       limit: 100
     },
     onSuccess: this.handleListResponse.bind(this),
     onFailure: function(errResp){
       Mojo.Log.info(errResp.errorText)
     }.bind(this),
     onerror: function(errResp){
       Mojo.Log.info(errResp.errorText)
     }.bind(this)
});

This is what I have right now, but I don't get anything back. And Mojo.Log.info doesn't seem to work. Any suggestions?

Thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

讽刺将军 2024-08-03 13:05:33

我对 PRE 开发也相当陌生,但这就是我认为问题所在。

返回的错误是“找不到帐户”。 您需要将 accountId: 作为参数添加到服务请求中。

根据文档,该帐户 ID 是一个 Synergy 帐户,需要为您的应用程序创建。 点击此处查看有关 accountId 和创建帐户方法

I'm also fairly new at PRE development but here is what I think the issue is.

The error that comes back is "Account Not Found". You need to add accountId: as a parameter to the service request.

That account id, according to the documentation, is a Synergy account and needs to be created for your application. Click here for reference about the accountId and createAccount methods

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文