Microsoft Azure Media Services Channel ID 在使用其 Rest API 时应如何格式化?
How should the Microsoft Azure Media Services Channel ID be formatted when using its Rest API?
我一直在通读 Microsoft Azure documentation 理想化了在调用 Microsoft Azure 媒体服务 REST API 时应该如何格式化字符串。文档上写着格式应该是这样的:
https://<accountname>.restv2.<location>.media.azure.net/api/Channels
因此,据我了解,这需要更改为:
https://genericAccountName.restv2.eastus.media.azure.net/api/Channels(‘genericChannelName’)
我的问题是,我是否需要删除 URI 中的任何引号或括号才能访问频道 API?
文档中的示例:
POSThttps://testrest.cloudapp.net/api/Channels('nb:chid:UUID:2c30f424-ab90-40c6-ba41-52a993e9d393')/开始HTTP/1.1
因此您需要在 ID 名称周围加上 '。
我一直在通读 Microsoft Azure documentation 理想化了在调用 Microsoft Azure 媒体服务 REST API 时应该如何格式化字符串。文档上写着格式应该是这样的:
https://<accountname>.restv2.<location>.media.azure.net/api/Channels
因此,据我了解,这需要更改为:
https://genericAccountName.restv2.eastus.media.azure.net/api/Channels(‘genericChannelName’)
我的问题是,我是否需要删除 URI 中的任何引号或括号才能访问频道 API?
文档中的示例:
POSThttps://testrest.cloudapp.net/api/Channels('nb:chid:UUID:2c30f424-ab90-40c6-ba41-52a993e9d393')/开始HTTP/1.1
因此您需要在 ID 名称周围加上 '。