Skip to content

Instantly share code, notes, and snippets.

@PadreZippo
PadreZippo / sketchfab-v2-upload.sh
Created May 6, 2020 18:58 — forked from fredericcambon/sketchfab-v2-upload.sh
Sketchfab - v2 api upload bash script
#!/bin/bash -e
##
# Sample script for uploading to sketchfab
# using the v2 api
##
##
# Uploading a model to Sketchfab is a two step process
#
@PadreZippo
PadreZippo / SketchfabUpload.cs
Created May 6, 2020 18:57 — forked from Kuranes/SketchfabUpload.cs
Sketchfab Upload using c# .net
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net;
using System.Security.Cryptography.X509Certificates;
using System.Text;
using System.Threading.Tasks;
namespace Test
@PadreZippo
PadreZippo / sketchfab-v2-oauth2.php
Created May 6, 2020 18:55
php sample for using sketchfab oauth2 api
<?php
$CLIENT_ID = "YOUR_CLIENT_ID"
$CLIENT_SECRET = "YOUR_CLIENT_SECRET"
$REDIRECT_URI = 'https://your-website.com/oauth2_redirect'
$AUTHORIZE_URL = "https://sketchfab.com/oauth2/authorize/"
$ACCESS_TOKEN_URL = "https://sketchfab.com/oauth2/token/"
// 1. Ask for an authorization code at
@PadreZippo
PadreZippo / README.md
Created May 6, 2020 18:54
Sketchfab - v2 api upload php script
@PadreZippo
PadreZippo / sketchfab-v2-upload-requests.py
Created May 6, 2020 18:52 — forked from pierreant-p/sketchfab-v2-upload-requests.py
Sketchfab - v2 api upload with requests library
##
# Sample script for uploading to sketchfab
# using the v2 api and the requests library
##
from time import sleep
# import the requests library
# http://docs.python-requests.org/en/latest
# pip install requests
import requests
<!DOCTYPE html>
<html>
<body>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="https://d2f25wgezub9nf.cloudfront.net/api/sketchfab-viewer-1.0.0.js"></script>
<script src="slider.js"></script>
<div align="center">
<iframe id="api-frame" height="480" width="640"></iframe>