schmucklicloud_storage

1.8.4 • Public • Published

schmuckliCloud Storage SDK for JavaScript

This is a part package for the schmuckliCloud service. It connects your application to the storage service.

Use in Node.js and other loaders

Setup

To install the package, you need the npm CLI. Afterwards, install the package by typing

npm install schmucklicloud_storage

in the terminal. The package will now automatically be installed.

Getting started

Import first the module in your code. Then initialize a new sCStorage object and provide also the APP ID and APP Secret in the constructor. You can get the credentials by opening the schmuckliCloud console and open a project. Then in the bottom, you will find a

import { sCStorage } from 'schmucklicloud_storage';

var reference = new sCStorage('YOUR_APPID', 'YOUR_APPSECRET');

Now after you have your reference object, you can start writing and reading data from your storage buckets. Before you can do that, you first have to set some important values, which will be appended to every request you are doing later:

reference.setBucket(201); //The bucket id. You find the bucket ID in the schmuckliCloud console
reference.setDataset('abc'); //This could be a user id or a simple word.

Now you are ready to handle all schmuckliCloud Storage requests.

Use in browser directly

Setup

If you want to use the schmuckliCloud service directly in the DOM itself, just simply include the following file in a script tag in before the body tag closes.

<script src="https://unpkg.com/schmucklicloud_storage/dist/min.js" type="text/javascript"></script>

Now you are ready to contact the schmuckliCloud also via the JavaScript SDK.

Getting started

First initialize the object sCStorage in your JavaScript code with the API credentials from your project.

//IMPORTANT: Initialize the object from the 'schmuckliCloud' library.
var ref = new schmuckliCloud.sCStorage("YOUR_APPID", "YOUR_APPSECRET");

ref.setBucket(201);
ref.setDataset("abc");

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.8.40latest

Version History

VersionDownloads (Last 7 Days)Published
1.8.40
1.8.30
1.8.20
1.8.10
1.8.00
1.7.51
1.7.40
1.7.30
1.7.20
1.7.10
1.7.00
1.6.10
1.6.00
1.5.00
1.4.00
1.3.10
1.3.00
1.2.20
1.2.10
1.2.00
1.1.60
1.1.50
1.1.40
1.1.30
1.1.20
1.1.10
1.1.00
1.0.10
1.0.00
0.1.140
0.1.130
0.1.120
0.1.110
0.1.100
0.1.90
0.1.80
0.1.70
0.1.60
0.1.50
0.1.40
0.1.30
0.1.20
0.1.10
0.1.00

Package Sidebar

Install

npm i schmucklicloud_storage

Weekly Downloads

1

Version

1.8.4

License

MIT

Unpacked Size

59.5 kB

Total Files

7

Last publish

Collaborators

  • julianschmuckli