Пример #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');
Пример #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'));
Пример #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());
Пример #4
0
<?php

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

require dirname(__DIR__) . '/../vendor/autoload.php';
use keika299\ConohaAPI\Conoha;
$client = new Conoha();
$identityService = $client->identityService();
echo json_encode($identityService->getVersionInfo());
Пример #7
0
 /**
  * Cookies constructor.
  *
  * @param Conoha $client
  */
 public function __construct(Conoha $client)
 {
     $this->cookiesData = $client->getCookiesData();
 }
Пример #8
0
 public function testObjectStorageService()
 {
     $this->assertInstanceOf('\\keika299\\ConohaAPI\\ObjectStorage\\Service', $this->client->objectStorageService());
 }
Пример #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);
 }