You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 27, 2023. It is now read-only.
* Update AMS API Version to 2.17 + Fix integration tests
* Add AzureAD support (WIP)
* Update samples and unit test to use Azure AD Service Princial authentication
* Add User/Pass authentication + Access Token Cache
* Update README.md
* Fix typo
* Fix typo
* Remove old unit test + dead code
* Updated README document of Azure Media Services samples to include Azure AD authentication scenarios
* Fix MediaServicesSettings unit tests
* Remove group annotation
* Fix AuthenticationFilter unit tests
[Error Codes and Messages for Queues](http://msdn.microsoft.com/en-us/library/windowsazure/dd179446.aspx)
349
-
360
+
350
361
351
362
### Add a message to a queue
352
363
@@ -427,20 +438,20 @@ try {
427
438
```
428
439
429
440
## Service Bus Queues
430
-
The current PHP Service Bus APIs only support ACS connection strings. You need to use PowerShell to create a new ACS Service Bus namespace at the present time.
431
-
First, make sure you have Azure PowerShell installed, then in a PowerShell command prompt, run
441
+
The current PHP Service Bus APIs only support ACS connection strings. You need to use PowerShell to create a new ACS Service Bus namespace at the present time.
442
+
First, make sure you have Azure PowerShell installed, then in a PowerShell command prompt, run
If it is sucessful, you will get the connection string in the PowerShell output. If you get connection errors with it and the conection string looks like Endpoint=sb://..., change it to **Endpoint=https://...**
437
-
448
+
438
449
### Create a Queue
439
450
440
451
```PHP
441
452
try {
442
453
$queueInfo = new QueueInfo("myqueue");
443
-
454
+
444
455
// Create queue.
445
456
$serviceBusRestProxy->createQueue($queueInfo);
446
457
} catch(ServiceException $e){
@@ -483,14 +494,14 @@ try {
483
494
// Set the receive mode to PeekLock (default is ReceiveAndDelete).
The primary way to receive messages from a subscription is to use a **ServiceBusRestProxy->receiveSubscriptionMessage** method. Received messages can work in two different modes: **ReceiveAndDelete** (the default) and **PeekLock** similarly to Service Bus Queues.
555
566
556
-
The example below demonstrates how a message can be received and processed using **ReceiveAndDelete** mode (the default mode).
567
+
The example below demonstrates how a message can be received and processed using **ReceiveAndDelete** mode (the default mode).
You need to create two certificates, one for the server (a .cer file) and one for the client (a .pem file). To create the .pem file using [OpenSSL](http://www.openssl.org), execute this:
592
+
You need to create two certificates, one for the server (a .cer file) and one for the client (a .pem file). To create the .pem file using [OpenSSL](http://www.openssl.org), execute this:
A cloud service is also known as a hosted service (from earlier versions of Microsoft Azure). The **createHostedServices** method allows you to create a new hosted service by providing a hosted service name (which must be unique in Microsoft Azure), a label (the base 64-endcoded hosted service name), and a **CreateServiceOptions** object which allows you to set the location *or* the affinity group for your service.
626
+
A cloud service is also known as a hosted service (from earlier versions of Microsoft Azure). The **createHostedServices** method allows you to create a new hosted service by providing a hosted service name (which must be unique in Microsoft Azure), a label (the base 64-endcoded hosted service name), and a **CreateServiceOptions** object which allows you to set the location *or* the affinity group for your service.
To create an asset with a file you need to create an empty asset, create access policy with write permission, create a locator joining your asset and access policy, perform actual upload and generate file info.
Media services CRUD operations are performed through media services rest proxy class. It has methods like “createAsset”, “createLocator”, “createJob” and etc. for entities creations.
727
+
Media services CRUD operations are performed through media services rest proxy class. It has methods like “createAsset”, “createLocator”, “createJob” and etc. for entities creations.
717
728
718
-
To retrieve all entities list you may use methods “getAssetList”, “getAccessPolicyList”, “getLocatorList”, “getJobList” and etc. For getting single entity data use methods “getAsset”, “getJob”, “getTask” and etc. passing the entity identifier or entity data model object with non-empty identifier as a parameter.
729
+
To retrieve all entities list you may use methods “getAssetList”, “getAccessPolicyList”, “getLocatorList”, “getJobList” and etc. For getting single entity data use methods “getAsset”, “getJob”, “getTask” and etc. passing the entity identifier or entity data model object with non-empty identifier as a parameter.
719
730
720
-
Update entities with methods like “updateLocator”, “updateAsset”, “updateAssetFile” and etc. passing the entity data model object as a parameter. It is important to have valid entity identifier specified in data model object.
731
+
Update entities with methods like “updateLocator”, “updateAsset”, “updateAssetFile” and etc. passing the entity data model object as a parameter. It is important to have valid entity identifier specified in data model object.
721
732
722
733
Erase entities with methods like “deleteAsset”, “deleteAccessPolicy”, “deleteJob” and etc. passing the entity identifier or entity data model object with non-empty identifier as a parameter.
0 commit comments