New microdisk API interface calling method

From , 3 Years ago, written in PHP, viewed 51 times.
URL https://pastebin.vip/view/8e987cf1
  1. include_once ('vdisk.ex.class.php');
  2.  
  3. $appkey = 1234567;
  4.  
  5. $appsecret = '123456739cc20556637a576ea1234567';
  6.  
  7. $username = 'username@gmail.com';
  8.  
  9. $password = '123456';
  10.  
  11.  
  12.  
  13. $vdisk = new vDisk ($appkey, $appsecret);
  14.  
  15.  
  16.  
  17. $vdisk->get_token ($username, $password);
  18.  
  19. $_SESSION['token'] = $vdisk->token;
  20.  
  21.  
  22.  
  23. $vdisk->keep_token();
  24.  
  25.  
  26.  
  27. $r = $vdisk->upload_share_file ('文件.txt', 0);
  28.  
  29. $r = $vdisk->get_list (0);
  30.  
  31. $r = $vdisk->get_quota();
  32.  
  33. $r = $vdisk->upload_with_md5 ('测试.pdf', '03d5717869bb075e3bad73b527fabc8a');
  34.  
  35. $r = $vdisk->get_file_info (219379);
  36.  
  37. $r = $vdisk->create_dir ('测试一下');
  38.  
  39. $r = $vdisk->delete_dir (35647);
  40.  
  41. $r = $vdisk->delete_file (123);
  42.  
  43. $r = $vdisk->copy_file (219379, 0, '副本.txt');
  44.  
  45. $r = $vdisk->move_file (219379, 0, '副本.txt');
  46.  
  47. $r = $vdisk->rename_file (219379, '新的新的新的.z');
  48.  
  49. $r = $vdisk->rename_dir (3929, '新的新的新的');
  50.  
  51. $r = $vdisk->move_dir (3929, "我的图片们", 0);
  52.  
  53. print_r ($r);
  54.  

Reply to "New microdisk API interface calling method"

Here you can reply to the paste above

captcha

https://burned.cc - Burn After Reading Website