Skip to content

Instantly share code, notes, and snippets.

@cedricpinson
Created May 3, 2012 13:20
Show Gist options
  • Save cedricpinson/2585560 to your computer and use it in GitHub Desktop.
Save cedricpinson/2585560 to your computer and use it in GitHub Desktop.
sketchfab api
#!/bin/bash
path="./"
filename="Ellly.blend"
file=${path}${filename}
description="Test of the api with a simple model"
token_api="ff00ff"
title="test upload model"
tags="test blender character"
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