Class vDisk
微盘API
微盘Open API是为第三方开发者提供的一套REST接口,通过该接口任何第三方的公司和个人都可以创建基于微盘的应用.更多相关说明 .
使用方法:
include_once('vdisk.ex.class.php'); $appkey = 1234567; $appsecret = '123456739cc20556637a576ea1234567'; $username = 'username@gmail.com'; $password = '123456'; $vdisk = new vDisk($appkey, $appsecret); $vdisk->get_token($username, $password); $_SESSION['token'] = $vdisk->token; $vdisk->keep_token(); $r = $vdisk->upload_share_file('文件.txt', 0); $r = $vdisk->get_list(0); $r = $vdisk->get_quota(); $r = $vdisk->upload_with_md5('测试.pdf', '03d5717869bb075e3bad73b527fabc8a'); $r = $vdisk->get_file_info(219379); $r = $vdisk->create_dir('测试一下'); $r = $vdisk->delete_dir(35647); $r = $vdisk->delete_file(123); $r = $vdisk->copy_file(219379, 0, '副本.txt'); $r = $vdisk->move_file(219379, 0, '副本.txt'); $r = $vdisk->rename_file(219379, '新的新的新的.z'); $r = $vdisk->rename_dir(3929, '新的新的新的'); $r = $vdisk->move_dir(3929, "我的图片们", 0); print_r($r);
Package: sae
Author: Bruce Chen
Version: $Id$
Link: http://vdisk.me/api
Located at vdisk.ex.class.php
Author: Bruce Chen
Version: $Id$
Link: http://vdisk.me/api
Located at vdisk.ex.class.php
public
|
|
public
array
|
|
public
array
|
|
public
array
|
|
public
array
|
|
public
array
|
|
public
array
|
|
public
array
|
|
public
array
|
|
public
array
|
|
public
array
|
|
public
array
|
|
public
array
|
|
public
array
|
|
public
array
|
|
public
array
|
|
public
array
|
|
public
array
|
|
public
array
|
|
public
array
|
|
public
array
|
|
public
array
|
|
public
array
|
|
public
array
|
|
public
array
|
|
public
array
|
|
public
array
|
|
public
|
|
public
|