【文件属性】:
文件名称:sdk-node:cloudpipe 的 Node.js 客户端绑定
文件大小:3KB
文件格式:ZIP
更新时间:2021-06-27 23:20:23
JavaScript
入门:基本用法
警告:适用于 CloudPipe 的 Node.js API 及其实现处于 alpha 阶段。
var cloudpipe = require ( 'cloudpipe' ) ;
// Initialize cloudpipe
var pipe = cloudpipe . init ( {
url : 'http://192.168.59.103:8000/api/v1' ,
username : 'admin' ,
apiKey : '12345'
} ) ;
// Define the function you want to run in ze cloud
var add = function ( x , y , callback ) {
callback ( null , x + y ) ;
} ;
// Cloudpipe your funct
【文件预览】:
sdk-node-master
----package.json(509B)
----.gitignore(587B)
----lib()
--------index.js(2KB)
----README.md(854B)