GetSocial WebSDK Reference, v1.0.0

Quick Start

Add the following to your HTML:

<script src="https://websdk.getsocial.im/sdk.min.js"></script>

Initialize the SDK and authenticate as a user:


// Use your GetSocial app ID
const sdk = new GetSocialSDK({appId: "d87sfs8d"});
const params = {
    identity_type: "email",
    value: "example@example.com",
    token: "d7sf9sd8f7s9d8f78sd",
    new_user: false,
};
sdk.auth.authenticate(params)
.then(function (response) {
    console.log("User #" + response.user.id + " is authenticated");
})
.catch(function (error) {
    console.log(error);
});