Pedro Chagas
asked on
Php - the new google translation API
Hi E's, recently google changes the translation API, now we have to pay to have access to that API. The payment not was the problem, I think is $20 to 1 million characters. My problem is the new version of the API is very poor in php examples.
I have now the key that google gives me, but I don't know what is the code for substitute the example in snippet code:
I need a simple example for substitute the old code, can you help?
The best regards, JC
I have now the key that google gives me, but I don't know what is the code for substitute the example in snippet code:
require("GTranslate.php");
try{
$gt = new Gtranslate;
echo "Translating [Hello World] from English to German =>".$gt->english_to_german("hello world")."";
} catch (GTranslateException $ge) {
echo $ge->getMessage();
}
Maybe any expert have the same problem of me, and can help me.I need a simple example for substitute the old code, can you help?
The best regards, JC
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
~JC