createClient() Method

Description

Instantiates deskree-js SDK.

Initialization

Parameters

Field
Required
Data Type
Description

options

Object

Name of Deskree table to instantiate connection with

Options Parameters

Field
Required
Data Type
Description

projectId

Object

Name of Deskree table to instantiate connection with

axios

Instance of axios package

adminToken

string

userToken

string

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