使用autodesk forge api,首先我得到了一个access_token并创建了一个bucketkey,然后上传了一个stl文件,然后验证工作是否完成,然后得到了guid。使用 access_token、urn、guid 我发布了一个电话:
curl -X 'GET' -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsImtpZCI6Imp3dF9zeW1tZXRyaWNfa2V5In0.eyJjbGllbnRfaWQiOiJTRmxONGFFOTMzZ0dkU1FzbFZzbXk0TlZZTFNsSnc1dyIsImV4cCI6MTQ5OTQ3OTg4NCwic2NvcGUiOlsiZGF0YTpyZWFkIiwiZGF0YTp3cml0ZSIsImJ1Y2tldDpjcmVhdGUiLCJidWNrZXQ6cmVhZCJdLCJhdWQiOiJodHRwczovL2F1dG9kZXNrLmNvbS9hdWQvand0ZXhwNjAiLCJqdGkiOiJiWUE0TWRSc3VlazVnQlZsV3lwMmwydDN6SllvOXVnMjR4VEI2TmtZUld5YTdPT0NVOWU2c3JGcEk0UWRTWHFJIn0.ckLsWxfaUUa_zY2UDumUApxcDZR6xfCRE18GCHvIpPc' -v ' https://developer.api.autodesk.com/modelderivative/v2/designdata/dXJuOmFkc2sub2JqZWN0czpvcy5vYmplY3Q6Zm9yZ2UtamF2YS1zYW1wbGUtYXBwLXNmbG40YWU5MzNnZ2RzcXNsdnNteTRudnlsc2xqdzV3LzIwMTcwNzA4MDkxMTU2NTkwMjgzMC5zdGw/metadata/a1f8def6-4c68-4bac-8c88 -d14353252d67/属性'
正如欧特克教程中描述的那样:我应该得到像体积和面积这样的“质量属性”,但我没有得到这两个:
< HTTP/1.1 200 OK < Access-Control-Allow-Credentials: true < Access-Control-Allow-Origin: * < Content-Type: application/json; charset=utf-8 < 日期:2017 年 7 月 8 日星期六 01:15:18 GMT < 服务器:Apigee 路由器 < x-ads-app-identifier:platform-viewing-2017.03.08.15.bf43c23-production < x-ads-duration : 181 ms < x-ads-startup-time: Wed Jun 21 05:40:27 UTC 2017 < Content-Length: 387 < Connection: keep-alive < * Connection #0 to host developer.api.autodesk.com 保持不变{"data":{"type":"properties", "collection":[ {"objectid":1,"name":"201707080911565902830", "properties":{"Name":"201707080911565902830"}}, { “objectid”:2,“名称”:“201707080911565902830”,“
感谢任何帮助,感谢 stackoverflow.com。