Google Drive api (PHP) the apiDriveService class is missing - php

I just downloaded the latest Google API PHP client library (0.5.0) there:
http://code.google.com/p/google-api-php-client/downloads/detail?name=google-api-php-client-0.5.0.tar.gz&can=2&q=
And the class apiDriveService is not in the code and the file is missing in contrib where i can find it?
The link is mentioned on the Google Drive SDK documentation there : https://developers.google.com/drive/downloads
So i don't understand
Thanks!

You can find it here:
http://code.google.com/p/google-api-php-client/source/browse/trunk/src/contrib/apiDriveService.php
https://code.google.com/p/google-drive-sdk-samples/source/browse/#hg%2Fphp%2Flibs%2Fgd-v2-php%2Fcontrib

Related

How Can i use DocuSign in Laravel 6.*

I am trying to use DocuSign for the first time and followed this documentation. I have installed it in laravel 6 and my requirement is to generate a pdf file in my code on button click then it will docusign Auth user then it will be send to signer and he will sign it by docusign it. But i am not able to understand its because no enough info provided.
Unfortunately this is not an official DocuSign code wrapper and you will need to contact them directly for support. You can download and try our official DocuSign code example . DS library installation is covered in the readme file and you can use the same approach to install and use it in Laravel. The code example contains over 30 different scenarios.
A new PHP SDK Supporting Laravel is in progress and should be released soon.
The one you mentioned was built by Eric Tucker and you an ask him about it on the GitHub pages.
I'll update this answer when we have the new PHP SDK.

PHP: Upgrade Google drive API from V1 to V2 or newer

I am using Google API client 2.0 and want to upgrade Google drive API from V1 to V2 to newer. I not found any straight forward way to upgrade version. Only the change log from google developer site found. Please tell me upgrade process guideline or step by step process.
Thanks in advance.
I am not sure i understand your question. Are you using the V2 of the Google drive api and now you want to upgrade to Google Drive V3? There are a lot of changes your going to have to make I don't think there are any guides on how to do it. Assuming you are using the Google PHP client library your best option will be to download the library for v3 and start fixing your errors one at a time. Like i said there are a number of changes in the library mainly title vs name. That and the library doesn't by default return all the fields your going to have to start using the field parameter.
When you download the library with composer you will be downloading the latest code for use with the Drive API v3. The Authencation code you have been using probably hasnt changed. All of the methods you use in drive probably have. Drive.php
Again there is no upgrade function for this its a completely different API. There is no way to upgrade it. You download the new class using composer and change your code as needed

Google PHP API too many files

I am trying to create a plugin for WordPress using the Google Analytics Reporting API v4 https://developers.google.com/analytics/devguides/reporting/core/v4/quickstart/service-php
We need to load the Google API PHP Client Library
require_once __DIR__ . '/vendor/autoload.php';
I have downloaded the latest release of Google API https://github.com/google/google-api-php-client/releases but the vendor folder contains more than 7000 files!
My question is if I am doing something wrong here or I am missing something? Inside the vendor folder I can see all the Google services. How I can use the Google API with less files in a WordPress plugin? I will appreciate any help to the right direction.
By default the Google/Service directory contains all the code needed to access every Google Discovery services API. You don't technically need all of the files. You can safely delete everything under Google/Service that you don't need.
Dont delete files from any of the other directories. Just remove the unneeded APIs.

Yelp API v3 PHP library or tool

Please advice, is there some unofficial php library for new Yelp API v3 (for now only v2 php library exist on official github page - https://github.com/Yelp/yelp-api/tree/master/v2/php).
because I didn't find the library, I have rebuild one of existing and make it as symfony3 bundle - https://github.com/compworkmail/yelp-v3-php-API-symfony. Enjoy!

oAuth with PHP (for google api)

How to use oAuth with PHP ? I can't install oauth class with pecl because I'm using share hosting.
I found
http://code.google.com/p/oauth-php/
but there is no example for client. I want to use oauth for Google API.
Here is your example: http://code.google.com/p/oauth-php/wiki/ConsumerHowTo
You can also read through http://code.google.com/apis/gdata/docs/auth/oauth.html to find out the specifics on Google.
I got it and I develop my own client library base on http://googlecodesamples.com/oauth_playground/ (svn sourcecode)
There are plenty of libraries available for PHP. Check out the list on http://oauth.net/code/
You should probably have a look at:
http://www.dhruvb.com/blog/content/tutorial-using-oauth-google-plus-api
Also, the code samples are present at:
https://github.com/dhruvbaldawa/Tutorials/blob/master/google+/google_plus.php
I guess you mean this offical library:
Offical API Library

Categories