简体   繁体   English

将使用哪个用于节点移动服务的Azure SDK脚本/在哪里记录?

[英]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'); 刚接触Azure时,我对通过require('azure');添加到移动服务脚本中的azure sdk感到困惑require('azure');

I want to get a blob and found this git project , which has nice wrappers for the blob storage . 我想要一个blob,并找到了这个git项目 ,该项目具有用于blob存储的不错的包装器

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** . 但是,所需的对象将返回一个blob存储服务对象( createBlobService ),该对象具有诸如createContainerIfNotExistsgenerateSharedAccessSignature类的方法,但是其中**getBlobToStream** **getBlob**此处记录),并且具有**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. 所以很明显,我在Node中需要的azure sdk与github项目完全不同,或者不是相同版本。

Questions: 问题:

  • where is the official documentation from Microsoft regarding what I get when I do require('azure') ? Microsoft在我require('azure')时会提供什么有关“我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 ? 如果这些是两个不同的azure sdks,那么是否建议用上述github项目替换我当前需要的一个?

Thanks 谢谢

Update : 更新

This link seems to be the official documentation. 该链接似乎是官方文档。 So in my specific case I am supposed to use getBlobToStream. 因此,在我的特定情况下,我应该使用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? 到那时,我的问题归结为 :我如何知道当前随移动服务一起部署的哪个版本的azure sdk? The package.json does not list this dependency. package.json没有列出此依赖关系。

I believe you install that by utilising npm and run the command: 我相信您可以利用npm进行安装并运行以下命令:

npm install azure

which will pull the package down from https://www.npmjs.org/package/azure 它将从https://www.npmjs.org/package/azure下拉包

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

相关问题 Azure Bot 服务 SDK 是否需要 restify? (节点) - Does Azure Bot Service SDK require restify? (node) Azure移动服务Node.js上where子句的筛选器功能 - Filter function on where clause on Azure mobile services Node.js Azure移动服务发生未处理的异常。 错误:您的一个脚本导致服务无响应 - Azure Mobile Services An unhandled exception occurred. Error: One of your scripts caused the service to become unresponsive Azure App Service中的process.env.NODE_ENV在哪里 - Where is process.env.NODE_ENV in Azure App Service 如何在 Azure 应用服务上的 npm 脚本中使用 Node -r 标志 - How to use Node -r flag inside npm scripts on Azure App Service 将Azure移动服务迁移到应用程序服务(node.js)本地调试 - migrated azure mobile service to app service (node.js) debug locally 无法为iOS注册推送通知(Azure Mobile应用,Node js SDK,Ionic 2) - Can not register push notification for ios (Azure Mobile app, Node js sdk, ionic 2) Azure 服务总线主题 - 使用 Node.js SDK 接收消息时出现延迟 - Azure Service Bus Topic - delays when receiving a message using the Node.js SDK Azure移动服务上的nodemailer无法正常工作 - nodemailer on azure mobile service not working Azure移动服务表过滤器 - Azure mobile service table filter
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM