how do i use google services?

Josvanreenen's picture
User offline. Last seen 41 weeks 8 hours ago. Offline
Joined: 06/12/2009
Points: 30

 How can I use Google AJAX Search API in Presto Wires? All my services: 

  • doGoogleSearch
  • doSpellingSuggestion
  • doGetCachedPage

Do not work, they return nothing.
I have registered with Google for a API key for http://localhost:8080/ is that necessary?

With Regards

Jos van Reenen

0
Your rating: None
smitchell's picture
User offline. Last seen 1 week 2 days ago. Offline
Joined: 08/29/2008
Points: 4

Let me ask a couple of basic questions:

* you've registered the Google services in Service Explorer, right? As REST services?

* did you specify your key (for localhost:8080) in the URL when you registered the services?

* did you try to invoke the services from Service Explorer? did it work?

Sara, technical writer/jackbe

 

Josvanreenen's picture
User offline. Last seen 41 weeks 8 hours ago. Offline
Joined: 06/12/2009
Points: 30

Hi Sara, I've registered the services, and provided my key in the input field after I dragged them on canvas (is that the right place?)

The problem occurs in the Service Explorer when I try to pre-test them, so to speak. 

girish's picture
User offline. Last seen 1 day 1 hour ago. Offline
Joined: 09/22/2008
Points: 70

I think Google Ajax search apis return not only data but also javascript code to render the results. You can use their REST apis to get data. For example, for web search, you can use this:

http://ajax.googleapis.com/ajax/services/search/web?v=1.0&q=jackbe

(change the value of 'q' to anything)

- Girish@JackBe