Skip to content

Instantly share code, notes, and snippets.

@sbouafif
Created September 17, 2012 12:14
Show Gist options
  • Save sbouafif/3736965 to your computer and use it in GitHub Desktop.
Save sbouafif/3736965 to your computer and use it in GitHub Desktop.
Sketchfab API - Bash/Curl
#!/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