On 5/23/07, Keith Pope <[EMAIL PROTECTED]> wrote:
Anyone have an example how to get this to work:
Zend_Loader::loadClass ('Zend_Rest_Client' );
Zend_Loader::loadClass ('Zend_Http_Client' );
$config = array(
'adapter' => 'Zend_Http_Client_Adapter_Proxy',
'proxy_host' => '10.1.1.33',
'proxy_port' => 80
);
// Instantiate a client object
$a = new Zend_Http_Client('http://tagthe.net/api/', $config);
http://framework.zend.com/manual/en/zend.http.client.adapters.html#zend.http.client.adapter.proxy
$text = strip_tags( $text );
$client = new Zend_Rest_Client('http://tagthe.net/api/');
$client->setHttpClient($a);
Cheers,
Till
P.S.
Is allpay offering a REST api soon? ;-)