Hey Winrich --
I'm not totally sure about doing that through the REST interface.  See,
through the Javascript interface, there is a call "setQueryAddition" (check
it out on our documentation):
http://code.google.com/apis/ajaxsearch/documentation/reference.html

With setQueryAddition, you can basically set CGI args that you would
normally see in a Google search if you were using advanced options.  So if I
do a search with licensing, I will see this in the CGI args:
as_rights=%28cc_publicdomain%7Ccc_attribute%7Ccc_sharealike%7Ccc_noncommercial%7Ccc_nonderived%29
I would want to try setting
setQueryAddition('as_rights:%28cc_publicdomain%7Ccc_attribute%7Ccc_sharealike%7Ccc_noncommercial%7Ccc_nonderived%29');

After doing this in Javascript, you can use Firebug to see the actual URL
that was grabbed by the Javascript running this search.  It is likely that
the URL you find will have CGI args you can use in the REST API.

This is a bit of an in depth explanation, so I'm sorry if it's confusing :)
 You can also search this group for setQueryAddition and you'll find an
example or two.

-Ben

On Fri, Sep 5, 2008 at 1:54 AM, Winrich <[EMAIL PROTECTED]> wrote:

>
> I'm calling the API through a REST interface and I'm wondering if
> there's a way (now or later hopefully) that I can add an argument to
> filter by license as in the Google Advanced Search?
>
> Thanks.
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google AJAX API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-AJAX-Search-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to