Welcome Guest, Not a member yet? Register   Sign In
Accessing Zillow API
#1

[eluser]taewoo[/eluser]
Hi everyone. How would I go about calling the Zillow API in my CI application?

Do I need to use the XMLRPC class that comes prepackaged with CI?

This is what I have done:

Code:
$this->xmlrpc->server('http://www.zillow.com/', 80);
        $this->xmlrpc->method('/webservice/GetSearchResults.htm');
        
        $request = array('zws-id' => $this->api_key,
                         'address' => $address,
                         'citystatezip' => $city.",".$state);
        $this->xmlrpc->request($request);
        
        if ( ! $this->xmlrpc->send_request())
        {
            echo $xmlrpc->display_error();
        }
        else
        {
            echo '<pre>';
            print_r($this->xmlrpc->display_response());
            echo '</pre>';
        }

And I am getting this error:

Code:
A PHP Error was encountered

Severity: Notice

Message: Undefined offset: 0

Filename: libraries/Xmlrpc.php

Line Number: 619
A PHP Error was encountered

Severity: Notice

Message: Undefined offset: 1

Filename: libraries/Xmlrpc.php

Line Number: 619
A PHP Error was encountered

Severity: Notice

Message: Undefined offset: 2

Filename: libraries/Xmlrpc.php

Line Number: 619

Fatal error: Call to a member function serialize_class() on a non-object in C:\wamp\www\system\libraries\Xmlrpc.php on line 638
#2

[eluser]taewoo[/eluser]
I guess more generic question is... if there is a 3rd party API that I call via http://x.x.x.x/some_api?data=1, which returns an XML file... how do I go about calling this api thru my CI app?
#3

[eluser]Unknown[/eluser]
well i am trying to get my zillow api to work, i saw the scrip on top but i get a error.

has any one made a change to it for it to work properly?
#4

[eluser]taewoo[/eluser]
http://ellislab.com/forums/viewthread/72462/




Theme © iAndrew 2016 - Forum software by © MyBB