archilogic - 无法读取未定义的属性 'call'

标签 archilogic 3d.io

调用 IO3D.services结果是:
Uncaught (in promise) TypeError: Cannot read property 'call' of undefined
版本:
https://3d.io 1.0.0-beta.22 (@master #274adf0 2017/08/02 10:16)

我试过的:

IO3D.services.call('Model.search', {
    arguments: {
        organizationResourceId: <my_organisationResourceId>,
        folderResourceName: '<my_folder_name>',
    },
}).then(console.log)

那么,services-api 还不可用吗?

最佳答案

直接调用 API 使用:

IO3D.utils.services.call( )

jsfiddle 上的示例:
https://jsfiddle.net/0f6n8wp0/

库中的 services.call 函数:
https://github.com/archilogic-com/3dio-js/blob/master/src/utils.js#L24

关于archilogic - 无法读取未定义的属性 'call',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45461950/

相关文章:

archilogic - 如何从我的 3D 平面图场景 ID 中获取存储 key ?

aframe - 无法将Archilogic gltf模型加载到框架中

html - 如何通过家具库中的存储 API 上传数据 3D 模型

augmented-reality - 如何将家具模型从 3d.io 导入 ARKit

aframe - 如何更改io3d-furniture的 Material ?

aframe - 3d.io 查看器中的建筑 Material 预设选择

aframe - 从 Url 获取 storageId

rotation - Aframe, 3dio 场景 : orientation changes