Hi,
This is what I want to do.
Intergrate enom's api with my little script.
When I check a domain name, this is the response I'd get:
;URL Interface
;Machine number is 1
OrderID=156159045 RegistrantPartyID= RRPCode=200 RRPText=Command completed successfully - 156159045 Command=PURCHASE ErrCount=0 Server=ResellerTest Site=eNom Done=true
;URL Interface
;Machine number is 1
RRPCode=540 RRPText=Domain name not available Command=PURCHASE ErrCount=1 Err1=Domain name not available Server=ResellerTest Site=eNom Done=true
Is it possible to parse all that so that I can do the following:
if (RRPtext=="200")
{
DO SOMETHING
}
ELSEIF (RRPtext=="540")
{
DO SOMETHING
}
ELSE
{
DO SOMETHING ELSE
}
I'm assuming you guys know what I'm trying to do.
Basically Enom returns a number of responses..I'd only like to take a lookt at RRPtext, and if RRPtext is something, I'd like to do something.
Thanks in advance.