28.io-nodejs 中文文档教程
28.io Nodejs Binding
28.io-nodejs 是官方支持的 28.io 的 nodejs 绑定。 28.io 是一个查询处理平台,允许您编写跨多个数据源(关系数据库)的复杂查询; 文档存储、数据仓库甚至网络服务。
我们还有教程和 REST API 参考。
加入我们的 28.io 支持小组,提出问题并提供反馈。
Installation
npm install 28.io-nodejs
Example
var $28 = require('api.28.io').$28('http://portal.28.io/api');
var projectName = 'apitests';
$28.Auth.authenticate({
email: 'w+test@28.io',
password: 'foobar',
grant_type: 'client_credentials'
})
.then(function(response){
var tokens = response.body;
var projectToken = project_tokens['project_' + projectName];
$28.Queries(projectname).listQueries({
visibility: 'private',
token: projectToken
})
.then(function(response){
console.log(response.body);
});
28.io Nodejs Binding
28.io-nodejs is an officially supported nodejs binding for 28.io. 28.io is a query processing platform that allows you to write complex queries accross multiple data sources - relational databases; document stores, data warehouses and even web services.
We also have tutorials and an REST API reference.
Join our 28.io Support Group to ask questions and provide feedback.
Installation
npm install 28.io-nodejs
Example
var $28 = require('api.28.io').$28('http://portal.28.io/api');
var projectName = 'apitests';
$28.Auth.authenticate({
email: 'w+test@28.io',
password: 'foobar',
grant_type: 'client_credentials'
})
.then(function(response){
var tokens = response.body;
var projectToken = project_tokens['project_' + projectName];
$28.Queries(projectname).listQueries({
visibility: 'private',
token: projectToken
})
.then(function(response){
console.log(response.body);
});