curl ssl certificates bank is outdated so you need to get one localy (l.14)
Mozilla certificates can be found here: http://curl.haxx.se/docs/caextract.html
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 -e | |
## | |
# Sample script for uploading to sketchfab | |
# using the v2 api | |
## | |
## | |
# Uploading a model to Sketchfab is a two step process | |
# |
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
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 |
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
<?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 |
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
## | |
# 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 |
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
<!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> |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title></title> | |
</head> | |
<body> | |
<!-- This iframe will always fill the parent width, but will remain at 16:9 aspect ratio --> | |
<div class="ratio-16-9"> | |
<iframe class="ratio-inner" src="https://sketchfab.com/models/{{model_id}}/embed"></iframe> |