Skip to content

Introduction

This is the documentation for the JavaScript SDK of the schmuckliCloud service.

Storage: Store and fetch data from the backend.

Authentication: Provide a full authentication service for your users.

Messaging: Manage your requests to Firebase Cloud Messaging.

Result object

In the whole SDK, you will find the result object. This object is always delivered, when a request has been done. You always can check if the action was completed successfully or if there was thrown any errors.

In the following example, you see the result object sCResult.

{
    "status": 200,
    "isOK": true,
    "message": "Showing results",
    "data": [
        {
            "id": 123,
            "data": {
                "your_column": "your_value",
                "your_other_column": "with_another_value"
            }
        }
    ]
}

This is an example, when fetching data from the storage. If there are no reasons for additional data, then the data property will be undefined.