PHP code example of tatilcom / gcp-rest-guzzle-adapter-bundle
1. Go to this page and download the library: Download tatilcom/gcp-rest-guzzle-adapter-bundle 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/ */
tatilcom / gcp-rest-guzzle-adapter-bundle example snippets
$pubSubClient = $container->get('gcp_rest_guzzle_adapter.client.pubsub_client');
$result = $pubSubClient->get(
sprintf('topics/%s/subscriptions', 'test-topic')
);
var_dump((string)$result->getBody()->getContents());
string(113) "{
"subscriptions": [
"projects/test-project123/subscriptions/test_topicSubscriber"
]
}
"