Google API not working

Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.

  1. #1

    Default Google API not working

    when i try to run the following code i get an error :
    <cfinvoke
    webservice="http://api.google.com/GoogleSearch.wsdl"
    method="doGoogleSearch"
    returnvariable="aGoogleSearchResult">
    <cfinvokeargument name="key" value="****************8"/>
    <cfinvokeargument name="q" value="Family Guy"/>
    <cfinvokeargument name="start" value="0"/>
    <cfinvokeargument name="maxResults" value="5"/>
    <cfinvokeargument name="filter" value="false"/>
    <cfinvokeargument name="restrict" value="false"/>
    <cfinvokeargument name="safeSearch" value="false"/>
    </cfinvoke>

    <cfdump var="aGoogleSearchResult">

    the error i am getting is:
    Web service operation "doGoogleSearch" with parameters
    {key={*******************},safeSearch={false},star t={0},restrict={false},maxResu
    lts={5},filter={false},q={Dee Web Design},} could not be found.

    any advice? according to what i read in the wsdl and the reference guide i
    think my code is right.

    bdee2 Guest

  2. Similar Questions and Discussions

    1. Google FYI
      http://www.geek.com/news/geeknews/2006Jan/gee20060202034550.htm Have Fun!
    2. Google API
      I have the following code for a search engine in our website. The search engine work just fine but only returns 10 results. I want to modify the...
    3. [PHP] Google APIs with PHP
      Sorry about it. I should include the code as attachment. Daniel _________________________________________________________________ Get 10Mb...
    4. Google APIs with PHP
      Hi all, I am new to PHP and just tested out using NuSoap to query Google database. The code is written by Harish Kamath. However, it doesn't work...
    5. PHP<->Google?
      I'm so curious to know whether Google uses PHP or not. Some pages on the net says that Google uses PHP. Is it true? If so, what database they use?...
  3. #2

    Default Re: Google API not working

    ok nevermind i didnt realize that all the arguments were required.

    the problem i have now is that if the maxrows argument is required and can
    only be up to 10 then each call to the Google API can only return 10 results.

    I know that if i want more i can just put the cfinvoke in a loop and call it
    more than once specifying a new startrow each time but wheni got my key the
    email said that i can only make 1000 calls to the searvice per day. so that
    limits me to 10,000 results per day. is there any way to get around that? it
    just seems silly to me that you can only get 10 results per call.

    bdee2 Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139