Sync Initialisation


After you have installed the SDK of your preferred programming language. You need to initialise Sync which connects it to our server. Upon connection it verifies the connecting client using a combination of an account ID and application ID. You can get your account and application IDs from the dashboard when you log in.

Hamoni class

The SDK provides a class named Hamoni. This is the entry point into Sync.

If you used the script tag this is a available as a global variable.

If you used npm you can import the module using ES6 or commonjs module pattern

import Hamoni from "hamoni-sync";

Initialise using your account ID and application ID

let hamoni = new Hamoni("ACCOUNT_ID", "APP_ID");

Connect the client by calling connect which returns a promise

hamoni.connect()
      .then( () => //Success handler )
      .catch(error => console.log(error));

Swift SDK coming soon

Java SDK coming soon

results matching ""

    No results matching ""