.
How To Set Up Google APIs Client Library for PHP
1) Read instructions at Google Web Site
2) Clone The Git
Install Git Desktop
Login into GitHub.com using your credential.
Select Clone.../Open in Desktop
3) Install the Google Client Library
Run the following command to install the library using composer:
php composer.phar require google/apiclient:^2.0
|
*assuming you have composer.phar in the same folder.
4) Run the examples .
Browse the parent of the “examples” folder.
Type the server run command
php -S localhost:8000 -t examples
|
5) Try the examples.
Before running the scripts, you have to acquire API Keys, https://developers.google.com/api-client-library/php/auth/api-keys
Download:
google-api-php-client (cached)
.
No comments:
Post a Comment