Querying Google

Discussion in 'Google API' started by netaddict, May 8, 2005.

  1. #1
    Using PHP, I need to query google using my API key and need to store the number of results in a variable.

    How can it be done? Any idea? :)
     
    netaddict, May 8, 2005 IP
  2. siraxi

    siraxi Peon

    Messages:
    333
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Me too !

    Anyone willing to share ?
     
    siraxi, Jul 21, 2005 IP
  3. jimrthy

    jimrthy Guest

    Messages:
    283
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Sorry, I've only done xmlrpc with python. I am curious to see how it compares, though.

    Okay, I was curious enough to do some research. xmlrpc with php is ugly!

    Here's the basics of what you need:

    <?php

    // Generate the request

    // I think this should be an array of the parameters you're passing in, instead
    $params = "system.methodSignature";
    $method = "system.methodHelp";
    $request = xmlrpc_encode_request($method,$params);
    echo ( $request );

    // Send the request
    // What's user_data??
    xmlrpc_server_call_method( $server_address, $xml, $user_data );

    Wow, the documentation on this is horrible. I'll definitely be sticking with python for my xmlrpc needs.
     
    jimrthy, Jul 21, 2005 IP