This question didn't come in via the list, but I thought the answers might 
be appropriate to the list. I haven't actually looked at the new client 
code yet :-( ... been too busy trying to catch up on corporate income tax 
returns :-(  Anyhow, this pertains to the PERL code I posted earlier 

see
  http://www.opensrs.org/archives/dev-list/0406/0007.html

and
  http://www.opensrs.org/archives/discuss-list/0407/0046.html

questions and answers below:

> Tom,  
> 
> I am another OpenSRS reseller/developer, and I've been looking through 
> your provisioning perl script for the Tucows Email Defense service.  
> Really useful to see your example of the TPP library.
> 
> What I don't understand is where to get the user_id and contact_id 
> numbers from initially.  Is that the userid of the initial "master" 
> account that one creates through Tucows?  If so, where does one find 
> the numerical id etc...

Throught the reseller2 interface... 

if you look at an e-mail defense order... your will get something like...

Service Order
Order ID:       275695
User:   antispam
Order Status:   Completed
Order Price:    $0.02
Creation Date:  29-JUN-2004 18:04:44
Last Updated:   29-JUN-2004 18:04:54

if you then click on that user (antispam is a link), you get

User Information
User ID:        70571
Username:       antispam
Status:         Active
Description:    BareMetal Anti-spam
Last Access Time:       25-JUN-2004 17:06:03
Creation Date:  25-JUN-2004 17:06:03
Last Updated:   25-JUN-2004 17:06:03

OK... so that is where the USER_ID parameter comes from...

down the page there is a list of contacts.... you should be able to see 
the contact ID in the select box, but if you can't, you can hit the edit 
link, and voila...

View Contact Details
Contact ID:     350349 
First Name:     ______
Last Name:      ______
Title:          ______
Organization:   ______

which is where the CONTACT_ID parameter comes from.

> I suspect this has to do with my other source of confusion - how I 
> indicate what domain the new accounts are being provisioned for.

that is a parameter to the -P option... which you use when
initially provisioning a service... once the domain is setup, you
refer to it by it's inventory number (strange but true).

If I develop this script farther I will try to teach it to automatically
convert domain names to inventory numbers so that the -A and -R options
take a domain name as a parameter instead of the inventory number)...

-Tom


Reply via email to