duancaiyi7567 2013-05-15 10:03
浏览 22

使用Google云端硬盘服务的特定文件(在SDK上)

Good day, I am currently a noob in Google Drive SDK and I am planning to integrate it in my webapp. I checked out google-api-php-client from their svn and I noticed it's a bit large to include it all in my project (it's 5.6 mb). Excluding all but the src folder, it's still large for me (3.9 mb). I want to include only the files needed for the Google Drive integration to work. But I do not know what files do these two (Google_Client.php and Google_DriveService.php as in Google Developers' sample) depend on.

Can you guys pinpoint what files (that are not related to Drive) I can safely delete? I really want the total file size to be as small as possible 'cause I believe that it can affect the project's loading time.

Thanks(and pardon my English)! :)

  • 写回答

1条回答 默认 最新

  • dongliqin6939 2013-05-16 15:36
    关注

    Only checkout the library source code and remove all services other than Drive and Oauth2:

    svn checkout http://google-api-php-client.googlecode.com/svn/trunk/src
    

    Remove all files under src/contrib but preserve the following:

    • src/contrib/Google_DriveService.php
    • src/contrib/Google_Oauth2Service.php
    评论

报告相同问题?

悬赏问题

  • ¥100 嵌入式系统基于PIC16F882和热敏电阻的数字温度计
  • ¥15 cmd cl 0x000007b
  • ¥20 BAPI_PR_CHANGE how to add account assignment information for service line
  • ¥500 火焰左右视图、视差(基于双目相机)
  • ¥100 set_link_state
  • ¥15 虚幻5 UE美术毛发渲染
  • ¥15 CVRP 图论 物流运输优化
  • ¥15 Tableau online 嵌入ppt失败
  • ¥100 支付宝网页转账系统不识别账号
  • ¥15 基于单片机的靶位控制系统