Преимущества файлообменника:
-
Обмен файлами возможен сразу, без регистрации
-
Скорость скачивания до 1 Гбит/сек.
-
Передача файлов размером до 100 Гб. Без регистрации до 200 Мб.
-
Хранение файлов 60 дней с момента последнего уникального скачивания
-
Суммарный объем и количество Ваших файлов неограничен
-
Скачивание файлов происходит с файлового сервера наиболее близко расположенного к Вам
-
Специальный Турбо доступ на повышенных скоростях
API linkchecker for developers
You need to make a POST-request on http://turbobit.net/linkchecker/csv to check links you want.
The URL's of files you check must be urlencoded and sent to the variable $links_to_check. If you send a few URLs it must be separated by a newline ("\n").
Our script turns back the result as csv (Comma Separated Values). The first parameter will be the URL of the checking file, second parametr is the status of it: 1 - if this file exists or 0 - if it wasn't found on turbobit.net servers.
Request examples:
- If you want to check one file status
<?php
// The URL you want to check
$links_to_check = "http://turbobit.net/a1a7bfpctcon.html";
// POST-request on
$url = "http://turbobit.net/linkchecker/csv";
// cURL Initialization
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL,$url); // Set URL
curl_setopt($ch, CURLOPT_RETURNTRANSFER,1); // Function will return the content of that cURL handle in the form of a string
curl_setopt($ch, CURLOPT_TIMEOUT, 3); // Time out
curl_setopt($ch, CURLOPT_POST, 1); // POST-method
curl_setopt($ch, CURLOPT_POSTFIELDS, "links_to_check=".urlencode($links_to_check)); // Adding new field with the file URL
$result = curl_exec($ch); // Making request
curl_close($ch);
// Processing the result
echo $result; // For example - displaying
?>
- If you want to check few files status
<?php
// The URL you want to check - up to 50 URLs
$links = array(
'http://turbobit.net/a1a7bfpctcon.html',
'http://turbobit.net/dv4aa8e0aley.html',
'http://turbobit.net/9wccbeipyi75.html'
);
$links_to_check = implode("\n", $links);
// POST-request on
$url = "http://turbobit.net/linkchecker/csv";
// cURL Initialization
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL,$url); // Set URL
curl_setopt($ch, CURLOPT_RETURNTRANSFER,1); // Function will return the content of that cURL handle in the form of a string
curl_setopt($ch, CURLOPT_TIMEOUT, 3); // Time out
curl_setopt($ch, CURLOPT_POST, 1); // POST-method
curl_setopt($ch, CURLOPT_POSTFIELDS, "links_to_check=".urlencode($links_to_check)); // Adding new field with the file URL
$result = curl_exec($ch); // Making request
curl_close($ch);
// Processing the result
echo $result; // For example - displaying
?>
|

Мы платим нашим пользователям!
Храните файлы у нас и получайте за это деньги.
Специальная партнерская программа для всех посетителей.
|