简体   繁体   中英

Which Azure SDK for Node Mobile Service scripts is to be used / where is it documented?

Being new to Azure I am confused about the azure sdk one adds to mobile service scripts via require('azure');

I want to get a blob and found this git project , which has nice wrappers for the blob storage .

I assumed this to be related to my required one. Yet, the required one returns a blob storage service object ( createBlobService ) that has methods like createContainerIfNotExists and generateSharedAccessSignature , but misses **getBlob** ( documented here ) among others, and has **getBlobToStream** .

So clearly the azure sdk I require in Node is something completely different from the github project or just not the same version of it.

Questions:

  • where is the official documentation from Microsoft regarding what I get when I do require('azure') ?

  • how would I make sure I have the most recent version ?

  • if these are two different azure sdks, then is it recommended to replace the one I currently require with the github project mentioned above ?

Thanks

Update :

This link seems to be the official documentation. So in my specific case I am supposed to use getBlobToStream.

At that point, my question comes down to : how do I know which version of the azure sdk is currently deployed with my mobile service? The package.json does not list this dependency.

I believe you install that by utilising npm and run the command:

npm install azure

which will pull the package down from https://www.npmjs.org/package/azure

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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