RE: Re: [PEAR-DEV] Package proposal
| From: | Bryan Dunlap | Date: | Tue, 12 Jul 2005 21:46:54 +0000 |
| Subject: | RE: Re: [PEAR-DEV] Package proposal | ||
| Groups: | php.pear.dev | ||
| Request: | Send a blank email to pear-dev+get-38595@lists.php.net to get a copy of this message | ||
I've requested a PEPr account to begin the formal proposal process, and am awaiting
confirmation. In the meantime, all who are interested can browse .phps source at the following
location:
http://bdunlap.ath.cx/source/PEAR/Services/
I will have documentation and a package .tgz available for download shortly.
Basic usage example follows (simplified the API slightly from the previous example):
$Request =& Services_DynDNS_Request::factory('dyndns', $parameters);
if (!PEAR::isError($Request)) {
$Response =& Services_DynDNS::sendRequest($Request);
if (!PEAR::isError($Response)) {
while ($result = $Response->get()) {
// $result is an assoc array containing
// information pertinent to the DynDNS API
// request submitted. Multiple hostnames
// in the request produce multiple results.
}
}
}
Any initial thoughts are much appreciated.
Regards,
--Bryan
>----- ------- Original Message ------- -----
>From: arnaud@limbourg.com
>To: bdunlap@bryandunlap.com
>Sent: Tue, 12 Jul 2005 20:45:25
>
>bdunlap@bryandunlap.com wrote:
>
>>Hello all -
>>
>>I've recently PEARified a web service package.
>Provides a set of OO wrappers for the DynDNS REST
>API. Basic usage example below:
>>
>>$Request =& Services_DynDNS::newRequest($type,
>$options);
>>if (!PEAR::isError($Request)) {
>> $Response =&
>Services_DynDNS::sendRequest($Request);
>> if (!PEAR::isError($Response)) {
>> while ($Response->next()) {
>> $result = $Response->get();
>> // $result will be a PEAR error if
>DynDNS
>> // returned error code, success string
>if
>> // successful
>> }
>> }
>>}
>>
>>
>>For those not familiar with the DynDNS API,
>https://www.dyndns.com/developers/
>>
>>If there is enough interest, I will start the
>formal proposal process and provide links to
>source, usage examples and the package .tgz
>>
>>Thanks again for your consideration.
>>
>>
>>Regards,
>>
>>Bryan
>>
>>
>>
>I suspect it could be of interest :)
>
>Arnaud.