Skip to content

Instantly share code, notes, and snippets.

View MirrorAce's full-sized avatar

MirrorAce MirrorAce

View GitHub Profile
@MirrorAce
MirrorAce / mirrorace_upload_example.py
Created June 28, 2021 07:51
MirrorAce: Example Code that helps to upload files to MirrorAce.com via API with Python
"""
Example script to upload files to MirrorAce via api. */
Detailed information on API available at https://mirrorace.org/api. */
Author: MirrorAce */
URL: https://mirrorace.org */
"""
from requests import Session
import mimetypes
from pathlib import Path
@MirrorAce
MirrorAce / mirrorace_upload_example.php
Last active November 28, 2019 21:20
MirrorAce: Example Code that helps to upload files to MirrorAce.com via API
<?php
/* Example script to upload files to MirrorAce.com via api. */
/* Detailed information on API available at https://mirrorace.com/api. */
/* Author: MirrorAce */
/* URL: https://mirrorace.com */
//vars
$api_key = '0123456789abcdefabcdefabcdefabcd';
$api_token = '0123456789abcdefabcdefabcdefabcd';