Created
December 7, 2012 20:25
-
-
Save cedricpinson/4236248 to your computer and use it in GitHub Desktop.
bash/curl upload model to sketchfab
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
path="./" | |
filename="Ellly.blend" | |
file=${path}${filename} | |
description="Test of the api with a simple model" | |
token_api="ff00ff" | |
title="Uber Glasses" | |
tags="test collada glasses" | |
private=1 | |
password="Tr0b4dor&3" | |
curl -k -X POST -F "fileModel=@${file}" -F "filenameModel=${filename}" -F "title=${title}" -F "description=${description}" -F "tags=${tags}" -F "private=${private}" -F "password=${password}" -F "token=${token_api}" https://api.sketchfab.com/v1/models |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment