divinityfound/googledrivetree 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

divinityfound/googledrivetree

Composer 安装命令:

composer require divinityfound/googledrivetree

包简介

Compiles into an array a Google Drive Folder into a treelike structure.

README 文档

README

##Google Drive Tree ###Google Drive to an Array Tree

This solution was developed to make it easier for developers to figure out the entirety of the Google Drive file map for public or private use.

###Google Setup

  1. Visit https://console.developers.google.com/project
  2. Create a project.
  3. On the menu on the left, expand "APIs & auth", select APIs
  4. Select under Google Apps APIs, Drive API
  5. Enable API
  6. On the menu on the left under "APIs & auth", select Credentials
  7. Under OAuth, click "Create new Client ID"
  8. Click Service Account, select P12 Key
  9. Store your P12 Key somewhere safe
  10. Visit https://admin.google.com
  11. Click "Security". It may be under Show More.
  12. Click Show More when in Security, click Advanced Settings.
  13. Click Manage "API client access"
  14. Insert Service Account's Client Id under Client Name, insert into API Scope "https://www.googleapis.com/auth/drive"
  15. Your API is now set up!

###Code

	require_once(__DIR__ . '/../vendor/autoload.php');

	$params = array();
	$params['client_id']            = 'xyz.apps.googleusercontent.com';
	$params['service_account_name'] = 'xyz@developer.gserviceaccount.com';
	$params['key']                  = 'your_directory.P12';
	$params['sub']                  = 'youremail@example.com';
	$params['drive']				= 'drive_folder';

	$data = new \Divinityfound\GoogleDriveTree\Processor($params);

	echo '<pre>';
	print_r($data->file_tree);
	echo '</pre>';
	exit;

统计信息

  • 总下载量: 131
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 3
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: Unknown
  • 更新时间: 2015-08-03

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固