0.0.6 • Published 5 years ago

nativescript-skygear-sdk v0.0.6

Weekly downloads
7
License
Apache-2.0
Repository
-
Last release
5 years ago

Nativescript Skygear-Sdk Plugin

This plugin allows you to use your nativescript application with a skygear.io or skygear-server application.

Installation

Install the plugin to your nativescript project.

tns plugin add nativescript-skygear-sdk

Usage

To get started import the sdk, put in your app api key and the address to your skygear server

    import { SkygearSdk } from 'nativescript-skygear-sdk';

    const config = { apiKey: "plugintest123", address: "localhost:3000" };

    const skygearSDK = new SkygearSdk(config);

and then you can use it like this:

    skygearSDK.auth.signupWithEmailPassword("email@example.com", "password")
    .then(user => console.log(user))
    .catch(error => console.log(error))

API

The plugin is in 5 separate namespaces.

ModuleDescription
authhandles signup, login, and logout. --password reset coming soon.
chathandles interaction with the skygear chat plugin
cloudhandles interaction with skygear cloud functions
db(database)handles interaction with the public and private cloud database
pubsubhandles interaction with the skygear pubsub module, --will eventually have support for push notifications.

License

Apache License Version 2.0, January 2004

0.0.6

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago