forked from AlmogBaku/blip-php
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexample.php
More file actions
executable file
·37 lines (33 loc) · 1005 Bytes
/
example.php
File metadata and controls
executable file
·37 lines (33 loc) · 1005 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("thecharismproject", "char1sm");
/** 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(6430256, "reason");
print_r($respond);
//
///** Getting information **/
//$respond = $blipPHP->info($respond->payload->asset->item_id);
//print_r($respond);
?>