qtc

0.6.10 • Public • Published

Qt Cloud Services SDK for Node.js

This is Qt Cloud Services SDK for Node.js. What is Qt Cloud Services? See below:

Installing

The preferred way to install the SDK for Node.js is to use the npm package manager. Simply type the following into a terminal window:

npm install qtc

Getting Started

You can find a getting started guide for Qt Cloud Services at:

http://developer.qtc.io/qtc/getting-started?snippets=node

If you are looking for service specific guides, please see:

Quick Start

This SDK is designed to be the most easy way possible to use Qt Cloud Services from Node.js. It supports most of the latest APIs. The following example shows how to use Enginio Data Storage (EDS) with the Node.js SDK.

var qtc = require("qtc");
var eds = new qtc.Eds({ address: "YOUR_EDS_ADDRESS", backendId: "YOUR_EDS_BACKEND_ID"});
 
// Define collection used in this example
var contacts = eds.collection("contacts");
 
// Insert object to EDS
contacts.insert({
   name: "John",
   age: 31,
   likes: ["pizza", "coke"],
   address: {
      city: "Springfield",
      country: "USA",
   }
}, function(e, result){
   if(!e){
      console.log(result);
   } else {
      console.log("Ooops! Something went wrong!", e);
   }
});

SDK API References

See the product specific SDK API References:

Readme

Keywords

none

Package Sidebar

Install

npm i qtc

Weekly Downloads

0

Version

0.6.10

License

MIT

Last publish

Collaborators

  • miskun