π¨βπ»Send task to Report Panel
In this example, we sending task to Report Panel and getting response.
Python
import requests
headers = {
'Authorization': 'API_KEY' ## your api key (string).
}
data = {
'steamid64': 76561198085278322 ## steamid64 of target
}
r = requests.post('https://saturn.alterra.lol/api/send', params=data, headers=headers)
if r.status_code == 200:
try:
data = r.json()
success = data.get('success')
taskid = data.get('taskid')
print(f'isSuccess: {success}, taskid: {taskid}')
except Exception as e:
print(f'error {e}')
else:
print(f"seems like request failed: {r.status_code}. Response from server: {r.content}")Node.js
Last updated