Skip to content

Commit

Permalink
Merge 79f6125 into e3e986e
Browse files Browse the repository at this point in the history
  • Loading branch information
typhonius committed Nov 24, 2017
2 parents e3e986e + 79f6125 commit 23b5f79
Show file tree
Hide file tree
Showing 57 changed files with 2,446 additions and 1,639 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
vendor
tests/logs
.idea
12 changes: 8 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,18 @@ Basic usage examples for the SDK.
require 'vendor/autoload.php';

use AcquiaCloudApi\CloudApi\Client;
use AcquiaCloudApi\CloudApi\Connector;

$key_id = 'd0697bfc-7f56-4942-9205-b5686bf5b3f5';
$key = 'd0697bfc-7f56-4942-9205-b5686bf5b3f5';
$secret = 'D5UfO/4FfNBWn4+0cUwpLOoFzfP7Qqib4AoY+wYGsKE=';

$cloudapi = Client::factory([
'key' => $key_id,
$client = new GuzzleHttp\Client();
$config = [
'key' => $key,
'secret' => $secret,
]);
];
$connector = new Connector($client, $config);
$cloudapi = Client::factory($connector);

// Get all applications.
$applications = $cloudapi->applications();
Expand Down
13 changes: 10 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,16 @@
"require": {
"acquia/http-hmac-php": "^3.1",
"guzzlehttp/guzzle": "^6.3",
"php": "^7.0"
"php": "^7.0",
"squizlabs/php_codesniffer": "^3.1",
"symfony/yaml": "^3.3",
"symfony/dependency-injection": "^3.3",
"symfony/config": "^3.3",
"symfony/console": "^3.3"
},
"require-dev": {
"php-coveralls/php-coveralls": "dev-master",
"phpunit/phpunit": "^6.4",
"squizlabs/php_codesniffer": "^3.1"
"phpunit/phpunit": "^6.4"
},
"autoload":{
"psr-4":{
Expand All @@ -28,5 +32,8 @@
"psr-4":{
"AcquiaCloudApi\\Tests\\": "tests/"
}
},
"scripts": {
"test": "phpunit"
}
}

0 comments on commit 23b5f79

Please sign in to comment.