There is a way to do this - I'm sucking code directly from manage.cgi
When you first login:
my $xcp_request = {
action => "set",
object => "cookie",
attributes => {
domain => $reg_domain_race_obj->{ConvertedDomain},
reg_username => $reg_username,
reg_password => $reg_password,
}
};
You get a response from the server:
my $response = $XML_Client->send_cmd( $xcp_request );
Within the response is the expiry date for the domain:
$expiredate = $response->{attributes}->{expiredate};
This is actually shown as part of the base.html template via the
{{EXPIREDATE}} variable (and is shown on all subsequent pages)
You can also get this via the get userinfo command:
my $xcp_request = {
action => "get",
object => "userinfo",
cookie => $cookie,
};
:)
Charles Daminato
TUCOWS Product Manager
[EMAIL PROTECTED]
On Tue, 9 Jul 2002, Mayo wrote:
> Hi,
>
> Thanks for the tip, but I'm pretty sure there is something in the API to
> automize this.
>
> mayo
>
> erol M wrote:
>
> >You could keep this info local to your own servers by exporting the csv
> >file from the RWI which has all the domains in your account, including the
> >expiration year ( and year of registration )
> >
> >To get the file use the 'Search Domains' link in the RWI and then select
> >'Results to file' ( its a handy feature ;)
> >
> >
> >
> >
> >
> >>Hello,
> >>
> >>what is the easiest way to geet domain expiration year (used in domain
> >>renewals)?
> >>
> >>I know get domain API call would do it, but from what I understand I
> >>would have to grab list of all domains in the account, and find the
> >>domain I need, which seems a long way to go in order to find one number.
> >>
> >>thanks,
> >>mayo
> >>
> >>
> >>
> >
> >
> >
>
>
>