mzubairsaleem / gtranslate-api-php

Automatically exported from code.google.com/p/gtranslate-api-php
GNU General Public License v3.0
0 stars 0 forks source link

Feature request: Integrate API key into the parameters #1

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Add a private parameter to store the API key, then a public function to set
the API key:

public function setAPIKey($key) {
  if (!empty($key)) {
    $this->APIKey = $key;
  }
}

Then add it to __call() as an optional parameter and add it to the URL as
an extra parameter as well (&key=$this->APIKey)

Original issue reported on code.google.com by ywarn...@gmail.com on 26 Jul 2009 at 3:32

GoogleCodeExporter commented 8 years ago
Support enabled on the GTranslate class

Original comment by josedasilva on 19 Aug 2009 at 12:09