Gets the file content from the generated URL of the Generate Download URL task.
Loading, Please Wait...
Gets the file content from the generated URL of the Generate Download URL task.
POST https://api.vertopal.com/v1/download/url/get
Authorization: Bearer [APP_TOKEN]
data={
"app": "[APP_ID]",
"connector": "[CONNECTOR]"
}
curl -L -X POST 'https://api.vertopal.com/v1/download/url/get' \
-H 'Authorization: Bearer [APP_TOKEN]' \
-F 'data={
"app": "[APP_ID]",
"connector": "[CONNECTOR]"
}'
vertopal api -v 1 download/url/get \
--app "[APP_ID]" \
--token "[APP_TOKEN]" \
-F data='{
"app": "%app-id%",
"connector": "[CONNECTOR]"
}'
from vertopal.api.credential import Credential
from vertopal.api.v1 import API
from vertopal.io import FileOutput
credentials = Credential("[APP_ID]", "[APP_TOKEN]")
sink = FileOutput("/path/to/output.jpg")
client = API(credential=credentials)
client.download_url_get(
writable=sink,
connector="[CONNECTOR]",
)
use Vertopal\API\Credential;
use Vertopal\API\V1;
require "vendor/autoload.php";
$credential = new Credential("[APP_ID]", "[APP_TOKEN]");
V1::downloadFile($credential, "[CONNECTOR]", "output.jpg")
The task has been executed successfully without any errors.