خرید! امکانات دریافت فایل
صفحه 1 از 2 12 آخرآخر
نمایش نتایج : از شماره 1 تا 10 از 17

موضوع : از microsft ترجمه API توسط لاجوردی: زمینه لازم \\ u0027client_id \\ u0027 از دست رفته است.

  1. # 1
    کاربر ارشد
    تاریخ عضویت
    اکتبر 2009
    پست ها
    142

    پیش فرض از microsft ترجمه API توسط لاجوردی: زمینه لازم \\ u0027client_id \\ u0027 از دست رفته است.

    هر گونه کمک در اینجا؟

    شروع آزمون برای ترجمه از microsft API توسط لاجورد

    نشانه کامل:
    {"خطا": "invalid_request"، "error_description": "ACS90011: زمینه های مورد نیاز \\ u0027client_id \\ u0027 است که گم شده \\ r و \\ nTrace ID: 71501a25-d0b9-4ff5-898c-fff921164a45 \\ r و \\ nTimestamp: 2،011-12 - 26 17:13:45 Z "}

    PS. هنگامی که وارد ID مشتری من من یک صفحه سفید، هنگامی که ID مشتری من را حذف کنم کار ترجمه (صفحه سفید) اما خطا در بالا در هر دو صورت باقی می ماند.
    Last edited by mario06; 27-12-11 at 10:48.

  2. # 2
    انجمن گفتگوی پرشین تصدی مترجم (فعال تصدی) ستاد
    تاریخ عضویت
    آگوست 2011
    پست ها
    429

    پیش فرض

    سلام
    در ابتدا من می خواهم به شما عذر خواهی است که یک خطای کوچک در فایل تست وجود دارد، لطفا با استفاده از این:
    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;
    ?>
    لطفا اجرای این آزمایش و نتیجه نشان می دهد

  3. # 3
    کاربر ارشد
    تاریخ عضویت
    اکتبر 2009
    پست ها
    142

    پیش فرض

    تست شده و هنوز هم همان است.

    شروع آزمون برای ترجمه از microsft API توسط لاجورد

    نشانه کامل:
    {"خطا": "invalid_request"، "error_description": "ACS90011: زمینه های مورد نیاز \\ u0027client_id \\ u0027 است که گم شده \\ r و \\ nTrace ID: 724fd4ca-333c-4c54-b940-c5af56900488 \\ r و \\ nTimestamp:. 2،011-12 - 27 16:55:17 Z "}

    چگونه در مورد این مشکل دیگر است؟ -> PS. هنگامی که وارد ID مشتری من من یک صفحه سفید، هنگامی که ID مشتری من را حذف کنم کار ترجمه (صفحه سفید) اما خطا در بالا در هر دو صورت باقی می ماند. Infact آن در خودرو می شود در ترانس تبدیل شده است. در دسترس بودن؟

    مایکروسافت ترجمه می کند API
    Please see description of first option in this group. NO
    Last edited by mario06; 27-12-11 at 17:07.

  4. # 4
    انجمن گفتگوی پرشین تصدی مترجم (فعال تصدی) ستاد
    تاریخ عضویت
    آگوست 2011
    پست ها
    429

    پیش فرض

    It happens becouse, if you delete client id فعال تصدی will not try to use Microsoft Translation API and just use other available API's otherways فعال تصدی try to use but something goes wrong and (missing client_id) and translation cannot be done.

    لطفا مطمئن شوید که شما را:
    put correct values in: Microsoft Comercial Translation API key by Azure

  5. #5
    کاربر ارشد
    تاریخ عضویت
    اکتبر 2009
    پست ها
    142

    پیش فرض

    I'm putting in my Client ID which I get from here.

  6. #6
    انجمن گفتگوی پرشین تصدی مترجم (فعال تصدی) ستاد
    تاریخ عضویت
    آگوست 2011
    پست ها
    429

    پیش فرض

    Yes you are using correct one:
    -have you upload test file into your forum root folder?

    If yes, could you please send me your access details to your admincp and ftp in order to check all your issues?

  7. #7
    کاربر ارشد
    تاریخ عضویت
    اکتبر 2009
    پست ها
    142

    پیش فرض

    i sent you a pm regards

  8. #8
    کاربر ارشد
    تاریخ عضویت
    اکتبر 2009
    پست ها
    142

    پیش فرض

    Still waiting
    Happy New Years

  9. #9
    کاربر ارشد
    تاریخ عضویت
    اکتبر 2009
    پست ها
    142

    پیش فرض

    PM Sent days ago!!
    Regards

  10. #10
    Member
    تاریخ عضویت
    May 2010
    پست ها
    80

    پیش فرض

    نقل قول Originally Posted by mario06 نمایش پست
    PM Sent days ago!!
    Regards
    its looks like the staffs are in new year vacation right now, my important thread are still not get answers too,

    i know its little sucks, so many businesses are in vacation right now, but its normal lets be patient

صفحه 1 از 2 12 آخرآخر

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27