Esempio n. 1
0
<?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');
Esempio n. 2
0
<?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'));
Esempio n. 3
0
<?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());
Esempio n. 4
0
<?php

require dirname(__DIR__) . '/../vendor/autoload.php';
use keika299\ConohaAPI\Conoha;
$client = new Conoha();
$identityService = $client->accountService();
echo json_encode($identityService->getVersionInfo());
Esempio n. 5
0
 /**
  * Set generated token.
  */
 public function setCurrentToken()
 {
     if ($this->isStoreTokenCookie()) {
         setcookie($this->getStoreTokenCookieName(), $this->client->getToken());
     }
 }
Esempio n. 6
0
<?php

require dirname(__DIR__) . '/../vendor/autoload.php';
use keika299\ConohaAPI\Conoha;
$client = new Conoha();
$identityService = $client->identityService();
echo json_encode($identityService->getVersionInfo());
Esempio n. 7
0
 /**
  * Cookies constructor.
  *
  * @param Conoha $client
  */
 public function __construct(Conoha $client)
 {
     $this->cookiesData = $client->getCookiesData();
 }
Esempio n. 8
0
 public function testObjectStorageService()
 {
     $this->assertInstanceOf('\\keika299\\ConohaAPI\\ObjectStorage\\Service', $this->client->objectStorageService());
 }
Esempio n. 9
0
 /**
  * Set token.
  *
  * @param string $token
  * @return null
  */
 public function setToken($token)
 {
     $cookie = new Cookies($this->client);
     $cookie->saveToken($token);
     $this->client->setToken($token);
 }