Skip to content

Instantly share code, notes, and snippets.

@cedricpinson
Created December 7, 2012 20:25
Show Gist options
  • Save cedricpinson/4236248 to your computer and use it in GitHub Desktop.
Save cedricpinson/4236248 to your computer and use it in GitHub Desktop.
bash/curl upload model to sketchfab
#!/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