-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathexample.php
More file actions
37 lines (29 loc) · 925 Bytes
/
example.php
File metadata and controls
37 lines (29 loc) · 925 Bytes
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
<?php
/**
* @example Blip-PHP
* @author Almog Baku - almog.baku@gmail.com
*/
//Include the blipPHP class
include_once("blipPHP.php");
/** Create blipPHP object. **/
$blipPHP = new blipPHP("username", "password");
/** Upload file **/
$respond = $blipPHP->upload("videos/blip_test_footage.mp4", "title", "description", "public");
print_r($respond);
/** Modify file **/
$respond = $blipPHP->modify(1234, "title", "description", "public");
print_r($respond);
/** replace file **/
$respond = $blipPHP->replaceFile(6424561, "videos/blip_test_footage.mp4");
print_r($respond);
/** Change file privacy **/
/** I believe this only works for pro accounts */
$respond = $blipPHP->setPrivacy(1234, 'private');
print_r($respond);
/** Delete **/
$respond = $blipPHP->delete(1234, "reason");
print_r($respond);
/** Getting information **/
$respond = $blipPHP->info(1234);
print_r($respond);
?>