daniellmb / google-api-for-dotnet Goto Github PK
View Code? Open in Web Editor NEWAutomatically exported from code.google.com/p/google-api-for-dotnet
Automatically exported from code.google.com/p/google-api-for-dotnet
What steps will reproduce the problem?
1. sample code added to project
2. error occured on IList<IVideoResult> results =
GvideoSearcher.Search("South Park", 32);
What is the expected output? What do you see instead?
i cannot pass the error : "Failed to get response."
What version of the product are you using? On what operating system?
0.2 beta , windows xp turkish, vs 2005
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 24 Dec 2008 at 8:12
What steps will reproduce the problem?
1. See the "Aspect ratio" option here:
http://images.google.com/advanced_image_search
2. Using the GimageSearchClient, this option does not exist
What is the expected output? What do you see instead?
Expect to be able to search by aspect ratio (square, wide, etc.)
What version of the product are you using? On what operating system?
0.4 alpha, Windows 7
Original issue reported on code.google.com by [email protected]
on 17 Apr 2010 at 5:01
How to get more than 32 result in web search
thanks in advance..
Original issue reported on code.google.com by [email protected]
on 18 Aug 2008 at 6:31
What steps will reproduce the problem?
1. Using C#.Net
2. Using GoogleTranslateAPI 0.3
3. string result = client.Translate("translating texts to Thai",
Language.English, Language.Thai);
What is the expected output? What do you see instead?
It should translate the text to Thai --> Expected Result:
แปลข้อความไทย
What version of the product are you using? On what operating system?
Windows XP + Visual Studio 2005 + GoogleTranslateAPI 0.3
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 10 Nov 2009 at 3:27
Please consider support for batch translation.
TIA
Original issue reported on code.google.com by [email protected]
on 9 Dec 2009 at 9:15
What steps will reproduce the problem?
1.Using Vb.net
2.Enter a long text as the input of translation
What is the expected output? What do you see instead?
I Get Exception (Failed to get response).
What version of the product are you using? On what operating system?
V 0.3
Please provide any additional information below.
My code is:
Dim client As TranslateClient = New TranslateClient("test")
TextBox2.Text = client.Translate(TextBox1.Text, "en", "es", "html")
Original issue reported on code.google.com by [email protected]
on 8 Jan 2010 at 8:34
What steps will reproduce the problem?
1. Enter the search count as 100
2. Enter the search text
3. results rows are always 64
What is the expected output? What do you see instead?
It should return 100 recrods
What version of the product are you using? On what operating system?
4.0.1
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 15 May 2010 at 8:29
What steps will reproduce the problem?
1. Translation of about 400 strings is taking about 2 1/2 minutes.
2.
3.
What is the expected output? What do you see instead?
The output has no problem.
What version of the product are you using? On what operating system?
Google API : 3.1, OS: Windows vista
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 20 Apr 2010 at 4:16
More detail here:
http://code.google.com/p/google-ajax-apis/issues/detail?id=455&colspec=ID%20Type
%20Stars%20Status%20Modified%20Summary%20APIType%20Opened
Original issue reported on code.google.com by [email protected]
on 12 May 2010 at 3:06
[deleted issue]
It's a bug. sorry.
I did not test it on VB.
You know, c# 3.5 do not support named and default parameters for method,
but VB do.
so I need overload every search methods if there are too many parameters.
And c# 4.0 will support named and default parameters, like VB. So I make
the longest search methods with default parameters.
This is the bug, they cannot both exist.
The easiest way to make it run is using the longest one.
/*public IList<IWebResult>*/ Search(
"test", // string keyword
1, // int resultCount
null, // string customSearchId
null, // string customSearchReference
SafeLevel.GetDefault(), // string safeLevel
Language.GetDefault(), // string language
DuplicateFilter.GetDefault(), // string duplicateFilter
)
Original issue reported on code.google.com by [email protected]
on 6 Oct 2009 at 5:10
The only way to specify a language is through the enumeration.
How can I get the enum value for a language code ? I don't like Enum.Parse...
Original issue reported on code.google.com by [email protected]
on 17 Jun 2008 at 3:43
Using the GimageSearchClient.Search() method, I see how you can limit the
search results to, say, 25 results. However, I don't see how you can get
the next 25 results and so on. Is this possible with this API?
Original issue reported on code.google.com by scott.schafer
on 28 Dec 2009 at 5:03
I'm having problems with line breaks in the translations. How do I accept
line breaks in translation? (I use the C# language)
My code:
Google.API.Translate.TranslateClient client = new
Google.API.Translate.TranslateClient("");
txtBox2.text = client.Translate(textBox1.Text, Language.English,
Language.Portuguese);
Original issue reported on code.google.com by [email protected]
on 7 Jan 2010 at 4:24
What steps will reproduce the problem?
1. In .Net 3.5 after unzipping the 0.4 version package i add the required
dlls.
2. I write the following code in C# (given as a sample).
string text = "我喜欢跑步。";
TranslateClient client = new TranslateClient("www.google.com");
string translated = client.Translate(text, Language.ChineseSimplified,
Language.English);
Console.WriteLine(translated);
What is the expected output? What do you see instead?
The expected outcome is the translation of the Chinese text into Englis
i.e. "I like running"
Instead I get the error that Translate function takes 2nd & 3rd argument
as string ojects. I have checked out the documentation & that really is
the case. However i cannot seem to find any way to convert Language class
object to string class object.
What version of the product are you using? On what operating system?
I am using .Net SP1 & Google Translate API for .NET 0.4 alpha. The OS is
windows professional 7 (32 bit).
Please provide any additional information below.
I have done the same using 0.2 version of the API. It works there since
the translate function takes the 2nd & 3rd arguments as Language objects &
not as strings.
Original issue reported on code.google.com by [email protected]
on 14 May 2010 at 11:26
What steps will reproduce the problem?
1. The remote server returned an error: (414) Request-URI Too Large.
2.
3.
What is the expected output? What do you see instead?
The remote server returned an error: (414) Request-URI Too Large.
What version of the product are you using? On what operating system?
4.0 Alpha
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 9 Apr 2010 at 7:54
What steps will reproduce the problem?
1. bind a IImageResult to a ListView in asp.net
In code behide file:
GimageSearchClient imgClient = new GimageSearchClient(MY_WEBSITE_URL);
IList<IImageResult> imgResults = imgClient.Search(filter, 5);
lvGoogleImage.DataSource = imgResults;
lvGoogleImage.DataBind();
2. In .aspx file. All the other properties can be accessed by Eval.
E.g. <%# Eval("Title") %> can display the title.
But when using <%# Eval("TbImage.Url") %>, it receives an error:
Google.API.Search.GimageResult' does not contain a property with the name
'TbImage'.
3. What is the expected output? What do you see instead?
I would like the get the TbImage.Url property by calling Eval() in .aspx
page. I can access that property in code behide file.
What version of the product are you using? On what operating system?
I'm using GoogleSearchAPI.dll 0.4 version. Using windows os and vs 2010
(.net 4 framework)
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 16 May 2010 at 7:39
What steps will reproduce the problem?
1. Microsoft Web Express 2008
2. Add Reference
Here the code:
Dim instance As ICollection =
Google.API.Translate.Language.TranslatableCollection
Dim sLang As String = "None"
For Each langb As Google.API.Translate.Language In instance
sLang = langb.Value + sLang
Next
Me.TextBox1.Text = sLang
3.
What is the expected output? What do you see instead?
Google.API.Enumeration.get_Value()
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about the error and where it originated in the code.
Exception Details: System.MethodAccessException:
Google.API.Enumeration.get_Value()
Source Error:
Line 13: Next
Line 14: Me.TextBox1.Text = "Finished"
Line 15: End Sub
Line 16: End Class
Source File: c:\Projects\eye5\eye5\Default.aspx.vb Line: 15
Stack Trace:
[MethodAccessException: Google.API.Enumeration.get_Value()]
eye5._Default.Button1_Click(Object sender, EventArgs e) in
c:\Projects\eye5\eye5\Default.aspx.vb:15
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +111
System.Web.UI.WebControls.Button.RaisePostBackEvent(String
eventArgument) +110
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaiseP
ostBackEvent(String eventArgument) +10
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler
sourceControl, String eventArgument) +13
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36
System.Web.UI.Page.ProcessRequestMain(Boolean
includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1565
---------------------------------------------------------------------------
-----
Version Information: Microsoft .NET Framework Version:2.0.50727.4200;
ASP.NET Version:2.0.50727.4016
What version of the product are you using?
4_Alpha
On what operating system?
Vista
Please provide any additional information below.
It worked the first time.
Original issue reported on code.google.com by [email protected]
on 10 Apr 2010 at 8:47
What steps will reproduce the problem?
TranslateClient client = new TranslateClient("new-line-bug");
string source = string.Format("{1}{0}{2}{0}{3}{0}{4}", Environment.NewLine,
"en", "es");
string result = client.Translate(source, "en", "es");
Console.WriteLine("source={0}", source);
Console.WriteLine("result={1}", result);
What is the expected output? What do you see instead?
I expected to see the output to keep the newlines like the
http://translate.google.com/translate_t?js=y&prev=_t&hl=en&ie=UTF-8&text=this+is
+a+test&sl=zh-
CN&tl=en&history_state0=submit#en|fr|One%0ATwo%0AThree%0A
The result shown is "Uno Dos Tres" where the newlines have been removed
What version of the product are you using? On what operating system?
I am using 0.3. Vista 64 bit.
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 27 Oct 2009 at 11:05
What steps will reproduce the problem?
1. call Google.API.Translate.Translator.Translate from code within medium
trust environment.
2.
3.
What is the expected output? What do you see instead?
I hoped it would work bust instead I get:
Exception Details: System.Security.SecurityException: That assembly does
not allow partially trusted callers.
My DLL calling the translate DLL is strong named and marked with APTCA
What version of the product are you using? On what operating system?
I'm using 0.2 running on IIS6 windows 2003 with medium trust.
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 20 Jul 2009 at 5:19
What steps will reproduce the problem?
1. Enter any text that contains new lines ("\n") or tabulations ("\t")
2. Translate it
3. The result is a 1 line text.
What is the expected output? What do you see instead?
If I translate directly with google translate website all the formatting is
maintained. I would expect this api to do the same.
What version of the product are you using? On what operating system?
0.2 on Win XP and VS 2008 Sp1
Please provide any additional information below.
Also an old "hacky" wrapper I did a few years ago (there was no API then)
that would send requests directly to
"http://translate.google.com/translate_t" was working this way.
I don't understand why now this shouldn't be possible.
Original issue reported on code.google.com by [email protected]
on 26 Mar 2009 at 9:55
What steps will reproduce the problem?
1. Dim optColorization As String = Colorization.All
results in:
Attempt by method 'Music_Manager.GoogleImages.GoogleImageSearch()' to
access method 'Google.API.Enumeration.op_Implicit(Google.API.Enumeration)'
failed.
I am able to use the gimageSearchClient class as below, with no issues:
Dim giSearchCLient As New GimageSearchClient("www.google.com")
Dim GoogleImages As IList(Of IImageResult) =
giSearchCLient.Search(SearchString, 5, "", "", "", "")
But when I try to get the proper values to use for the search arguments, I
get the error shown above.
What version of the product are you using? On what operating system?
0.4 alpha, Windows 7
Original issue reported on code.google.com by [email protected]
on 17 Apr 2010 at 9:00
What steps will reproduce the problem?
1. Attempt to translate string > 5000 characters
What is the expected output? What do you see instead?
Expected translated string, exception thrown, returns 400
What version of the product are you using? On what operating system?
GoogleTranslateAPI.dll 0.1.1.0
Please provide any additional information below.
Would be handy if API accepted full string, split, translated, returned
full string.
Original issue reported on code.google.com by [email protected]
on 19 Jan 2009 at 9:27
What steps will reproduce the problem?
1. Try google news search (adding a greek term)
2. Dim results As IList(Of Google.API.Search.INewsResult) =
Google.API.Search.GnewsSearcher.Search("Πληροφορική", 20)
What is the expected output? What do you see instead?
it returns zero results , when it should return results
What version of the product are you using? On what operating system?
0.2 beta , windows xp , vs 2008
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 17 Nov 2008 at 8:20
change GetLanguage() and GetLanguageCode() to be public.
Original issue reported on code.google.com by [email protected]
on 9 Aug 2008 at 6:04
When using Google.API.Translate.Translator.TranslateAndDetect()
The input and output languages languages are switched.
I don't know why an input language is required anyway.
Original issue reported on code.google.com by [email protected]
on 18 Feb 2009 at 10:51
Dear iron9light,
I am using GwebSearcher :the Utility class for Google Web Search service
from GoogleSearch API 0.2 for dot net (.NET) provided by you. I would like
to know
1. how to retrieve upto 1000 results using this API
2. how to sequentially retrieve a subset of results e.g. result 32 to 64
Please help me.
Thank you
Original issue reported on code.google.com by [email protected]
on 9 Feb 2010 at 4:02
What steps will reproduce the problem?
1.
2.
3.
What is the expected output? What do you see instead?
What version of the product are you using? On what operating system?
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 17 Jun 2009 at 9:14
What steps will reproduce the problem?
1. Using Suggestion API
2. Search for C# .net
3. Gets result C .net
What is the expected output? What do you see instead?
"C .net"
What version of the product are you using? On what operating system?
Please provide any additional information below.
Original issue reported on code.google.com by itkompaniet
on 18 Aug 2009 at 7:33
Hi Dear
This is Ashok Kumar from Olive e-Business Pvt. Ltd. We are using Google
search api for a website http://www.divinewellness.com, according to the
documentation available for same the api will return none if a user search
for abusive words (like nude) if SafeLevel option of the api is active.
IList<IWebResult> results =
GwebSearcher.Search(Convert.ToString(Request.QueryString["key"]), 50,
Google.API.Language.English,*SafeLevel.active*);
i want search without SlangWord (abuse word)
i am using (GoogleSearchAPI.dll) in asp.net
i want safe search filteration(abuse word)
please help me
Original issue reported on code.google.com by [email protected]
on 28 Dec 2009 at 6:34
public partial class Default: System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
Label1.Text = "asd";
string a = Google.API.Translate.Translator.Translate(
"hi",
Google.API.Language.English,
Google.API.Language.Chinese_Simplified);
}
}
When i tried deploying it, it gives me this error :
System.IO.FileNotFoundException was unhandled by user code
I'm running on visual studio 2005, windows XP, framework 3.5
Original issue reported on code.google.com by [email protected]
on 8 Aug 2008 at 11:03
The if condition is incorrect.
The Function should look like this:
private static string GetStringIgnoreDefault(Enum value)
{
if (!Enum.IsDefined(value.GetType(), value))
return null;
return value.ToString();
}
Original issue reported on code.google.com by [email protected]
on 23 Nov 2008 at 2:09
I use the translation part, didn't check the other apis, and I
would really like to have a timeout option, maybe as an argument.
thanks,
Roi
Original issue reported on code.google.com by [email protected]
on 17 Feb 2010 at 6:08
What steps will reproduce the problem?
1. Put this text to translate:
"Что касается require-mppe - эта опция необходима
для подключения к
VPN-серверу используя 128-битное шифрование.
Возможно у вас отсутвует
модуль ядра необходимый для её работы.
Попробуйте /sbin/modprobe ppp_mppe
или заменить её на require-mppe-128 (в некоторых
портах она так
называлась). Если не получится разобраться
с шифрованием, замените адрес
vpn.qline.by на insec-vpn.qline.by (но в таком случаи,
сохранность ваших
паролей и данных отправляемых внутири
ppp-тоннеля не гарантируется)."
2. Run.
What is the expected output? What do you see instead?
You will have exception GoogleAPIException(inner details : (414)
Request-URI Too Large.)
What version of the product are you using? On what operating system?
v. 0.3.0.0
BR, spassm.
rubham team
Original issue reported on code.google.com by [email protected]
on 24 Oct 2009 at 11:06
What steps will reproduce the problem?
1. why not sign assembly to enable us to add it to signed project
2.
3.
What is the expected output? What do you see instead?
What version of the product are you using? On what operating system?
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 27 Aug 2008 at 9:39
What steps will reproduce the problem?
1. Translate from english to vietnamese
2.
3.
What is the expected output? What do you see instead?
Exception:Can not translate this language to "Vietnamese"
What version of the product are you using? On what operating system?
0.2 Beta
Please provide any additional information below.
I try to translate "Add article" to vietnamese, but fail.
and I try at http://translate.google.com
it is ok, I don't know is it not support or other reason.
Please check, thanks!
Original issue reported on code.google.com by [email protected]
on 16 Mar 2009 at 9:11
please help I need to write app that will translate parts of XML file (TV
EPG) from various languages to english, but I can't get this to work, can
someone please give me simple example how to use the API in VB,
how do I use the API in VB, how to initialize it
Please HELP
Original issue reported on code.google.com by [email protected]
on 27 Feb 2009 at 9:40
We've been using Translation API library fine for small chunks of text.
However, if doesn't work with larger text and the following exception is
being thrown:
ProtocolException: The Remote sever Returned an unexpected response: (414)
Request - URI Too Large.
We think that switching from GET method of request to POST one might help.
Original issue reported on code.google.com by me%[email protected]
on 11 Oct 2009 at 7:43
What steps will reproduce the problem?
1. Try to use the library thru a proxy
What is the expected output? What do you see instead?
The library doesn't works. Error: "Failed to get response."
What version of the product are you using? On what operating system?
latest 0.3
Please provide any additional information below.
Original issue reported on code.google.com by abatishchev
on 29 Jul 2009 at 12:37
Json.NET (http://www.codeplex.com/Json) now support more .NET platform(.NET
2.0, Compact Framework and Silverlight and mono).
It looks great.
So, let go back to the open source solution!!!
Original issue reported on code.google.com by [email protected]
on 15 Nov 2009 at 1:01
What steps will reproduce the problem?
1. Try to translate a text from (for example) English to Hungarian
What is the expected output? What do you see instead?
The expected output is the hungarian translation, a GoogleAPIException is
raised instead.
What version of the product are you using? On what operating system?
2.0 Beta
Additional information:
If you "hack" the API, and add the Hungarian language the
s_TranslatableList field via reflection, it works ok.
You only have to add the Hungarian language to the s_TranslatableList array
in the static constructor of the LanguageUtility class.
Original issue reported on code.google.com by [email protected]
on 6 Feb 2009 at 1:05
While using this API, I don't get any results.
Original issue reported on code.google.com by [email protected]
on 19 Jul 2008 at 7:20
Google language API allows to translate multiple strings by submitting
multiple "q" keys & values, e.g. "q=hello&q=world"
Original issue reported on code.google.com by [email protected]
on 14 Mar 2009 at 5:57
Hi ,
Please give some samples how to use this API in VB.Net. the help file is
has sytax for C#,VB.Net but samples is there for C# not for VB.
Please provide the same.
Thanks a lot.
Chaitanya
+91-9900607311
Original issue reported on code.google.com by [email protected]
on 17 Dec 2009 at 9:31
According to Google's terms you need to mark your request to Translate API
with correct referer.
http://code.google.com/intl/ru/apis/ajaxlanguage/documentation/#fonje
Original issue reported on code.google.com by [email protected]
on 14 Mar 2009 at 5:54
Languages are not universally translatable or not.
Google can translate some languages into some other languages. Therefore
the Google.API.Translate.LanguageUtility.IsTranslatable method should
require an input and output argument.
Original issue reported on code.google.com by [email protected]
on 18 Feb 2009 at 10:53
As I saw 64 results are the maximum currently.
Is there a way to somehow loop the searches and get multiple 64 results?
thanks.
Original issue reported on code.google.com by [email protected]
on 24 Apr 2010 at 4:45
What steps will reproduce the problem?
1. Provide a keyword in web browser and the same keyword in API
2. Set the SafeLevel off in broswer and API and set language to English in
both
3. Perform the search and you can see the result difference. May first 3-6
result match but later not.
What is the expected output? What do you see instead?
The expected output according to me should be same, but instead I get
different result.
What version of the product are you using? On what operating system?
I am using a latest version of google-api-for-dotnet which I checkout
today from svn.
Additional information below:-
After debugging I notice that API is calling URL
http://ajax.googleapis.com/ajax/services/search whereas broswer call
http://www.google.com and I believe the both URL are fetching data from
different search indexing location.
Or I feel that I have to change some configuration to get the same results.
Is it possible for anyone to explaing the scenario?
The results from API and broswer are also attached in the file.
Original issue reported on code.google.com by [email protected]
on 14 Apr 2009 at 8:51
Attachments:
When importing both:
Google.API.Search and
Google.API.Translate
The enum Google.API.Language is ambiguous and can hardly be disambiguated.
(unless using only full references which is a drag)
Original issue reported on code.google.com by [email protected]
on 18 Feb 2009 at 10:56
What steps will reproduce the problem?
1.
2.
3.
What is the expected output? What do you see instead?
i want to translate english to urdu or persian but this api not supported?
What version of the product are you using? On what operating system?
I m using VS.net 2005 with 2.0 framework. i am running on MS Windows XP
2003 sp3.
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 29 Apr 2010 at 11:54
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.