I am developing an app and I want to make it as easy as possible for users to embed SketchFab models.
My app is basicly a WYSIWYG markdown editor.
I want to allow users to copy and paste a short link into my editor to create something like the following:
I would then transform the Markdown into your embed HTML, getting all the details (model link, user et al) from your REST Api (or perhaps oEmbed) but I need a UID to make these request.
I currently have it working from YouTube for eg:
But the YouTube link above includes the ID, so if I do a substring I can get the ID.
Is it possible to get a model’s UID from a short-link?
Are short links auto-generated? If so how long do they last for?
Do you understand what I am doing here?