createClient() Method

Description

Instantiates deskree-js SDK.

Initialization

Parameters

FieldRequiredData TypeDescription

options

Object

Name of Deskree table to instantiate connection with

Options Parameters

FieldRequiredData TypeDescription

projectId

Object

Name of Deskree table to instantiate connection with

axios

axios instance

Instance of axios package

adminToken

string

userToken

string

Refresh token obtained from sign-up or sign-in methods Examples: signInEmail() signUpEmail() signInOAuth()

Example

import createClient from '@deskree/deskree-js'
import axios from 'axios'

const options = {
  projectId: "YOUR_PROJECT_ID",
  axios: axios,
  adminToken: "YOUR_DESKREE_ADMIN_TOKEN",
  userToken: "USER_IDTOKEN"
}

const client = createClient(options)

Requests

get()

getByUID()

create()

update()

delete()

Last updated