Skip to content
This repository has been archived by the owner on May 8, 2024. It is now read-only.

Update README.md #325

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 11 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,17 +122,24 @@ Note that account name is required.
* Instantiate a client object - a wrapper around the available calls for the given service.

```php
$blobClient = BlobRestProxy::createBlobService($connectionString);
$tableClient = TableRestProxy::createTableService($connectionString);
$queueClient = QueueRestProxy::createQueueService($connectionString);
$fileClient = FileRestProxy::createFileService($connectionString);
$blobClient = ServicesBuilder::getInstance()->createQueueService($connectionString);
$tableClient = ServicesBuilder::getInstance()->createQueueService($connectionString);
$queueClient = ServicesBuilder::getInstance()->createQueueService($connectionString);
$fileClient = ServicesBuilder::getInstance()->createQueueService($connectionString);
```

ServiceBuilder is part of MicrosoftAzure\Storage\Common namespace so you have to add:

```php
use MicrosoftAzure\Storage\Queue\QueueRestProxy;
```

Or for AAD authentication:
```php
$blobClient = BlobRestProxy::createBlobServiceWithTokenCredential($token, $connectionString);
$queueClient = QueueRestProxy::createQueueServiceWithTokenCredential($token, $connectionString);
```

Note that Blob and Queue service supports AAD authentication.

### Using Middlewares
Expand Down