You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
78 lines
1.9 KiB
Python
78 lines
1.9 KiB
Python
|
14 hours ago
|
import requests
|
||
|
|
|
||
|
|
LOGIN='xpornium.unstopped516@passinbox.com'
|
||
|
|
KEY='cc68a4602270850382925da35aadab72'
|
||
|
|
VIDEO_CATEGORY=127
|
||
|
|
|
||
|
|
|
||
|
|
def get_file_info(file_id):
|
||
|
|
params = {
|
||
|
|
"login": LOGIN,
|
||
|
|
"key": KEY,
|
||
|
|
"id": file_id
|
||
|
|
}
|
||
|
|
url = "https://api.xpornium.net/fileinfo"
|
||
|
|
data = requests.get(url, params=params)
|
||
|
|
return data
|
||
|
|
|
||
|
|
def file_duplicate(file_id):
|
||
|
|
params = {'login':LOGIN,
|
||
|
|
'key':KEY,
|
||
|
|
'id':file_id
|
||
|
|
}
|
||
|
|
url = 'https://api.xpornium.net/fileduplicate'
|
||
|
|
data = requests.get(url, params=params)
|
||
|
|
return data
|
||
|
|
|
||
|
|
def edit_file(file_id):
|
||
|
|
params = {
|
||
|
|
'login':LOGIN,
|
||
|
|
'key':KEY,
|
||
|
|
'id':file_id
|
||
|
|
}
|
||
|
|
url = 'https://api.xpornium.net/fileedit'
|
||
|
|
data = requests.get(url, params=params)
|
||
|
|
return data
|
||
|
|
|
||
|
|
def file_delete(file_id):
|
||
|
|
params = {'login':LOGIN,
|
||
|
|
'key':KEY,
|
||
|
|
'id':file_id
|
||
|
|
}
|
||
|
|
url = 'https://api.xpornium.net/filedelete'
|
||
|
|
data = requests.get(url, params=params)
|
||
|
|
return data
|
||
|
|
def get_upload_url():
|
||
|
|
params = {'login':LOGIN,
|
||
|
|
'key':KEY,
|
||
|
|
}
|
||
|
|
url = 'https://api.xpornium.net/getupload'
|
||
|
|
data = requests.get(url, params=params)
|
||
|
|
return data
|
||
|
|
|
||
|
|
def upload_video(upload_url, embed_link):
|
||
|
|
params = {'login':LOGIN,
|
||
|
|
'key':KEY,
|
||
|
|
'cat':VIDEO_CATEGORY,
|
||
|
|
'file':embed_link
|
||
|
|
}
|
||
|
|
data = requests.post(upload_url, params=params)
|
||
|
|
return data
|
||
|
|
|
||
|
|
def get_upload_status(file_id):
|
||
|
|
params = {'login':LOGIN,
|
||
|
|
'key':KEY,
|
||
|
|
'id':file_id
|
||
|
|
}
|
||
|
|
url = 'https://api.xpornium.net/remotestatus'
|
||
|
|
data = requests.get(url, params=params)
|
||
|
|
return data
|
||
|
|
|
||
|
|
def remote_upload(embed_link):
|
||
|
|
params = {'login':LOGIN,
|
||
|
|
'key':KEY,
|
||
|
|
'url':embed_link
|
||
|
|
}
|
||
|
|
url = 'https://api.xpornium.net/remoteupload'
|
||
|
|
data = requests.get(url, params=params)
|
||
|
|
return data
|