I’m trying to retrieve properties from viewer forge autodesk but it doesn’t work

  Kiến thức lập trình

I’m trying to retrieve properties from my viewer via the model derivate api but I always get a 400 error. Here’s my request:
const response = await axios.get(
https://developer.api.autodesk.com/modelderivative/v2/designdata/${encodedUrn}/metadata/febf6635-9f7e-5505-8c33-175d630fbea4/properties,
{

    headers: {
      'Authorization': `Bearer ${token2}`
    }
  }
);

I’ve tried with several tokens, several urns (encoded in base 64 and without), putting a dbID, GUID, I must be forgetting some but I think I’ve tried everything and it still doesn’t work, I can’t get any property from my viewer.

New contributor

Yohann Carlier is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

LEAVE A COMMENT