Ah, glad someone's got my back on this. Jeff Crawford (some of you know, he used to be in Support) passed on that you can use submit_bulk_change via the API and don't to go through getting cookies. It's basically an extension of the same functionality in the RWI's Bulk Domain Name Management. In the docs it suggests using batch.opensrs.net rather than the production systems and the format is like this:
{ ’protocol’ => ’XCP’, ’action’ => ’submit’, ’object’ => ’bulk_change’, ’attributes’ => { ’change_type’ => ’domain_nameservers’, ’change_items’ => [ ’asdasdas.com’, ’zzzzzzzzz.info’ ], ’op_type’ => ’assign’, ’apply_to_locked_domains’ => 1, ’contact_email’ => [EMAIL PROTECTED], ’assign_ns’ => [ ’ns1.domain.com’, ’ns2.domain.com’, ’ns3.domain.com’ ] } }; -andrewm Andrew McCallum wrote: > Check out the DNS changing options in the "Bulk Domain Change > Management" part of the the RWI. Might save some hairpulling... > > It's true though, it seems you have to recookie every time for each > domain unfortunately. > -andrewm > > InfoSysNet - Cherubini Enrico wrote: >> Good day, >> I don't know if this is the right place to ask, but I would like to >> change >> all my domains' nameservers. >> I already wrote the API call to change (for test) a single domain and >> this >> works fine, the problem is to change all domains. The limit I found >> is that >> the advanced_update_nameservers function does not take the domain as >> parameter, so I cannot base the update on the list of all my domain I >> have >> in the array returned by get domain list. The only solution I see is to >> insert into a loop of all domain the GET/DELETE cookie because >> advanced_update_nameservers rely on the domain specified there to work. >> >> Sorry for the bad english, and thanks for any hint. >> > _______________________________________________ domains-dev mailing list domains-dev@discuss.tucows.com http://discuss.tucows.com/mailman/listinfo/domains-dev