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

Unable to perform Translation:Suspected Terms of Service Abuse. #22

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Unable to perform Translation:Suspected Terms of Service Abuse. Please see 
http://code.google.com/apis/errors 

I've tried to install the code, but when i reload my web page, this error show, 
did i've mistakes ?

Thanks.

Original issue reported on code.google.com by pancad...@gmail.com on 27 Jun 2010 at 10:16

GoogleCodeExporter commented 8 years ago
Hi

Can you provide an example how are you using the code?

Original comment by josedasilva on 23 Jul 2010 at 6:11

GoogleCodeExporter commented 8 years ago
Please verify that you are compliant with google terms and conditions.

http://code.google.com/apis/ajaxlanguage/terms.html

Original comment by josedasilva on 23 Jul 2010 at 6:30

GoogleCodeExporter commented 8 years ago
Hello,

This is also my problem.  I wrote to google and this is their reply:

Requests being sent without a referer. Please add a referer to you requests 
indicating page that's being translated.

Where can i add the referer attribute?

Regards,

fgwapo

Original comment by fgw...@yahoo.com on 31 Jul 2010 at 3:47

GoogleCodeExporter commented 8 years ago
Look at line 239, verify that you param is not
empty, if it is just add your website http://<DOMAIN> inside ""

curl_setopt($ch, CURLOPT_REFERER, !empty($_SERVER["HTTP_REFERER"]) ?
$_SERVER["HTTP_REFERER"] : "");

Will implement a fancier way to do this on the lib.

Original comment by josedasilva on 26 Nov 2010 at 4:17

GoogleCodeExporter commented 8 years ago
Issue 27 has been merged into this issue.

Original comment by josedasilva on 26 Nov 2010 at 4:20

GoogleCodeExporter commented 8 years ago
Added into v 0.7.7, only using CURL Method

Original comment by josedasilva on 31 Dec 2010 at 5:52