curl -H "Content-Type: application/json" https://datasqueezer.com/nexus/createTask -d '{ "token": "__API_TOKEN__", "service": "optimizeimg", "data": "__IMAGE_DATA__" }'
NÁZEV POPIS POVINNÝ PARAMETR __IMAGE_DATA__ Data obrázku v base64
ano
import requests
import jsonendpoint = 'https://datasqueezer.com/nexus/createTask'
data = {
'token': '__API_TOKEN__',
'service': 'optimizeimg',
'data': '__IMAGE_DATA__',
}response = requests.post(endpoint, data=json.dumps(data))
NÁZEV | POPIS | POVINNÝ PARAMETR |
__IMAGE_DATA__ | Data obrázku v base64 | ano |
$curlHandle=curl_init("https://datasqueezer.com/nexus/createTask");
$data=[
'token'=>'__TOKEN__',
'service'=>'optimizeimg',
'data'=>'__IMAGE_DATA__'
];curl_setopt($curlHandle, CURLOPT_CUSTOMREQUEST, "POST");
curl_setopt($curlHandle, CURLOPT_POSTFIELDS, json_encode($data));
curl_setopt($curlHandle, CURLOPT_RETURNTRANSFER, true);
curl_setopt($curlHandle, CURLOPT_FOLLOWLOCATION, true);$response=curl_exec($curlHandle);
$error_msg=curl_error($curlHandle);
curl_close($curlHandle);
NÁZEV | POPIS | POVINNÝ PARAMETR |
__IMAGE_DATA__ | Data obrázku v base64 | ano |