Skip Menu |

This queue is for tickets about the WWW-Google-CustomSearch CPAN distribution.

Report information
The Basics
Id: 98941
Status: rejected
Priority: 0/
Queue: WWW-Google-CustomSearch

People
Owner: MANWAR [...] cpan.org
Requestors: pratick.balochiya [...] php2india.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Bugs in Google Custom Search API
Date: Wed, 17 Sep 2014 16:19:44 +0530
To: bug-WWW-Google-CustomSearch [...] rt.cpan.org
From: Pratik Balochiya <pratick.balochiya [...] php2india.com>
Hello, I have used google custom search api by using php language. I got the perfect result when i search with english, but when i search with other languages apart from english, i got the limited results. Below url i am using in my project, $url = " http://ajax.googleapis.com/ajax/services/search/web?v=1.0&googlehost=google.com&q=".$inputQuery."&key=".$key."&cx=".$account."&rsz=".$rsz."&start=".$start; I hope u will send response to me ASAP. Regards, Pratik Balochiya PHP Developer
Hi Pratick, You are knocking the wrong door for the solution. I am not involved in development of the API. I am just a Perl hacker and CPAN author, who built the Perl interface of the Google Google JSON/Atom Custom Search. The base URL for this API is https://www.googleapis.com/customsearch/v1. Now coming to your question, I don't see what you are passing to the API. It would help if I know what is being sent. However I do see one key missing from the request i.e. 'hl'. According to the API documentation, it says: "This argument supplies the host language of the application making the request. If hl is present in the URL, it will be used. Otherwise, if the Accept-Language HTTP header is present, it will be used. If neither is specified, a value of en is assumed. For example, hl=fr for french language" Hope this helps you. Best Regards, Mohammad S Anwar
Closing the ticket as it has nothing to do with the WWW::Google::CustomSearch. No response from the requester to my reply.