简体   繁体   English

Azure存储文件服务-Android中的REST API使用

[英]Azure Storage File Service - REST API usage in Android

I am trying to use the Azure Storage File Service - REST API in my android application to get the list of directories/files under a share. 我正在尝试在我的Android应用程序中使用Azure存储文件服务-REST API来获取共享下的目录/文件列表。

(In the Azure Storage Account) I am successfully able to create the required Share, Directory structure and files in the Azure File Storage using PowerShell and able to list the directories / files accordingly. (在Azure存储帐户中)我能够使用PowerShell成功在Azure文件存储中创建所需的共享,目录结构和文件,并能够相应列出目录/文件。

I am trying to use the following reference to build the http "GET" request from the application: 我正在尝试使用以下参考来从应用程序构建http“ GET”请求:

http://msdn.microsoft.com/en-us/library/azure/dn166980.aspx http://msdn.microsoft.com/en-us/library/azure/dn166980.aspx

However I am struck at building the Authorization header for the Http Request. 但是,我为构建Http Request的Authorization标头感到震惊。 I am trying to follow the guidance given in 我正在尝试遵循中给出的指导

http://msdn.microsoft.com/en-us/library/azure/dd179428.aspx http://msdn.microsoft.com/en-us/library/azure/dd179428.aspx

But there is no clear procedure or method defined to create the authorization header from Android client. 但是,没有定义明确的过程或方法来从Android客户端创建授权标头。 Appreciate any help to accomplish the task using Azure File Service Rest API in my android code. 感谢在我的android代码中使用Azure File Service Rest API完成任务的任何帮助。

Azure存储Android库应该为您处理所有这些,而无需编写REST级代码。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM