-
Notifications
You must be signed in to change notification settings - Fork 1
/
test.php
46 lines (36 loc) · 1.33 KB
/
test.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<?php
require_once "vendor/autoload.php";
$client = new \GuzzleHttp\Client();
$api = new \Vudeo\Streaming\Api($client);
// Your own api key from https://vudeo.io/?op=my_account
$api->set_api_key("ENTER_API_KEY_HERE");
// full url https://vudeo.io/aqgypxct9pmq.html
$direct_link = $api->get_direct_link("aqgypxct9pmq"); // file id
//echo json_encode($direct_link);
$account_info = $api->get_account_info();
//echo json_encode($account_info);
$account_stats = $api->get_account_stats();
//echo json_encode($account_stats);
$account_stats_last = $api->get_account_stats_last("7");
//echo json_encode($account_stats_last);
/*
VIDEO UPLOADER
URL TO UPLOADING
*/
// example url https://my_server.io/video.mp4
$upload = $api->upload("VIDEO_URL_TO_UPLOADING_HERE");
//echo json_encode($upload);
// GET UPLOADING SERVER
$upload_server = $api->get_uploading_server();
//echo json_encode($upload_server);
// full url https://vudeo.io/aqgypxct9pmq.html
$get_file_info = $api->get_file_info("aqgypxct9pmq"); // file id
//echo json_encode($get_file_info);
//GET ALL JSON DATA
$get_file_list = $api->get_file_list();
//echo json_encode($get_file_list);
// Group Folders
// example https://vudeo.io/?op=my_files&fld_id=772
$get_folder_list = $api->get_folder_list("772"); // folder id
//echo json_encode($get_folder_list);
?>