PDA

View Full Version: Rezoud Mwen menm appel pou Google Définition, men bezwen èd nan men vBET premye



brubros
05-10-11, 16:25
Mwen pral fè yon apèl pou Définition Google (API aksè avi-(http://code.google.com/apis/errors/), kòd Google) men mwen pa konnen kòman pou reponn tout kesyon yo, enkli sa a. Te kapab ou ede ak yo te bay repons pou m ka kouri dèyè dirèkteman ak Google?

"IP adrès ou sèvè ki fè demann?" - se sa sèvè mwen an, ki ap fè demand lan?
"Nou ap API sèvè ki bò ou nan JavaScrip?" - mwen pa konnen kòman pou reponn sa
"Si w ap itilize sèvè-bò, sa se HTTP ou itilize nan mande?" - fè vBET itilize sa?
"souple antre yon adrès entènèt ki kote ou gen API a aplike" - mwen bay Google ak adrès entènèt m?
"Sont ou si sa ou mande l ' genyen yon kle API a, se yon bon HTTP ou ak paramètre userip (pou sèvè-bò demandes)?" - fè vBET fè sa?

r.dziadusz
05-10-11, 18:32
1) Wi se IP de sèvè ou
2) Ou ap itilize api sèvè bò
3) Se adrès entènèt pou ou pati traduit
4) Adrès entènèt ex(without *)
pou api google 1 - kle wihout: ht*tp://ajax.googleapis.com/ajax/services/language/translate?v=1.0 & fòma = html & langpair = en|pl & i p i = bienvenue
ak pou api google v2: ht*tps://www.googleapis.com/language/translate/v2?key='your_api_key' Abramo fòma = html & i p i = bienvenue & sib = pl

brubros
05-10-11, 18:47
Mèsi! Mwen te jis soumis m' apèl pou Google.

vBET
06-10-11, 02:15
Si ou bezwen plis èd la sèlman ekri. Nou ta kapab tou trè kontan si Google v1 travay jiska fèmen san surprises konsa, men se pou Google...

Vetall
12-10-11, 06:10
brubros, nou te deja resevwa yon repons de Google? restore API a?

vBET
12-10-11, 20:35
Nou pa konnen ki te burbos a reponn. Eksperyans nou pwòp - Google premye voye mesaj sou bloke, men nou panse ke finalman yo reyalize ke pa n. pinèz kèk paske tout moun te bloke, koulye a nou gen pou li débloquer (nou menm pa t a gen) e kounye a si limites sont te rive nou senpleman jwenn repons ak enfòmasyon sou pòsyon tè te jwenn. Se konsa pou nou Google disponib après bloke san okenn entèvansyon sou bò kote nou. Tanpri, jis tchyeke kounye a googletest (http://www.vbenterprisetranslator.com/forum/vbet4-troubleshooting/413-faq-2.html#post1729) nan foròm ou.

Vetall
13-10-11, 06:03
googletest.php


<?php
echo "Starting translation test G API V1<br/>\n";
$connection = curl_init();
curl_setopt($connection, CURLOPT_URL, 'http://ajax.googleapis.com/ajax/services/language/translate?v=1.0&format=html&langpair=en|pl&q=welcome');
curl_setopt($connection, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 (ax)');
//curl_setopt($connection, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($connection, CURLOPT_RETURNTRANSFER, 1);
$result = curl_exec($connection);
echo 'Test result: '.$result."<br/>\n";
echo 'Test error: '.curl_error($connection)."<br/>\n";
curl_close($connection);
?>


Koumanse tradiksyon tès G API V1
Rezilta tès: {"responseData": nil, "responseDetails": "Regleman yo sispèk ki Abi Sèvis Tanpri, gade http://code.google.com/apis/errors.", "ResponseStatus": 403}
Erè egzamen:





googletest.php


<?php
echo "Starting translation test<br/>\n";
$connection = curl_init();
curl_setopt($connection, CURLOPT_URL, 'http://ajax.googleapis.com/ajax/services/language/translate?v=1.0&format=html&langpair=en|pl&q=welcome');
curl_setopt($connection, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 (ax)');
curl_setopt($connection, CURLOPT_RETURNTRANSFER, 1);
$time = microtime(true) * 1000;
$result = curl_exec($connection);
$time = microtime(true) * 1000 - $time;
echo 'Test result: '.$result."<br/>\n";
echo 'Test error: '.curl_error($connection)."<br/>\n";
curl_close($connection);
echo 'Connection time (ms): '.$time;
?>


Koumanse tès tradiksyon
Rezilta tès: {"responseData": {"translatedText": "powitanie"}, "responseDetails": nil, "responseStatus": 200}
Erè egzamen:
Connexion temps (madanm): 148.76098632812



-Men rezilta yo nan kote m' pou de vèsyon yo de a googletest.php script

r.dziadusz
13-10-11, 10:27
Souple pou tout kesyon louvri nouvo fil, nou pral kontan pou ede w

vBET
14-10-11, 23:17
Yon ti tan apwè sou pòs dènye ou Vetall - kòd la menm nan ka de connexion. Diferans yo gen sèlman mesaj sou bò ou ak 2 kòd tou montre connexion temps. Se konsa diferans nan repons se pa paske itilize de 2 diferan scripts, men paske moun kote kouri nan lòt fwa ankò.

Si ou bezwen plis èd te sou li lè sa a menm jan Radek a - Tanpri louvri nouvo fil.

Automatic Translations (Powered by Google, Microsoft®, Yandex, SDL Language Cloud, IBM Watson and Apertium):
AfrikaansAlbanianArabicBelarusianBulgarianCatalanChineseCroatianCzechDanishDutchEnglishEstonianFilipinoFinnishFrenchGalicianGermanGreekHaitian CreoleHebrewHindiHungarianIcelandicIndonesianIrishItalianJapaneseKoreanLatvianLithuanianMacedonianMalayMalteseNorwegianPersianPolishPortugueseRomanianRussianSerbianSlovakSlovenianSpanishSwahiliSwedishTaiwaneseThaiTurkishUkrainianVietnameseWelshYiddish
Translations supported by vB Enterprise Translator 4.10.1