2017 © Pedro PelΓ‘ez
 

library google-api-php-client-multi

Google APIs Client Wrapper for PHP with multi keys (for free using)

image

igorbelikov/google-api-php-client-multi

Google APIs Client Wrapper for PHP with multi keys (for free using)

  • Tuesday, November 22, 2016
  • by igorbelikov
  • Repository
  • 1 Watchers
  • 13 Stars
  • 309 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 3 Forks
  • 0 Open issues
  • 2 Versions
  • 2 % Grown

The README.md

Google APIs Client Wrapper For PHP (free unlimited requests for google services)

Google APIs Client Wrapper for PHP with multi keys (for free using), (*1)

This extension has been developed to overcome the maximum number of requests to Google API services free of charge., (*2)

For example service Custom Search Engine (https://cse.google.com/cse/all). There are free of charge can only be made 100 requests per day ($ 5 - 1000 requests, etc.), which is very small, so it is now possible to create multiple applications and take each token, with the identifier of the application remains a CSE, that is, in other words - we can use every 100 requests from each application we have created. We simply create an application and take with them the ID., (*3)

And this method can be applied to any API, provided to reduce constraints., (*4)

Example:, (*5)


// Custom Search Engine Example // https://console.developers.google.com/project // In total count all tokens eq 300 FREE requests/day! Ha-Ha! $keys = array( 'YOUR_DEVELOPER_KEY_1', // app-1, for one project available 100 free requests 'YOUR_DEVELOPER_KEY_2', // app-2 + 100 requests 'YOUR_DEVELOPER_KEY_3', // app-3 + 100 requests // ... ); $client = new Google_Client_Multi(); $client->setKeys($keys)->prepareMulti(); $service = new Google_Service_Customsearch($client); try { $cse = $service->cse->listCse("weather", array('cx' => 'YOUR_CUSTOM_SEARCH_ENGINE_ID')); var_dump($cse->getItems()); } catch(Google_Service_Exception $e) { echo $e->getMessage(); } catch(Google_Client_Multi_Exception $e) { echo $e->getMessage(); }

Install/Autoload

Composer:, (*6)

This version of google-api-php-client-multi using Composer. The first step to use google-api-php-client-multi is to download composer:, (*7)

$ curl -s http://getcomposer.org/installer | php

Now we can use autoloader from Composer by:, (*8)

php composer.phar require 'igorbelikov/google-api-php-client-multi:dev-master'

or, (*9)

{
    "require": {
        "igorbelikov/google-api-php-client-multi": "dev-master"
    }
}

RU

Π­Ρ‚ΠΎ Ρ€Π°ΡΡˆΠΈΡ€Π΅Π½ΠΈΠ΅ Π±Ρ‹Π»ΠΎ Ρ€Π°Π·Ρ€Π°Π±ΠΎΡ‚Π°Π½ΠΎ для прСодолСния максимального количСства запросов Π² сСрвисах Google API Π½Π° бСсплатной основС., (*10)

НапримСр сСрвис Custom Search Engine (https://cse.google.com/cse/all). Π’Π°ΠΌ Π½Π° бСсплатной основС ΠΌΠΎΠΆΠ½ΠΎ Π΄Π΅Π»Π°Ρ‚ΡŒ Ρ‚ΠΎΠ»ΡŒΠΊΠΎ 100 запросов Π² дСнь (5$ - 1000 запросов ΠΈ Ρ‚.Π΄.), Ρ‡Ρ‚ΠΎ ΠΎΡ‡Π΅Π½ΡŒ ΠΌΠ°Π»ΠΎ, поэтому Ρ‚Π΅ΠΏΠ΅Ρ€ΡŒ Π΅ΡΡ‚ΡŒ Π²ΠΎΠ·ΠΌΠΎΠΆΠ½ΠΎΡΡ‚ΡŒ ΡΠΎΠ·Π΄Π°Ρ‚ΡŒ нСсколько ΠΏΡ€ΠΈΠ»ΠΎΠΆΠ΅Π½ΠΈΠΉ ΠΈ Π²Π·ΡΡ‚ΡŒ Ρƒ ΠΊΠ°ΠΆΠ΄ΠΎΠ³ΠΎ Ρ‚ΠΎΠΊΠ΅Π½, ΠΏΡ€ΠΈ этом ΠΈΠ΄Π΅Π½Ρ‚ΠΈΡ„ΠΈΠΊΠ°Ρ‚ΠΎΡ€ самого CSE ΠΏΡ€ΠΈΠ»ΠΎΠΆΠ΅Π½ΠΈΠ΅ остаСтся ΠΎΠ΄ΠΈΠ½, Ρ‚ΠΎ Π΅ΡΡ‚ΡŒ Π΄Ρ€ΡƒΠ³ΠΈΠΌΠΈ словами - ΠΌΡ‹ ΠΌΠΎΠΆΠ΅ΠΌ ΠΈΡΠΏΠΎΠ»ΡŒΠ·ΠΎΠ²Π°Ρ‚ΡŒ ΠΊΠ°ΠΆΠ΄Ρ‹Π΅ 100 запросов ΠΈΠ· ΠΊΠ°ΠΆΠ΄ΠΎΠ³ΠΎ созданного Π½Π°ΠΌΠΈ прилоТСния. Нам достаточно просто ΡΠΎΠ·Π΄Π°Π²Π°Ρ‚ΡŒ прилоТСния ΠΈ Π±Ρ€Π°Ρ‚ΡŒ с Π½ΠΈΡ… ΠΈΠ΄Π΅Π½Ρ‚ΠΈΡ„ΠΈΠΊΠ°Ρ‚ΠΎΡ€., (*11)

И этот способ ΠΌΠΎΠΆΠ½ΠΎ ΠΏΡ€ΠΈΠΌΠ΅Π½ΠΈΡ‚ΡŒ ΠΊ Π»ΡŽΠ±ΠΎΠΌΡƒ API, Ρ‡Ρ‚ΠΎΠ±Ρ‹ ΡƒΠΌΠ΅Π½ΡŒΡˆΠΈΡ‚ΡŒ прСдоставлСнныС ограничСния., (*12)

The Versions

22/11 2016

dev-master

9999999-dev http://ibelik.com

Google APIs Client Wrapper for PHP with multi keys (for free using)

  Sources   Download

The Requires

  • php >=5.2.1

 

The Development Requires

free google api

22/11 2016

dev-fix-1

dev-fix-1 http://ibelik.com

Google APIs Client Wrapper for PHP with multi keys (for free using)

  Sources   Download

The Requires

  • php >=5.2.1

 

The Development Requires

free google api