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.
Paj 1 nan 2 12 DenyeLast
Rezilta 1 10 nan 17

Thread: Microsft tradiksyon API par ble: mande jaden/u0027client_id/u0027 pa manke.

  1. #1
    Senior Member
    Join Date
    Oct 2009
    Posts
    142

    Default Microsft tradiksyon API par ble: mande jaden/u0027client_id/u0027 pa manke.

    Okenn èd isit la?

    Kòmanse tès pou Microsft tradiksyon API par ble

    Jeton plen:
    {"erreur": "invalid_request", "error_description": "ACS90011: mande jaden/u0027client_id/u0027 pa manke. nTrace Didantite/r /: 71501a25-d0b9-4ff5-898c-fff921164a45/r/nTimestamp: 17:13:45Z 2011 12-26"}

    PS. Lè mwen mete m' kliyan Didantite m koumanse yon paj blanch, lè mwen retire Didantite kliyan mwen tradiksyon travay (pa blan paj) men erreur kondisyon piwo an rete jan soit.
    Last edited by mario06; 27-12-11 nan 11:48.

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

    Default

    Hi
    Anvan m vle excuses ou pa gen yon ti erreur nan nan tès fichier, souple itilize sa:
    PHP Code:
    <?php
    require_once('./global.php');

    function 
    get_token(){
        global 
    $vbulletin;
        
    $obj_connection curl_init();
        
    $arr_query_bits = array (
             
    'grant_type' => 'client_credentials',
             
    'scope' => 'http://api.microsofttranslator.com',
             
    'client_id' => $vbulletin->options['vbenterprisetranslator_Microsoft_key'],
             
    'client_secret' => $vbulletin->options['vbenterprisetranslator_Microsoft_secret']
              );
             
    $str_query http_build_query($arr_query_bits);

             
    curl_setopt($obj_connectionCURLOPT_URL'https://datamarket.accesscontrol.windows.net/v2/OAuth2-13');
             
    curl_setopt($obj_connectionCURLOPT_HEADER0);
             
    curl_setopt($obj_connectionCURLOPT_FOLLOWLOCATION1);
             
    curl_setopt($obj_connectionCURLOPT_RETURNTRANSFER1);
             
    curl_setopt($obj_connectionCURLOPT_POSTFIELDS$str_query);
             
    curl_setopt($obj_connectionCURLOPT_SSL_VERIFYPEERFALSE);
             
    curl_setopt($obj_connectionCURLOPT_POSTTRUE);
             
    print_r('Full token: </br>'.curl_exec($obj_connection).'</br></br>');
             
    $token =  json_decode (curl_exec($obj_connection));
             
    curl_close($obj_connection);         
             return 
    'Authorization: Bearer '.$token->{'access_token'};
    }

    echo 
    'Starting test for Microsft Translation API by Azure<br/><br/>';
    $connection curl_init();
    curl_setopt($connectionCURLOPT_URL'http://api.microsofttranslator.com/V2/Ajax.svc/Translate?&from=pl&to=en&text=Witaj!');
    curl_setopt($connectionCURLOPT_HEADER0);
    curl_setopt($connectionCURLOPT_FOLLOWLOCATION1);
    curl_setopt($connectionCURLOPT_RETURNTRANSFER1);
    curl_setopt($connectionCURLOPT_SSL_VERIFYPEERfalse);
    curl_setopt($connectionCURLOPT_HTTPHEADER, array(get_token()));
    $str_response curl_exec($connection);
    $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;
    ?>
    Tanpri pase tès sa a ak rezilta a montre m

  3. #3
    Senior Member
    Join Date
    Oct 2009
    Posts
    142

    Default

    Tès ak encore menm bagay la tou.

    Kòmanse tès pou Microsft tradiksyon API par ble

    Jeton plen:
    {"erreur": "invalid_request", "error_description": "ACS90011: mande jaden/u0027client_id/u0027 pa manke. nTrace Didantite/r /: 724fd4ca-333c-4c54-b940-c5af56900488/r/nTimestamp: 16:55:17Z 2011 12-27"}

    E lòt pwoblèm sa a? -> PS. Lè mwen mete m' kliyan Didantite m koumanse yon paj blanch, lè mwen retire Didantite kliyan mwen tradiksyon travay (pa blan paj) men erreur kondisyon piwo an rete jan soit. Li te vin tounen nan oto nan disponibilité trans. Infact?!?

    Microsoft tradiksyon disponib API
    Souple al dekri teren opsyon premye nan gwoup sa a. NON
    Last edited by mario06; 27-12-11 nan 18:07.

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

    Default

    Li rive becouse, si ou efase kliyan didantite vBET a pa pwal eseye pou itilize Microsoft tradiksyon API ak sèlman itilize API disponib lòt otherways vBET eseye pou sèvi ak men se yon bagay k'ap peche, (pa wè client_id) ak tradiksyon pa kapab ap fè l '.

    Souple asire ou:
    mete valè kòrèk. Microsoft Comercial tradiksyon API kle par ble

  5. #5
    Senior Member
    Join Date
    Oct 2009
    Posts
    142

    Default

    M ap mete nan Didantite kliyan mwen kote m ka soti isit la.

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

    Default

    Wi ou ap itilize kòrèk UN:
    -ou télécharger fichier tès nan Katab rasin foròm ou?

    Si wi, te kapab ou Tanpri voye jwenn mwen ou detay aksè ou admincp ak ftp pou tcheke tout kesyon ou yo?

  7. #7
    Senior Member
    Join Date
    Oct 2009
    Posts
    142

    Default

    mwen voye nou yon h qui

  8. #8
    Senior Member
    Join Date
    Oct 2009
    Posts
    142

    Default

    Rete
    Ala bon sa bon pou ane nouvo

  9. #9
    Senior Member
    Join Date
    Oct 2009
    Posts
    142

    Default

    H Envoyé jou de sa Sèm
    Senserite

  10. #10

    Default

    Quote Originally Posted by mario06 View Post
    H Envoyé jou de sa Sèm
    Senserite
    recherche li, tankou Personnel sont nan nouvo ane vakans kounye a, m' moso twal kamwazi enpòtan sont toujou jwenn repons tou,

    mwen konnen tout ti pa bon, anpil biznis yo nan vakans kounye a, men li nòmal vous être moun ki malad

Paj 1 nan 2 12 DenyeLast

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
  •