Enpòtan: Paj sa a se lè l sèvi avèk bonbon (cookies). Sèvi ak sit entènèt sa a san yo pa vire sou bonbon nan navigatè, vle di ke ou dakò pou sèvi ak li.
Buy Now! Features Downloads

Gen ak nou!

Si ou ta renmen kòmanse lajan ak are vBET pou salè pou gwo travay Afilye pwogram.
Rezilta 1 9 nan 9

Thread: Mwen menm appel pou Google Définition, men bezwen èd nan men vBET premye

  1. #1

    Default Mwen menm appel pou Google Définition, men bezwen èd nan men vBET premye

    Mwen pral fè yon apèl pou (Google DéfinitionAPI Aksè Avi - Google Postal) men mwen pa konnen kòman pou reponn tout kesyon yo, enkli sa. 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?

  2. #2
    Retrete yo;)
    Join Date
    Aug 2011
    Posts
    441

    Default

    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

  3. #3

    Default

    Mèsi! Mwen te jis soumis m' apèl pou Google.

  4. #4
    Michał Podbielski (vBET Anplwaye) vBET's Avatar
    Join Date
    Oct 2009
    Posts
    3,037

    Default

    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...

  5. #5

    Default

    Text automatically translated from: Russian to: Haitian Creole
    Translated text
    brubrosOu te deja resevwa yon repons nan Google? retabli API a?
    Original text
    Last edited by r.dziadusz; 12-10-11 nan 10:17.

  6. #6
    Michał Podbielski (vBET Anplwaye) vBET's Avatar
    Join Date
    Oct 2009
    Posts
    3,037

    Default

    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 sou foròm ou.

  7. #7

    Default

    googletest.php

    PHP Code:
    <?php
    echo "Starting translation test G API V1<br/>\n";
    $connection curl_init();
    curl_setopt($connectionCURLOPT_URL'http://ajax.googleapis.com/ajax/services/language/translate?v=1.0&format=html&langpair=en|pl&q=welcome');
    curl_setopt($connectionCURLOPT_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($connectionCURLOPT_RETURNTRANSFER1);
    $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 Code:
    <?php
    echo "Starting translation test<br/>\n";
    $connection curl_init();
    curl_setopt($connectionCURLOPT_URL'http://ajax.googleapis.com/ajax/services/language/translate?v=1.0&format=html&langpair=en|pl&q=welcome');
    curl_setopt($connectionCURLOPT_USERAGENT'Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 (ax)');
    curl_setopt($connectionCURLOPT_RETURNTRANSFER1);
    $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



    -
    Text automatically translated from: Russian to: Haitian Creole
    Translated text
    Men rezilta yo nan kote m' pou de vèsyon yo de a googletest.php script
    Original text
    Last edited by r.dziadusz; 13-10-11 nan 10:20. Rezon ki fè: edite BBcode

  8. #8
    Retrete yo;)
    Join Date
    Aug 2011
    Posts
    441

    Default

    Souple pou tout kesyon louvri nouvo fil, nou pral kontan pou ede w

  9. #9
    Michał Podbielski (vBET Anplwaye) vBET's Avatar
    Join Date
    Oct 2009
    Posts
    3,037

    Default

    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.

Tags pou sa a Thread

Posting Permissions

  • Ou Pouvwa pa Post fil nouvo
  • Ou Pouvwa pa Post replies
  • Ou Pouvwa pa Post atachman
  • Ou Pouvwa pa modifye posts ou
  •