import requests

# Your API credentials
login = "xpornium.unstopped516@passinbox.com"
key = "cc68a4602270850382925da35aadab72"

# The direct video URL (or embed link that points to the file)
video_url = "https://cmb-202.filestore.app/4a8d5985765a8/edcbaa88ef611/alternative_resolution_c7d5e3f0d6372_360p.mp4?temp_url_expires=1761075762&temp_url_id=18c469ed-f17b-4f12-b57a-f1d7107912b7&countable=true&filename=littlehapp+Tits+Show.mp4&inline=true&content_type=video%2Fmp4&concurrency=32&rate_limit=0&response_limit=31332000&ip_access_policy=everyone&tags=file_type%3Avideo_360p%2Caction%3Alimited_view%2Cproject%3Atz%2Cowner_id%3A1556%2Csite_owner_id%3A1556%2Csize%3A242565119%2Cfile_id%3Afed8abf418351%2Csite_id%3A21828%2Cuser_pc_id%3Acb106f428ab63%2Cis_partner_side%3Afalse%2Ccts%3A1760989362%2Cdevice_type%3Adesktop%2Cuser_os%3AWindows%2Cuser_file_id%3Afed8abf418351%2Cuser_id%3A&temp_url_issuer=5445f78a91de707b297e67ed&temp_url_sig=0b49ec49d60be6977faf16300224c11e1a548462eb8dcb13291aa3ad9b4731247995c10ade9cbcb928f098e6767c30677dfe91889f883c99f5f4e38ee8d01e6e&client_ip="

# Optional: title and category
title = "My test upload"
cat = 1  # 1 = Straight

# Construct the request URL
api_url = "https://api.xpornium.net/remoteupload"

parameters = {
    "login": login,
    "key": key,
    "url": video_url,
    "cat": cat,
    "title": title
}

# Send the GET request
response = requests.get(api_url, params=parameters)
data = response.json()

# Check result
if data["status"] == 200:
    upload_id = data["result"]["id"]
    print(f"✅ Remote upload started! Upload ID: {upload_id}")
else:
    print(f"❌ Error: {data['error']}")
