Uploading models with CURL

upload

(Agroprom) #1

Greeting, I am new here and need some help. I have a site where I store 3d models in OSG format. I want to show users previews of this models, so I need to upload this models to sketchfab to show on my site via embedded tool . Do you have any guide how to do this? Where should I start? Is it possible to do this using php curl?


#2

Hello,

Yes, we have a Data API that let's you upload models programmatically:

https://sketchfab.com/developers


(Agroprom) #3

Thanks for fast reply. Do you have any example how to do this with php?
I found only this python example https://sketchfab.com/developers/data-api/v3/python


#4

You can find a PHP example from the (deprecated) V2 documentation here, so it should be fairly straightforward to update it for V3:

https://sketchfab.com/developers/data-api/v2/php