Results 1 to 11 of 11
Thread: enom api
-
07-01-2005, 05:39 AM #1Junior Guru
- Join Date
- May 2004
- Posts
- 235
enom api
I am starting to code the enom API in PHP.
How would i send variables to enom and retrieve the response? If i use the form method wouldn't it just forward to http://resellertest.enom.com ?
Would i use the form in first place? Anyone have any sample codes? I have read the enom documentation but still dont completely understand it. It doesnt have any sample PHP documentation, or how i post the vars to their website.
-
07-02-2005, 04:04 AM #2Web Hosting Master
- Join Date
- Jun 2004
- Location
- Woodinville Washington US
- Posts
- 613
Check out the enom sample scipts - they have one in php language.
You would then use the $Enom->Values['value'] to parse the response, and the
Code:$Enom = new ceInterface; (I think thats it, may be mispelled) $Enom ->newrequest(); $Enom->AddParam( "EnomParamName", $value ); $Enom->DoTransaction(); $value1 = $Enom->Values['value1'];
-
07-02-2005, 06:12 AM #3Junior Guru
- Join Date
- May 2004
- Posts
- 235
Could you give me the website address you retrieved this information from please? Or is it all on enom website?
If it's on the enom website what documentation is it?
-
07-02-2005, 06:39 AM #4Junior Guru
- Join Date
- May 2004
- Posts
- 235
Code:$enom = new cEnomInterface; $enom->newrequest(); $enom->AddParam("uid","username"); $enom->AddParam("pw","password"); $enom->AddParam("sld","domain"); $enom->AddParam("tld","com"); $enom->DoTransaction(); echo $enom->Values['Done'];
From the above code it would register a domain and retrieve true or false right? Obviously whois details will need to be parsed too.
-
07-02-2005, 12:32 PM #5Web Hosting Master
- Join Date
- Jun 2004
- Location
- Woodinville Washington US
- Posts
- 613
You would also need the command to be sent as well.
Check out teh RegisterName.php page that came with it - it has a method to specify the registrant, and some other details before hand - and also shows you how it checks the registration process by looking at the following:
Code:if($Enom->Values['ErrorCount'] != 1){ //There was an error echo $Enom->Values['Err1]; } else { There was no error - do something else $rrpcode = $Enom->Values['RRPCode']; if($rrpcode == '200'){ Registration was succesfull, do something here } elseif($rrpcode == '1300'){ Command was sent to the registry (non real time tlds) } elseif( And so on . . . .
-
07-03-2005, 03:42 AM #6Junior Guru
- Join Date
- May 2004
- Posts
- 235
I take a look at the documentation also for rrpcodes. Seems interesting.
Would i do this before domain has been paid for, or after? Because what if the registration wasn't successful? On AWBS it has a 'run' command in the control panel to re-run the query. Do you know how that is done?
-
07-03-2005, 06:05 AM #7Junior Guru
- Join Date
- May 2004
- Posts
- 235
One more thing though, what about whois data? How would i send them? The customer wont be registering for enom but under the websites database. So how will i assign whois information under their domain?
-
07-03-2005, 08:54 AM #8Web Hosting Master
- Join Date
- Jul 2003
- Location
- Kuwait
- Posts
- 5,104
One more thing though, what about whois data? How would i send them? The customer wont be registering for enom but under the websites database. So how will i assign whois information under their domain?
Its good though, I can compare mine with theirs
-
07-03-2005, 08:57 AM #9Junior Guru
- Join Date
- May 2004
- Posts
- 235
It has information on parsing whois data for domains? Let me see...
-
07-03-2005, 12:42 PM #10Web Hosting Master
- Join Date
- Jun 2004
- Location
- Woodinville Washington US
- Posts
- 613
Yes, it does have that. I dont remember the file off hand.
Drams (AWBS) does it because it stores in a datatbase - the enom one that you have does not do that. Enom has built one with databases and third party merchants like authorize.net, worldpay, paypal, etc. but its not quite out yet. Will be a few more weeks.
Check out the RegisterName.php - that file does everything that you need it to do, and its all there.
-
07-03-2005, 01:20 PM #11Junior Guru
- Join Date
- May 2004
- Posts
- 235
Thank you. I will see.
//added: My aim is also to have my own database and store all the information in there.Last edited by Gold1234; 07-03-2005 at 01:24 PM.