<?php require dirname(__DIR__) . '/../vendor/autoload.php'; use keika299\ConohaAPI\Conoha; $client = new Conoha(array('username' => 'ConoHa', 'password' => 'paSSword123456#$%', 'tenantId' => '487727e3921d44e3bfe7ebb337bf085e')); $mailService = $client->mailService(); $mailService->deleteService('Service UUID');
<?php require dirname(__DIR__) . '/../vendor/autoload.php'; use keika299\ConohaAPI\Conoha; $client = new Conoha(array('username' => 'ConoHa', 'password' => 'paSSword123456#$%', 'tenantId' => '487727e3921d44e3bfe7ebb337bf085e')); $dnsService = $client->dnsService(); echo json_encode($dnsService->deleteDomainRecord('Domain UUID', 'Record UUID'));
<?php require dirname(__DIR__) . '/../vendor/autoload.php'; use keika299\ConohaAPI\Conoha; $client = new Conoha(array('username' => 'ConoHa', 'password' => 'paSSword123456#$%', 'tenantId' => '487727e3921d44e3bfe7ebb337bf085e')); $accountService = $client->accountService(); echo json_encode($accountService->getVersionInfo());
<?php require dirname(__DIR__) . '/../vendor/autoload.php'; use keika299\ConohaAPI\Conoha; $client = new Conoha(); $identityService = $client->accountService(); echo json_encode($identityService->getVersionInfo());
/** * Set generated token. */ public function setCurrentToken() { if ($this->isStoreTokenCookie()) { setcookie($this->getStoreTokenCookieName(), $this->client->getToken()); } }
<?php require dirname(__DIR__) . '/../vendor/autoload.php'; use keika299\ConohaAPI\Conoha; $client = new Conoha(); $identityService = $client->identityService(); echo json_encode($identityService->getVersionInfo());
/** * Cookies constructor. * * @param Conoha $client */ public function __construct(Conoha $client) { $this->cookiesData = $client->getCookiesData(); }
public function testObjectStorageService() { $this->assertInstanceOf('\\keika299\\ConohaAPI\\ObjectStorage\\Service', $this->client->objectStorageService()); }
/** * Set token. * * @param string $token * @return null */ public function setToken($token) { $cookie = new Cookies($this->client); $cookie->saveToken($token); $this->client->setToken($token); }