Ejemplo n.º 1
0
 protected function execute(InputInterface $input, OutputInterface $output)
 {
     $resource = $input->getArgument('resource');
     $api = Helper::getWwdApi();
     $result = $api->NameGenDB(new NameGenDB(mt_rand(100, 999), Helper::getCredential(), $domain));
     var_dump($result);
 }
 protected function execute(InputInterface $input, OutputInterface $output)
 {
     $domain = $input->getArgument('domain');
     $api = Helper::getWwdApi();
     $dr = new DomainRenewal(new OrderItem('387001', '1'), 'dbp:25147', 'biz', 'example', 1);
     $result = $api->OrderDomainRenewals(new OrderDomainRenewals(mt_rand(100, 999), Helper::getCredential(), new Shopper('agree', '834066', 'abcde'), array($dr), ''));
     var_dump($result);
 }
Ejemplo n.º 3
0
 protected function execute(InputInterface $input, OutputInterface $output)
 {
     $resource = $input->getArgument('resource');
     $api = Helper::getWwdApi();
     $info = new Info(mt_rand(100, 999), Helper::getCredential(), null, null, 'sibljasiblja.biz', '171877');
     $result = $api->Info($info);
     var_dump($result);
 }
Ejemplo n.º 4
0
 protected function execute(InputInterface $input, OutputInterface $output)
 {
     $arrDomains = array($input->getArgument('domains'));
     $api = Helper::getWwdApi();
     $result = $api->CheckAvailability(new CheckAvailability(mt_rand(100, 999), Helper::getCredential(), $arrDomains, array(), array()));
     foreach ($result as $domain) {
         $output->writeln(sprintf("Domain '%s' %s", $domain->domain, $domain->available));
     }
 }
 protected function execute(InputInterface $input, OutputInterface $output)
 {
     $resource = $input->getArgument('resource');
     $api = Helper::getWwdApi();
     $konj = new OrderItem(377001, 1, 1);
     $dbp = new DomainByProxy($konj, 'example', 'biz', 'domain:31578');
     $odp = new OrderDomainPrivacy(mt_rand(100, 999), Helper::getCredential(), new Shopper('agree', '834066', 'abcde', '', '*****@*****.**', 'Artemus', 'Gordon', '+1.8885551212', '12341', 'createNew', 'defgh', '', '*****@*****.**', ''), array($dbp), '');
     $result = $api->OrderDomainPrivacy($odp);
     var_dump($result);
 }
 protected function execute(InputInterface $input, OutputInterface $output)
 {
     $password = $input->getArgument('password');
     $email = $input->getArgument('email');
     $firstname = $input->getArgument('firstname');
     $lastname = $input->getArgument('lastname');
     $phone = $input->getArgument('phone');
     $api = Helper::getWwdApi();
     $result = $api->CreateNewShopper(new CreateNewShopper(mt_rand(100, 999), Helper::getCredential(), $password, $email, $firstname, $lastname, $phone));
     return var_dump($result);
     // should connect shopper with appsco identity
 }
 protected function execute(InputInterface $input, OutputInterface $output)
 {
     $api = Helper::getWwdApi();
     // $productid, $parent_resource_id = null, $quantity = 1, $riid = "1", $duration = 1.0
     $oi = new OrderItem('350011');
     $sld = 'example';
     $tld = 'com';
     $authInfo = '851774';
     $idnScript = '';
     $dt = new DomainTransfer($oi, $sld, $tld, $authInfo, $idnScript);
     $items[] = $dt;
     $result = $api->OrderDomainTransfers(new OrderDomainTransfers(mt_rand(100, 999), Helper::getCredential(), new Shopper('agree', '851773', '12345'), $items));
     var_dump($result);
 }
 protected function execute(InputInterface $input, OutputInterface $output)
 {
     $domain = $input->getArgument('domain');
     $api = Helper::getWwdApi();
     $registrant1 = new ContactInfo('Artemus', 'Gordon', '*****@*****.**', '2 N. Main St.', 'Valdosta', 'Georgia', '17123', 'United States', '(888)555-1212');
     $orderItem = new OrderItem(350077);
     $ns1 = new NS("ns1.example.com");
     $ns2 = new NS("ns2.example.com");
     $nsArray = array((array) $ns1, (array) $ns2);
     $domainParts = explode('.', $domain);
     $domainRegistration = new DomainRegistration($orderItem, $domainParts[0], $domainParts[1], 2, $registrant1, $nsArray);
     $result = $api->OrderDomains(new OrderDomains(mt_rand(100, 999), Helper::getCredential(), new Shopper('agree', '851773', '12345'), array($domainRegistration)));
     var_dump($result);
 }