PHP code example of kuredev / cloudautomator-php
1. Go to this page and download the library: Download kuredev/cloudautomator-php library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
kuredev / cloudautomator-php example snippets
new \Kuredev\CA("[CloudAutomatorAccessKey]");
var_dump($ca->get->aws_accounts());
var_dump($ca->get->aws_account(xxx));
$accountArr = array(
"name" => "xxx",
"account_number" => "12345678910",
"access_key_id" => "xxxxx",
"secret_access_key" => "xxxxxxxxxx"
);
var_dump($ca->post->aws_accounts(json_encode($accountArr)));
$ composer install kuredev/cloudautomator-php