Giter Site home page Giter Site logo

google-api-for-dotnet's People

Watchers

James Cloos avatar

google-api-for-dotnet's Issues

How to use this API in VB.Net

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

Translate API: contraint for Query string length

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

Cannot search in google news for greek terms

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

difference in web search result from API and Web broswer

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:

v0.3 cannot work with VB (c# ok), because using both method overload and default parameters.

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 results return only 64 records

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

  • Merged into: #5

(414) Request - URI Too Large

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

The remote server returned an error: (414) Request-URI Too Large.

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

  • Merged into: #28

Slow translation

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

Linebreaks on translations

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

GvideoSearcher.Search throw an exception : Failed to get response.

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

bug in GetStringIgnoreDefault function

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

Option for a timeout

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

Image search: cannot filter by aspect ratio

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 the next X results?

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

System.IO.FileNotFoundException was unhandled by user code

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 new lines and all formatting info of the original text gets deleted by the translator

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

Use Json.NET again.

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

Unhandled access exception with VB

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

  • Merged into: #41

Translate with Vietnamese

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

How to sequentially retrieve a subset of results e.g. result 32 to 64

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

GoogleSearch proxy support

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

i want safe search filteration(abuse word)

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

Urdu & Persina not supported. why?

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

Test Issue

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

Attempting to translate string > 5000 chars throws exception

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

Batch Mode

Please consider support for batch translation.

TIA

Original issue reported on code.google.com by [email protected] on 9 Dec 2009 at 9:15

Doesn't work with medium trust

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

[MethodAccessException: Google.API.Enumeration.get_Value()]

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

Translate API removes NewLines from the results

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

why not sign assembly to enable us to add it to signed project

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

Cannot access "TbImage" property when using Eval("TbImage.Url")

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

Ambiguous structure name

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

Failed to Get Response

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 HELP on using API in VB studio 2008

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

Encoding problem

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

Google Translate API for .NET 0.4 alpha - Translate function: argument list error

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

Hungarian translation is now supported by Google, but not by the API

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

Exception for long text translations

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

  • Merged into: #28

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.