Files
quasar-app/panel_client.py
2026-10-06 23:43:23 -07:00

33 lines
857 B
Python

"""Supernova — SMM reseller panel client.
Wraps the upstream SMM panel API (PerfectPanel-style v2).
Rate is per-1000 units.
"""
import requests
BASE = "https://therealblackmarket.net/api/v2"
class PanelClient:
def __init__(self, api_key):
self.key = api_key
def _call(self, action, **params):
data = {"key": self.key, "action": action}
data.update(params)
r = requests.post(BASE, data=data, timeout=25)
r.raise_for_status()
return r.json()
def balance(self):
return self._call("balance")
def services(self):
return self._call("services")
def place_order(self, service_id, link, quantity):
return self._call("add", service=service_id, link=link, quantity=quantity)
def order_status(self, order_id):
return self._call("status", order=order_id)