承接 patriceckhart/google-drive-api 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

patriceckhart/google-drive-api

Composer 安装命令:

composer require patriceckhart/google-drive-api

包简介

Google Drive Api client

README 文档

README

Google Drive Api client

Installation

The Google Drive Api client is listed on packagist (https://packagist.org/packages/patriceckhart/google-drive-api) - therefore you don't have to include the package in your "repositories" entry any more.

Just run:

composer require patriceckhart/google-drive-api

Usage

<?php

use PatricEckhart\GoogleDriveClient;

class GoogleDrive
{

    /**
     * List files
     *
     * @return array
     */
    public function listFiles():array
    {
        $client = new GoogleDriveClient(
            '/data/neos/Data/Security/google/client_secret_768913446618-aax0u2k92nh350lij57ts58a0igm1a82.apps.googleusercontent.com.json', // clientIdPathAndFileName
            'https://redirecturi.com', // redirectUri
            '2//13pMQO5SH5KXaCgYIARAAAERSNwF-L9IrXHD7F1SLRD0r2xJ8PicU!2dCtoZxmdb6dGCzl5UQVCFArqstTaIoUuTW7MjnEAzyPIg', // refreshToken
            'https://www.googleapis.com/auth/drive', // scope
            '1K__pKH52TK3ZxeWSR8O-XOgYad31_xtt', // startingPoint (Folder ID)
            20 // pageSize
        );
        return $client->list();
    }

}

Response

The response returns the full folder and file structure starting from the starting point.

string "id" => string
string "name" => string
string "mimeType" => string
string "kind" => string
string "parent" => string
string "webViewLink" => string
string "webContentLink" => string
string "publicFile"  => string

Author

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: Unknown
  • 更新时间: 2022-06-08

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固