Video download project.

VideoDownload

videoDL


/v2/networks

Usage and SDK Samples

curl -X GET "https://api.apieco.ir/video-dl/v2/networks?url=&p="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.VideoDownloadApi;

import java.io.File;
import java.util.*;

public class VideoDownloadApiExample {

    public static void main(String[] args) {
        
        VideoDownloadApi apiInstance = new VideoDownloadApi();
        String apiecoKey = apiecoKey_example; // String | 
        String url = url_example; // String | The value should be the percent-encoded URL of the video to download. The response will be a list of URLS with the corresponding quality name, format, size and dimension.
        String p = p_example; // String | Supports the following values:
websites: returns a shortened list of supported websites.
allwebsites:    returns a full list of supported websites.
        try {
            'String' result = apiInstance.videoDL(apiecoKey, url, p);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling VideoDownloadApi#videoDL");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.VideoDownloadApi;

public class VideoDownloadApiExample {

    public static void main(String[] args) {
        VideoDownloadApi apiInstance = new VideoDownloadApi();
        String apiecoKey = apiecoKey_example; // String | 
        String url = url_example; // String | The value should be the percent-encoded URL of the video to download. The response will be a list of URLS with the corresponding quality name, format, size and dimension.
        String p = p_example; // String | Supports the following values:
websites: returns a shortened list of supported websites.
allwebsites:    returns a full list of supported websites.
        try {
            'String' result = apiInstance.videoDL(apiecoKey, url, p);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling VideoDownloadApi#videoDL");
            e.printStackTrace();
        }
    }
}
String *apiecoKey = apiecoKey_example; // 
String *url = url_example; // The value should be the percent-encoded URL of the video to download. The response will be a list of URLS with the corresponding quality name, format, size and dimension.
String *p = p_example; // Supports the following values:
websites: returns a shortened list of supported websites.
allwebsites:    returns a full list of supported websites. (optional)

VideoDownloadApi *apiInstance = [[VideoDownloadApi alloc] init];

// 
[apiInstance videoDLWith:apiecoKey
    url:url
    p:p
              completionHandler: ^('String' output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var VideoDownloadProject = require('video_download_project');

var api = new VideoDownloadProject.VideoDownloadApi()

var apiecoKey = apiecoKey_example; // {String} 

var url = url_example; // {String} The value should be the percent-encoded URL of the video to download. The response will be a list of URLS with the corresponding quality name, format, size and dimension.

var opts = { 
  'p': p_example // {String} Supports the following values:
websites: returns a shortened list of supported websites.
allwebsites:    returns a full list of supported websites.
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.videoDL(apiecoKey, url, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class videoDLExample
    {
        public void main()
        {
            
            var apiInstance = new VideoDownloadApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var url = url_example;  // String | The value should be the percent-encoded URL of the video to download. The response will be a list of URLS with the corresponding quality name, format, size and dimension.
            var p = p_example;  // String | Supports the following values:
websites: returns a shortened list of supported websites.
allwebsites:    returns a full list of supported websites. (optional) 

            try
            {
                // 
                'String' result = apiInstance.videoDL(apiecoKey, url, p);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling VideoDownloadApi.videoDL: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\VideoDownloadApi();
$apiecoKey = apiecoKey_example; // String | 
$url = url_example; // String | The value should be the percent-encoded URL of the video to download. The response will be a list of URLS with the corresponding quality name, format, size and dimension.
$p = p_example; // String | Supports the following values:
websites: returns a shortened list of supported websites.
allwebsites:    returns a full list of supported websites.

try {
    $result = $api_instance->videoDL($apiecoKey, $url, $p);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling VideoDownloadApi->videoDL: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::VideoDownloadApi;

my $api_instance = WWW::SwaggerClient::VideoDownloadApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $url = url_example; # String | The value should be the percent-encoded URL of the video to download. The response will be a list of URLS with the corresponding quality name, format, size and dimension.
my $p = p_example; # String | Supports the following values:
websites: returns a shortened list of supported websites.
allwebsites:    returns a full list of supported websites.

eval { 
    my $result = $api_instance->videoDL(apiecoKey => $apiecoKey, url => $url, p => $p);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling VideoDownloadApi->videoDL: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.VideoDownloadApi()
apiecoKey = apiecoKey_example # String | 
url = url_example # String | The value should be the percent-encoded URL of the video to download. The response will be a list of URLS with the corresponding quality name, format, size and dimension.
p = p_example # String | Supports the following values:
websites: returns a shortened list of supported websites.
allwebsites:    returns a full list of supported websites. (optional)

try: 
    # 
    api_response = api_instance.video_dl(apiecoKey, url, p=p)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling VideoDownloadApi->videoDL: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
Required
Query parameters
Name Description
url*
String
The value should be the percent-encoded URL of the video to download. The response will be a list of URLS with the corresponding quality name, format, size and dimension.
Required
p
String
Supports the following values: websites: returns a shortened list of supported websites. allwebsites: returns a full list of supported websites.

Responses

Status: 200 - successful