TiledeskClientlibrary with npm command:
TiledeskClient()class in your Node.js file using the "require" command:
authEmailPassword()method from the TiledeskClient class. You must provide the APIKEY to authenticate. Actually APIKEYs are experimental and can be omitted. Just use the string 'APIKEY' in place of the real one.
tokenwe got from authentication:
PROJECT_IDas a parameter. Sending a message to this newly created Request ID will automatically create a new Request object, as in the following example:
TiledeskClient.updateProjectUserCurrentlyLoggedIn()you will update the status of the user token in the TiledeskClient constructor.
PROJECT_USER_IDvariable is the teamate ID of your user (
USER_ID) on the
PROJECT_IDyou specified in the TiledeskClient custructor.
options.APIURLparameter to specify the endpoint, as in the following example: