Code Monkey home page Code Monkey logo

micrsoft-translator-php-wrapper's People

Watchers

behzad monfared avatar

micrsoft-translator-php-wrapper's Issues

micrsoft-translator-php-wrapper do not working

Help me
http://tratu.dichso.com  -> is not working


I only seem to change course, but it does not work
1. config.inc 
---------------------------------------------------------------------------
if (!defined('ACCOUNT_KEY')) {
    define('ACCOUNT_KEY', 'xxxxxxxxxxxxxxxxxxxxxxxxxxxx');
--------------------------------------------------------------------------- 
And error messages!
The authorization type you provided is not supported. Only Basic and OAuth are 
supported!

Please help! 

Original issue reported on code.google.com by [email protected] on 5 Jun 2013 at 3:43

name or service not known

hi,
I'm getting this error, even in the example file:

Warning: 
file_get_contents(https://api.datamarket.azure.com/Data.ashx/Bing/MicrosoftTrans
lator/v1/GetLanguagesForTranslation?$top=100&$format=json): failed to open 
stream: php_network_getaddresses: getaddrinfo failed: Name or service not known

Original issue reported on code.google.com by [email protected] on 8 Feb 2013 at 11:41

Api Not working

i wrote the following online below :
translator.php?to=es&text=how

response is :
{"status":"SUCCESS","translation":"The authorization type you provided is not 
supported. Only Basic and OAuth are supported\r\n"}

i have used the same account in config.inc.php provided at :
- https://datamarket.azure.com/account/keys -

if (!defined('ACCOUNT_KEY')) {
    define('ACCOUNT_KEY','XXXX');
}

Original issue reported on code.google.com by [email protected] on 17 May 2013 at 3:17

Authorization not supported

hi,
I'm trying to use your library. Even in the provided example page, I get this:

Warning: 
file_get_contents(https://api.datamarket.azure.com/Data.ashx/Bing/MicrosoftTrans
lator/v1/GetLanguagesForTranslation?$top=100&$format=json): failed to open 
stream: HTTP request failed! HTTP/1.1 401 The authorization type you provided 
is not supported. Only Basic and OAuth are supported in 
/mnt/Dati/Sorgenti/Web/ztranslate/resources/plugin/ZTranslate/bing_translate/cla
ss/MicrosoftTranslator.class.php on line 157

Any idea?

Original issue reported on code.google.com by [email protected] on 12 Dec 2012 at 12:38

unable to translate in webhosting

thanks for your translator, I tried on my local it works fine However when I 
upload the same code to the webhosting it cannot allow me to translate is there 
anyway that i can make it work on webhosting?

in my local
localhost/translate/translator.php?text=apple&to=zh-CHS

result:
{"status":"SUCCESS","translation":"\u82f9\u679c<\/string>"}

in my web host
xxx/translate/translator.php?text=apple&to=zh-CHS

result:{"status":"SUCCESS","translation":"The authorization type you provided 
is not supported. Only Basic and OAuth are supported\r\n"}

both account key are the same as well.

Original issue reported on code.google.com by [email protected] on 8 Mar 2013 at 6:47

Unexpected Error

What steps will reproduce the problem?
1. config.inc.php Set ACCOUNT_KEY
2. Added Translate Text
3. Select Language

What is the expected output? What do you see instead?
{"status":"ERROR","errorReason":"There is some un expected error . please check 
the code"}

What version of the product are you using? On what operating system?
PHP 5.3.13

Please provide any additional information below.

Original issue reported on code.google.com by [email protected] on 5 Feb 2014 at 1:30

Attachments:

Create wav file from output?

This is more of a request than anything else, I'm trying to figure out a way to 
download the wav file from the output. Is this possible?

Original issue reported on code.google.com by [email protected] on 29 Jul 2013 at 7:32

error on certain word (kamu)

What steps will reproduce the problem?
1. translate from id(indonesian) to english
2. input any text beginning with: "kamu"


What is the expected output? What do you see instead?
should translated into "you" or "ye", but got error "Warning: 
file_get_contents(https://api.datamarket.azure.com/Data.ashx/Bing/MicrosoftTrans
lator/v1/Translate?Text=%27kamu+suka+siapa%27&To=%27en%27&$format=Raw&$top=100) 
[function.file-get-contents]: failed to open stream: HTTP request failed! 
HTTP/1.1 400 Bad Request in 
C:\xampp\htdocs\translate1\class\MicrosoftTranslator.class.php on line 140"

I tried the demo and tried it on my local machine. The demo site will just keep 
on loading status, while in my local machine will produced this error.


Original issue reported on code.google.com by [email protected] on 18 Nov 2012 at 9:40

Not working

Same you intruction but not working.
I have MS key.Insert to cfc file and run but it's error.Cannot get value from 
bing.
this is url to get : 
https://api.datamarket.azure.com/Bing/MicrosoftTranslator/v1GetLanguagesForTrans
lation?$top=100&$format=json
and the error
The authorization type you provided is not supported.  Only Basic and OAuth are 
supported.
You can slove issues.
thanks 


Original issue reported on code.google.com by quocvinhdo on 18 Dec 2012 at 4:38

HTTP/1.1 403 Forbidden on OVH.com

I got this error :

Warning: 
file_get_contents(https://api.datamarket.azure.com/Data.ashx/Bing/MicrosoftTrans
lator/v1/Translate?Text=%27Hello%27&To=%27fr%27&$format=Raw&$top=100) 
[function.file-get-contents]: failed to open stream: HTTP request failed! 
HTTP/1.1 403 Forbidden in 
/homez.29/fonctions/translate/class/MicrosoftTranslator.class.php on line 140
{"status":"ERROR","errorReason":"There is some un expected error . please check 
the code"}

I try 2 different keys.


Original issue reported on code.google.com by [email protected] on 20 Mar 2013 at 3:11

Undefined index: class in MicrosoftTranslator.class.php on line 212

I started with a vanilla install of your demo ZIP file and configured my 
account key and path to cache directory within the config.inc.php files. When I 
load the /translate directory in my browser, I see the following message above 
the translation form:

Notice: Undefined index: class in 
/var/www/htdocs/translate/class/MicrosfotTranslator.class.php on line 212. 

Any ideas on why that may be the case? 

Thank you for this wrapper, it looks very useful. 

Original issue reported on code.google.com by [email protected] on 24 May 2013 at 3:53

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.