获取场景模型点位信息

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

请求参数

名称 类型 是否必选 示例值 描述
Action String GetScenePreviewInfo

系统规定参数。取值:GetScenePreviewInfo

ModelToken String A.e.RQJRPYGIJJQP****

模型token

Domain String www.aliyundoc.com

自定义oss域名(可为cdn域名)

Enabled Boolean true

是否开启自用资源访问

返回数据

名称 类型 示例值 描述
RequestId String 4F882EA7-3A1D-0113-94E4-70162C4****

Id of the request

Code Long 0:成功,其他:失败

返回码

Success Boolean true/false

是否请求成功

Message String xxxxx

错误消息

Data Object

业务数据

PanoList String 一串转译数据

html转译后的预览数据

ModelPath String https://www.aliyundoc.com/sgm/A.e.QRQRLWYEHIUEYLYW/A.e.QRQRLWYEHIUEYLYW****.sgm

模型地址

TextureModelPath String https:/www.aliyundoc.com/sgm/A.e.QRQRLWYEHIUEYLYW****/model_texture/

模型的贴图路径

TexturePanoPath String https://www.aliyundoc.com/sgm/A.e.QRQRLWYEHIUEYLYW****/pano_texture/

漫游后预览图片路径

示例

请求示例

Config config = new Config();
        config.setAccessKeyId("yourAccessKeyId");
        config.setAccessKeySecret("yourAccessKeySecret");
        config.setEndpoint("lyj.cn-hangzhou.aliyuncs.com");

        Client client = new Client(config);

        GetScenePreviewInfoRequest request = new GetScenePreviewInfoRequest();
        request.setModelToken("xxxxxxx");
        request.setDomain("www.aliyundoc.com");//参数可选
        request.setEnabled(false);//参数可选

        GetScenePreviewInfoResponse scenePreviewInfo = client.getScenePreviewInfo(request);
        if (response.getBody().success){
            // ...
        }

正常返回示例

XML格式

HTTP/1.1 200 OK
Content-Type:application/xml

<GetScenePreviewInfoResponse>
    <RequestId>4F882EA7-3A1D-0113-94E4-70162C4****</RequestId>
    <Success>false</Success>
    <Message>xxxxx</Message>
    <Data>
        <PanoList>一串转译数据</PanoList>
        <ModelPath>https://www.aliyundoc.com/sgm/A.e.QRQRLWYEHIUEYLYW/A.e.QRQRLWYEHIUEYLYW****.sgm</ModelPath>
        <TextureModelPath>https:/www.aliyundoc.com/sgm/A.e.QRQRLWYEHIUEYLYW****/model_texture/</TextureModelPath>
        <TexturePanoPath>https://www.aliyundoc.com/sgm/A.e.QRQRLWYEHIUEYLYW****/pano_texture/</TexturePanoPath>
    </Data>
</GetScenePreviewInfoResponse>

JSON格式

HTTP/1.1 200 OK
Content-Type:application/json

{
  "RequestId" : "4F882EA7-3A1D-0113-94E4-70162C4****",
  "Success" : false,
  "Message" : "xxxxx",
  "Data" : {
    "PanoList" : "一串转译数据",
    "ModelPath" : "https://www.aliyundoc.com/sgm/A.e.QRQRLWYEHIUEYLYW/A.e.QRQRLWYEHIUEYLYW****.sgm",
    "TextureModelPath" : "https:/www.aliyundoc.com/sgm/A.e.QRQRLWYEHIUEYLYW****/model_texture/",
    "TexturePanoPath" : "https://www.aliyundoc.com/sgm/A.e.QRQRLWYEHIUEYLYW****/pano_texture/"
  }
}

错误码

访问错误中心查看更多错误码。